1From 8c1054eacb430472068f21e4840749c384e8e866 Mon Sep 17 00:00:00 2001 2From: Ross Burton <ross.burton@arm.com> 3Date: Mon, 5 Dec 2022 17:02:32 +0000 4Subject: [PATCH] add yocto-specific install-ptest target 5 6Add a target to install the test suite. 7 8Upstream-Status: Inappropriate 9Signed-off-by: Ross Burton <ross.burton@arm.com> 10--- 11 Makefile.am | 10 ++++++++++ 12 1 file changed, 10 insertions(+) 13 14diff --git a/Makefile.am b/Makefile.am 15index 4cb9a5c..8adcd7e 100644 16--- a/Makefile.am 17+++ b/Makefile.am 18@@ -26,6 +26,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 33 34 bin_SCRIPTS = xml2-config 35