X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Fstatistics%2Ftest_gnunet_statistics.sh;h=55190502a804a278ad77dceffafdd87fddac550b;hb=194eb3a6a1e629a21b00574a3324d8e955e0e6db;hp=79e15495b572e185201d540174dd98b7de5606f5;hpb=292fad96f60622d28c509d20f69d83caccbdcaae;p=oweals%2Fgnunet.git diff --git a/src/statistics/test_gnunet_statistics.sh b/src/statistics/test_gnunet_statistics.sh index 79e15495b..55190502a 100755 --- a/src/statistics/test_gnunet_statistics.sh +++ b/src/statistics/test_gnunet_statistics.sh @@ -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" # -----------------------------------