]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
TestBed: polish verbose mode a little
authorAmos Jeffries <squid3@treenet.co.nz>
Wed, 26 Aug 2009 14:07:30 +0000 (02:07 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Wed, 26 Aug 2009 14:07:30 +0000 (02:07 +1200)
 - make the master script only show the 'lst lines' summary when not
   dumping the entire log anyway for vebose display

 - make verbose mode show whats in the test directory when starting a build.

 - make each run display the list of files/folders after distclean

test-builds.sh
test-suite/buildtest.sh

index e74bd38c412e26d22dbe3b63a13497a0b40cea0c..68f2b2b3ab1089da5763fd18f9f2b71fc1ae5cf4 100755 (executable)
@@ -45,6 +45,9 @@ buildtest() {
     echo "TESTING: ${layer}"
     chmod -R 777 ${btlayer}
     rm -f -r ${btlayer} && mkdir ${btlayer}
+    if test "${verbose}" = "yes" ; then
+        ls -la ${btlayer}
+    fi
     {
        result=255
        cd ${btlayer}
@@ -83,13 +86,17 @@ buildtest() {
 
     if test $result -eq 0; then
        # successful execution
-       if test "$verbose" = yes; then
+       if test "${verbose}" = "yes"; then
            echo "Build OK. Global result is $globalResult."
        fi
     else
-        echo "Build Failed. Last log lines are:"
-        tail -20 ${log}
-       globalResult=1
+        if test "${verbose}" = "yes" ; then
+            echo "Build Failed. Last log lines are:"
+            tail -20 ${log}
+        else
+            echo "Build FAILED."
+        fi
+        globalResult=1
     fi
 
     if test "${cleanup}" = "yes" ; then
index caaf0fa71337298d46efa656d72aa1a28490ecbc..41537015f1d00ff42acc330a58d6839fe2b55355 100755 (executable)
@@ -31,7 +31,8 @@ fi
 FILECOUNT=`ls -1 | grep -c .`
 if test "${FILECOUNT}" != "0" ; then
   make -k distclean || echo "distclean done. errors are unwanted but okay here."
-  rm -f -r src/fs/aufs/.deps src/fs/diskd/.deps
+  ls -la .
+  rm -fr ./src/fs/aufs/.deps src/fs/diskd/.deps
 fi
 
 #