blob: b770afbeb49052de01ba2209b7a3ee45f1299f98 [file] [log] [blame]
Andrew Geissler517393d2023-01-13 08:55:19 -06001Add a target to install the test suite.
2
3Upstream-Status: Inappropriate
4Signed-off-by: Ross Burton <ross.burton@arm.com>
5
6From c7809dc6947324ea506a0c2bf132ecd37156f211 Mon Sep 17 00:00:00 2001
7From: Ross Burton <ross.burton@arm.com>
8Date: Mon, 5 Dec 2022 17:02:32 +0000
9Subject: [PATCH] add yocto-specific install-ptest target
10
11---
12 Makefile.am | 10 ++++++++++
13 1 file changed, 10 insertions(+)
14
15diff --git a/Makefile.am b/Makefile.am
16index 316109b1..15e100be 100644
17--- a/Makefile.am
18+++ b/Makefile.am
19@@ -26,6 +26,16 @@ check_PROGRAMS = \
20 testlimits \
21 testrecurse
22
23+ptestdir=$(libexecdir)
24+install-test-data: $(check_PROGRAMS)
25+ install -d $(DESTDIR)$(ptestdir) $(DESTDIR)$(ptestdir)/python/
26+ for T in $(check_PROGRAMS); do \
27+ $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$T $(DESTDIR)$(ptestdir) ;\
28+ done
29+ cp -r $(srcdir)/test $(DESTDIR)$(ptestdir)
30+ cp -r $(srcdir)/result $(DESTDIR)$(ptestdir)
31+ cp -r $(srcdir)/python/tests $(DESTDIR)$(ptestdir)/python
32+
33 bin_PROGRAMS = xmllint xmlcatalog
34
35 nodist_bin_SCRIPTS = xml2-config
36--
372.34.1
38