summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/libxml/libxml2/install-tests.patch
blob: b770afbeb49052de01ba2209b7a3ee45f1299f98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
Add a target to install the test suite.

Upstream-Status: Inappropriate
Signed-off-by: Ross Burton <ross.burton@arm.com>

From c7809dc6947324ea506a0c2bf132ecd37156f211 Mon Sep 17 00:00:00 2001
From: Ross Burton <ross.burton@arm.com>
Date: Mon, 5 Dec 2022 17:02:32 +0000
Subject: [PATCH] add yocto-specific install-ptest target

---
 Makefile.am | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/Makefile.am b/Makefile.am
index 316109b1..15e100be 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -26,6 +26,16 @@ check_PROGRAMS = \
 	testlimits \
 	testrecurse
 
+ptestdir=$(libexecdir)
+install-test-data: $(check_PROGRAMS)
+	install -d $(DESTDIR)$(ptestdir) $(DESTDIR)$(ptestdir)/python/
+	for T in $(check_PROGRAMS); do \
+		$(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$T $(DESTDIR)$(ptestdir) ;\
+	done
+	cp -r $(srcdir)/test $(DESTDIR)$(ptestdir)
+	cp -r $(srcdir)/result $(DESTDIR)$(ptestdir)
+	cp -r $(srcdir)/python/tests $(DESTDIR)$(ptestdir)/python
+
 bin_PROGRAMS = xmllint xmlcatalog
 
 nodist_bin_SCRIPTS = xml2-config
-- 
2.34.1