Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame^] | 1 | Add a target to install the test suite. |
| 2 | |
| 3 | Upstream-Status: Inappropriate |
| 4 | Signed-off-by: Ross Burton <ross.burton@arm.com> |
| 5 | |
| 6 | From c7809dc6947324ea506a0c2bf132ecd37156f211 Mon Sep 17 00:00:00 2001 |
| 7 | From: Ross Burton <ross.burton@arm.com> |
| 8 | Date: Mon, 5 Dec 2022 17:02:32 +0000 |
| 9 | Subject: [PATCH] add yocto-specific install-ptest target |
| 10 | |
| 11 | --- |
| 12 | Makefile.am | 10 ++++++++++ |
| 13 | 1 file changed, 10 insertions(+) |
| 14 | |
| 15 | diff --git a/Makefile.am b/Makefile.am |
| 16 | index 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 | -- |
| 37 | 2.34.1 |
| 38 | |