From: Amos Jeffries Date: Tue, 21 Jul 2009 08:15:54 +0000 (+1200) Subject: TestBed: tighten some testign procedures. X-Git-Tag: SQUID_3_2_0_1~858 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=44cb4179eb1c83eb5a10830b503fe58a9af4245a;p=thirdparty%2Fsquid.git TestBed: tighten some testign procedures. * only build if bootstrap works * display last 20 lines of test result on failure we want to see the real error plus, not just "make Error 1" messages * use chmod to improve cleanup removal after (un)install test failures --- diff --git a/scripts/testbed.sh b/scripts/testbed.sh index 69350e718c..6ca24a8901 100755 --- a/scripts/testbed.sh +++ b/scripts/testbed.sh @@ -18,7 +18,7 @@ # build results bzr update 2>&1 - ./bootstrap.sh + ./bootstrap.sh && ./test-builds.sh --cleanup ) | /usr/sbin/sendmail -t diff --git a/test-builds.sh b/test-builds.sh index 45f368750e..613070969b 100755 --- a/test-builds.sh +++ b/test-builds.sh @@ -76,6 +76,7 @@ buildtest() { if test "${cleanup}" = "yes" ; then echo "REMOVE DATA: ${btlayer}" + chmod -R 777 ${btlayer} rm -f -r ${btlayer} fi @@ -86,7 +87,7 @@ buildtest() { fi else echo "Build Failed. Last log lines are:" - tail -5 ${log} + tail -20 ${log} globalResult=1 fi