From: Amos Jeffries Date: Tue, 28 Oct 2008 05:18:06 +0000 (+1300) Subject: Add --cleanup option to test-build.sh to remove working files X-Git-Tag: SQUID_3_2_0_1~1366 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8a06296283338c67ed18e35d0a807533aec4e0b3;p=thirdparty%2Fsquid.git Add --cleanup option to test-build.sh to remove working files --- diff --git a/test-builds.sh b/test-builds.sh index 62da1dcad4..69e9692ba4 100755 --- a/test-builds.sh +++ b/test-builds.sh @@ -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