]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Do more verbose logging to the console of output when tests fail so that
authorMarc Abramowitz <[email protected]>
Fri, 5 Oct 2012 00:04:54 +0000 (17:04 -0700)
committerMarc Abramowitz <[email protected]>
Fri, 12 Oct 2012 15:14:45 +0000 (08:14 -0700)
I can figure out why some tests are failing in Travis CI.

tests/TESTrun.sh

index dfcc330742633867b437b36f70a86f51c608c127..d1baaa7be6039c184a4353713a6c6bda8da82404 100755 (executable)
@@ -4,6 +4,7 @@ mkdir -p NEW
 mkdir -p DIFF
 passed=0
 failed=0
 mkdir -p DIFF
 passed=0
 failed=0
+cat /dev/null > failure-outputs.txt
 
 # first run any specific tests.
 for i in *.sh
 
 # first run any specific tests.
 for i in *.sh
@@ -42,6 +43,10 @@ do
       echo $name: failed.
       failed=`expr $failed + 1`
       echo $failed >.failed
       echo $name: failed.
       failed=`expr $failed + 1`
       echo $failed >.failed
+      echo "Failed test: $name" >> failure-outputs.txt
+      echo >> failure-outputs.txt
+      cat DIFF/$output.diff >> failure-outputs.txt
+      echo >> failure-outputs.txt
   fi
 done 
 
   fi
 done 
 
@@ -56,6 +61,9 @@ printf "%4u tests failed\n" $failed
 printf "%4u tests passed\n" $passed
 echo
 echo
 printf "%4u tests passed\n" $passed
 echo
 echo
+cat failure-outputs.txt
+echo
+echo
 exit $failed      
 
 
 exit $failed