check-early
[oweals/gnunet.git] / src / statistics / test_gnunet_statistics.sh
index b4c14cd6cdf364b93d06e1145b73d42f14f4452e..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"
 
 # -----------------------------------
@@ -122,6 +134,7 @@ 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