]>
git.ipfire.org Git - thirdparty/squid.git/blob - test-builds.sh
3 # Run specific build tests for a given OS environment.
26 errors
="^ERROR|\ error:|\ Error\ |No\ such|assertion\ failed|FAIL:"
29 if [ $verbose = yes ]; then
38 layer
=`basename $opts .opts`
41 echo "TESTING: ${layer}"
42 rm -f -r ${btlayer} && mkdir
${btlayer}
45 if test -e $top/test-suite
/buildtest.sh
; then
46 $top/test-suite
/buildtest.sh
$opts
47 elif test -e ..
/$top/test-suite
/buildtest.sh
; then
48 ..
/$top/test-suite
/buildtest.sh
$opts
51 grep -E "${errors}" $log && exit 1
52 if test "${cleanup}" = "yes" ; then
53 echo "REMOVE: ${btlayer}"
54 rm -f -r ${btlayer} $log
56 result
=`tail -2 $log | head -1`
57 test "${result}" = "Build Successful." ||
( tail -5 $log ; exit 1 )
60 # Run a single test build by name or opts file
66 tmp
=`basename "${1}" .opts`
67 if test -e $top/test-suite
/buildtests
/${tmp}.opts
; then
68 buildtest
$top/test-suite
/buildtests
/${tmp}.opts
73 # Run specific tests for each combination of configure-time
76 # These layers are constructed from detailed knowledge of
77 # component dependencies.
79 for f
in `ls -1 $top/test-suite/buildtests/layer*.opts` ; do