blob: 312f44f8ebf06bd3aeb3117e1b8843153487a3d2 [file] [log] [blame]
Patrick Williamsddad1a12017-02-23 20:36:32 -06001From 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: $(sysconfdir)/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%$(sysconfdir)/%% | \
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%$(sysconfdir)/%% | \
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