- usage of short hashes
[oweals/gnunet.git] / src / arm / test_gnunet_arm.sh
index ce4396cfbfe1ecb45d5818c9cf4a36a1f2d0b7d2..4a5b7266dbed9e1365f29177fae6d62d203d9f8b 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 exe="./gnunet-arm -c test_arm_api_data.conf"
-out=`mktemp /tmp/test-gnunetd-arm-logXXXXXXXX`
+out=`mktemp /tmp/test-gnunet-arm-logXXXXXXXX`
 #DEBUG="-L DEBUG"
 
 
@@ -39,28 +39,6 @@ fi
 sleep 1
 echo "PASS"
 
-# ----------------------------------------------------------------------------------
-echo -n "TEST: Test -t on running service... "
-if ! $exe $DEBUG -t resolver > $out; then
-    echo "FAIL: error running $exe"
-    exit 1
-fi
-LINES=`cat $out | grep resolver | grep not | wc -l`
-if test $LINES -ne 0; then
-  echo "FAIL: unexpected output:"
-  cat $out
-  $exe -e
-  exit 1
-fi
-LINES=`cat $out | grep resolver | grep -v not | wc -l`
-if test $LINES -ne 1; then
-  echo "FAIL: unexpected output"
-  cat $out
-  $exe -e
-  exit 1
-fi
-echo "PASS"
-
 # ----------------------------------------------------------------------------------
 echo -n "TEST: Stop a service... "
 
@@ -72,23 +50,6 @@ fi
 sleep 1
 echo "PASS"
 
-# ----------------------------------------------------------------------------------
-echo -n "TEST: Test -t on stopped service... "
-if ! $exe $DEBUG -t resolver > $out; then
-  echo "FAIL: error running $exe"
-  cat $out
-  $exe -e > /dev/null
-  exit 1
-fi
-LINES=`cat $out | grep resolver | grep not | wc -l`
-if test $LINES -ne 1; then
-  echo "FAIL: unexpected output"
-  cat $out 
-  $exe -e > /dev/null
-  exit 1
-fi
-echo "PASS"
-
 # ----------------------------------------------------------------------------------
 echo -n "TEST: Stop ARM... "