summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-daemons/squid/files/squid-don-t-do-squid-conf-tests-at-build-time.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-networking/recipes-daemons/squid/files/squid-don-t-do-squid-conf-tests-at-build-time.patch')
-rw-r--r--meta-networking/recipes-daemons/squid/files/squid-don-t-do-squid-conf-tests-at-build-time.patch63
1 files changed, 63 insertions, 0 deletions
diff --git a/meta-networking/recipes-daemons/squid/files/squid-don-t-do-squid-conf-tests-at-build-time.patch b/meta-networking/recipes-daemons/squid/files/squid-don-t-do-squid-conf-tests-at-build-time.patch
new file mode 100644
index 0000000000..a5e554736a
--- /dev/null
+++ b/meta-networking/recipes-daemons/squid/files/squid-don-t-do-squid-conf-tests-at-build-time.patch
@@ -0,0 +1,63 @@
1From 54a9c2ba60adc7ec2724786662fd398e7c03999f Mon Sep 17 00:00:00 2001
2From: Jackie Huang <jackie.huang@windriver.com>
3Date: Thu, 25 Aug 2016 15:22:57 +0800
4Subject: [PATCH] squid: don't do squid-conf-tests at build time
5
6* squid-conf-tests is a test to run "squid -k parse -f"
7 to perse the config files, which should not be run
8 at build time since we are cross compiling, so remove
9 it but it will be added back for the runtime ptest.
10
11* Fix the directories of the conf files for squid-conf-tests
12 so that it can run on the target board.
13
14Upstream-Status: Inappropriate [cross compile specific]
15
16Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
17---
18 test-suite/Makefile.am | 15 +++++++--------
19 1 file changed, 7 insertions(+), 8 deletions(-)
20
21diff --git a/test-suite/Makefile.am b/test-suite/Makefile.am
22index d5468be..77fc480 100644
23--- a/test-suite/Makefile.am
24+++ b/test-suite/Makefile.am
25@@ -41,8 +41,7 @@ TESTS += debug \
26 MemPoolTest\
27 mem_node_test\
28 mem_hdr_test\
29- $(ESI_TESTS) \
30- squid-conf-tests
31+ $(ESI_TESTS)
32
33 ## Sort by alpha - any build failures are significant.
34 check_PROGRAMS += debug \
35@@ -125,19 +124,19 @@ VirtualDeleteOperator_SOURCES = VirtualDeleteOperator.cc $(DEBUG_SOURCE)
36 ##$(TARGLIB): $(LIBOBJS)
37 ## $(AR_R) $(TARGLIB) $(LIBOBJS)
38
39-squid-conf-tests: $(top_builddir)/src/squid.conf.default $(srcdir)/squidconf/*
40+squid-conf-tests: /etc/squid.conf.default squidconf/*
41 @failed=0; cfglist="$?"; rm -f $@ || $(TRUE); \
42 for cfg in $$cfglist ; do \
43- $(top_builddir)/src/squid -k parse -f $$cfg || \
44+ squid -k parse -f $$cfg || \
45 { echo "FAIL: squid.conf test: $$cfg" | \
46- sed s%$(top_builddir)/src/%% | \
47- sed s%$(srcdir)/squidconf/%% ; \
48+ sed s%/etc/%% | \
49+ sed s%squidconf/%% ; \
50 failed=1; break; \
51 }; \
52 if test "$$failed" -eq 0; then \
53 echo "PASS: squid.conf test: $$cfg" | \
54- sed s%$(top_builddir)/src/%% | \
55- sed s%$(srcdir)/squidconf/%% ; \
56+ sed s%/etc/%% | \
57+ sed s%squidconf/%% ; \
58 else break; fi; \
59 done; \
60 if test "$$failed" -eq 0; then cp $(TRUE) $@ ; fi
61--
622.8.3
63