check-early
authorChristian Grothoff <christian@grothoff.org>
Fri, 23 Oct 2009 20:20:42 +0000 (20:20 +0000)
committerChristian Grothoff <christian@grothoff.org>
Fri, 23 Oct 2009 20:20:42 +0000 (20:20 +0000)
src/statistics/test_gnunet_statistics.sh

index 79e15495b572e185201d540174dd98b7de5606f5..55190502a804a278ad77dceffafdd87fddac550b 100755 (executable)
@@ -101,6 +101,18 @@ if ! $exe $DEBUG -n lasting -s subsystem 40 -p; then
   $arm -e
   exit 1
 fi
+if ! $exe $DEBUG > $out; then
+    echo "FAIL: error running $exe"
+    $arm -e
+    exit 1
+fi
+LINES=`cat $out | grep 40 | wc -l`
+if test $LINES -ne 1; then
+    echo "FAIL: unexpected output"
+    cat $out
+    $arm -e
+    exit 1
+fi
 echo "PASS"
 
 # -----------------------------------