diff options
Diffstat (limited to 'meta/recipes-core/libxml/libxml2/install-tests.patch')
-rw-r--r-- | meta/recipes-core/libxml/libxml2/install-tests.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/meta/recipes-core/libxml/libxml2/install-tests.patch b/meta/recipes-core/libxml/libxml2/install-tests.patch new file mode 100644 index 0000000000..478eeea81b --- /dev/null +++ b/meta/recipes-core/libxml/libxml2/install-tests.patch | |||
@@ -0,0 +1,34 @@ | |||
1 | From 0779511838a8cbd1e0f431c22f28f286a2a37b1b Mon Sep 17 00:00:00 2001 | ||
2 | From: Ross Burton <ross.burton@arm.com> | ||
3 | Date: Mon, 5 Dec 2022 17:02:32 +0000 | ||
4 | Subject: [PATCH] add yocto-specific install-ptest target | ||
5 | |||
6 | Add a target to install the test suite. | ||
7 | |||
8 | Upstream-Status: Inappropriate | ||
9 | Signed-off-by: Ross Burton <ross.burton@arm.com> | ||
10 | --- | ||
11 | Makefile.am | 10 ++++++++++ | ||
12 | 1 file changed, 10 insertions(+) | ||
13 | |||
14 | diff --git a/Makefile.am b/Makefile.am | ||
15 | index 0a49d37..1097c63 100644 | ||
16 | --- a/Makefile.am | ||
17 | +++ b/Makefile.am | ||
18 | @@ -27,6 +27,16 @@ check_PROGRAMS = \ | ||
19 | testparser \ | ||
20 | testrecurse | ||
21 | |||
22 | +ptestdir=$(libexecdir) | ||
23 | +install-test-data: $(check_PROGRAMS) | ||
24 | + install -d $(DESTDIR)$(ptestdir) $(DESTDIR)$(ptestdir)/python/ | ||
25 | + for T in $(check_PROGRAMS); do \ | ||
26 | + $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$T $(DESTDIR)$(ptestdir) ;\ | ||
27 | + done | ||
28 | + cp -r $(srcdir)/test $(DESTDIR)$(ptestdir) | ||
29 | + cp -r $(srcdir)/result $(DESTDIR)$(ptestdir) | ||
30 | + cp -r $(srcdir)/python/tests $(DESTDIR)$(ptestdir)/python | ||
31 | + | ||
32 | bin_PROGRAMS = xmllint xmlcatalog | ||
33 | |||
34 | bin_SCRIPTS = xml2-config | ||