]>
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 "BUILD" ${log}
52 grep -E "${errors}" $log && exit 1
53 if test "${cleanup}" = "yes" ; then
54 echo "REMOVE DATA: ${btlayer}"
57 result
=`tail -2 $log | head -1`
58 if test "${result}" = "Build Successful." ; then
65 if test "${cleanup}" = "yes" ; then
66 echo "REMOVE LOG: ${log}"
71 # Run a single test build by name or opts file
77 tmp
=`basename "${1}" .opts`
78 if test -e $top/test-suite
/buildtests
/${tmp}.opts
; then
79 buildtest
$top/test-suite
/buildtests
/${tmp}.opts
84 # Run specific tests for each combination of configure-time
87 # These layers are constructed from detailed knowledge of
88 # component dependencies.
90 for f
in `ls -1 $top/test-suite/buildtests/layer*.opts` ; do