]>
git.ipfire.org Git - thirdparty/squid.git/blob - test-builds.sh
3 # Run specific build tests for a given OS environment.
7 if test "${1}" = "--cleanup" ; then
13 errors
="^ERROR|\ error:|\ Error\ |No\ such|assertion\ failed|FAIL:"
15 # Run a single test build by name
17 if test -e .
/test-suite
/buildtests
/${tmp}.opts
; then
18 echo "TESTING: ${tmp}"
19 rm -f -r bt
${tmp} && mkdir bt${tmp} && cd bt${tmp}
20 ..
/test-suite
/buildtest.sh ..
/test-suite
/buildtests
/${tmp}
21 grep -E "${errors}" buildtest_
*.log
&& exit 1
27 # Run specific tests for each combination of configure-time
30 # These layers are constructed from detailed knowledge of
31 # component dependencies.
33 for f
in `ls -1 ./test-suite/buildtests/layer*.opts` ; do
34 layer
=`echo "${f}" | grep -o -E "layer-[0-9]*-[^\.]*"`
35 rm -f -r bt
${layer} && mkdir bt${layer} && cd bt${layer}
36 arg
=`echo "${f}" | sed s/\\.opts//`
37 echo "TESTING: ${arg}"
38 ..
/test-suite
/buildtest.sh
".${arg}"
39 grep -E "${errors}" buildtest_
*.log
&& exit 1
41 if test "${cleanup}" = "yes" ; then
42 echo "REMOVE: bt${layer}"