X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Fstatistics%2Ftest_gnunet_statistics.sh;h=eb2d618d9ac3c8f354e1d032113b9b56eceffaa1;hb=ff754768e374c38fdfe8c677e610431dcc667218;hp=b4c14cd6cdf364b93d06e1145b73d42f14f4452e;hpb=cf69436d2bff114c097825eb5588f898396680cf;p=oweals%2Fgnunet.git diff --git a/src/statistics/test_gnunet_statistics.sh b/src/statistics/test_gnunet_statistics.sh index b4c14cd6c..eb2d618d9 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" # ----------------------------------- @@ -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 @@ -137,6 +150,18 @@ if ! $exe $DEBUG -n lasting -s subsystem 40; 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 \! | wc -l` +if test $LINES -ne 0; then + echo "FAIL: unexpected output" + cat $out + $arm -e + exit 1 +fi echo "PASS" @@ -159,6 +184,7 @@ fi LINES=`cat $out | grep 40 | wc -l` if test $LINES -ne 0; then echo "FAIL: unexpected output" + cat $out $arm -e exit 1 fi