]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Add --cleanup option to test-build.sh to remove working files
authorAmos Jeffries <squid3@treenet.co.nz>
Tue, 28 Oct 2008 05:18:06 +0000 (18:18 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Tue, 28 Oct 2008 05:18:06 +0000 (18:18 +1300)
test-builds.sh

index 62da1dcad4c5aa142e0ea1bd4d344136bb686156..69e9692ba4ef6b91f67260b29b30659ab3a41cbb 100755 (executable)
@@ -3,6 +3,12 @@
 #  Run specific build tests for a given OS environment.
 #
 
+cleanup="no"
+if test "${1}" = "--cleanup" ; then
+       cleanup="yes"
+       shift
+fi
+
 tmp="${1}"
 if test -e ./test-suite/buildtests/os-${tmp}.opts ; then
        echo "TESTING: ${tmp}"
@@ -27,4 +33,8 @@ for f in `ls -1 ./test-suite/buildtests/layer*.opts` ; do
        ../test-suite/buildtest.sh ".${arg}" ||
        ( grep -E "^ERROR|\ error:\ |No\ such" buildtest_*.log && exit 1 )
        cd ..
+       if test "${cleanup}" = "yes" ; then
+               echo "REMOVE: btl${layer}"
+               rm -f -r btl${layer}
+       fi
 done