xref: /OK3568_Linux_fs/yocto/poky/meta/recipes-core/libxml/libxml2/fix-execution-of-ptests.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1From 395c0f53ec226aaabedb166e6b3a7f8590b95a5f Mon Sep 17 00:00:00 2001
2From: Hongxu Jia <hongxu.jia@windriver.com>
3Date: Sat, 11 May 2019 20:39:15 +0800
4Subject: [PATCH] Make sure that Makefile doesn't try to compile these tests
5 again on the target where the source dependencies won't be available.
6
7Upstream-Status: Inappropriate [cross-compile specific]
8
9Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
10
11Rebase to 2.9.9
12Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
13---
14 Makefile.am | 3 +--
15 1 file changed, 1 insertion(+), 2 deletions(-)
16
17diff --git a/Makefile.am b/Makefile.am
18index 8f4e43d..5edb930 100644
19--- a/Makefile.am
20+++ b/Makefile.am
21@@ -211,8 +211,7 @@ install-ptest:
22 	sed -i -e 's|^Makefile:|_Makefile:|' $(DESTDIR)/Makefile
23 	$(MAKE) -C python install-ptest
24
25-runtests: runtest$(EXEEXT) testrecurse$(EXEEXT) testapi$(EXEEXT) \
26-          testchar$(EXEEXT) testdict$(EXEEXT) runxmlconf$(EXEEXT)
27+runtests:
28 	[ -d test   ] || $(LN_S) $(srcdir)/test   .
29 	[ -d result ] || $(LN_S) $(srcdir)/result .
30 	$(CHECKER) ./runtest$(EXEEXT) && \
31--
322.7.4
33
34