summaryrefslogtreecommitdiff
path: root/src/scalarproduct/test_scalarproduct_negative.sh
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-12-17 19:44:08 +0000
committerChristian Grothoff <christian@grothoff.org>2013-12-17 19:44:08 +0000
commitab7e7921897864b39f7efba7b13f926bf9d705fd (patch)
tree4495f16372c29f95ea4647a50d171b7d3147e4f6 /src/scalarproduct/test_scalarproduct_negative.sh
parente324e9dbec05a9b38e23776e1b93b2c268c2ba7e (diff)
-do not log at DEBUG in testcases (at least not in SVN), do not print random stuff to stdout
Diffstat (limited to 'src/scalarproduct/test_scalarproduct_negative.sh')
-rwxr-xr-xsrc/scalarproduct/test_scalarproduct_negative.sh15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/scalarproduct/test_scalarproduct_negative.sh b/src/scalarproduct/test_scalarproduct_negative.sh
index 58a02998d..de6f2b348 100755
--- a/src/scalarproduct/test_scalarproduct_negative.sh
+++ b/src/scalarproduct/test_scalarproduct_negative.sh
@@ -13,10 +13,11 @@ CFGBOB="-c $PREFIX/1/config"
# launch two peers in line topology non-interactively
#
-# interactive mode would terminate the test immediately
-# because the rest of the script is already in stdin,
+# interactive mode would terminate the test immediately
+# because the rest of the script is already in stdin,
# thus redirecting stdin does not suffice)
-GNUNET_LOG='scalarproduct;;;;DEBUG' GNUNET_TESTING_PREFIX=$PREFIX ../testbed/gnunet-testbed-profiler -n -c test_scalarproduct.conf -p 2 &
+#GNUNET_LOG='scalarproduct;;;;DEBUG'
+GNUNET_TESTING_PREFIX=$PREFIX ../testbed/gnunet-testbed-profiler -n -c test_scalarproduct.conf -p 2 &
PID=$!
# sleep 1 is too short on most systems, 2 works on most, 5 seems to be safe
sleep 5
@@ -24,11 +25,13 @@ sleep 5
# get bob's peer ID, necessary for alice
PEERIDBOB=`gnunet-peerinfo -qs $CFGBOB`
-GNUNET_LOG=';;;;DEBUG' gnunet-scalarproduct $CFGBOB $INPUTBOB &
-RESULT=`GNUNET_LOG=';;;;DEBUG' gnunet-scalarproduct $CFGALICE $INPUTALICE -p $PEERIDBOB`
+#GNUNET_LOG=';;;;DEBUG'
+gnunet-scalarproduct $CFGBOB $INPUTBOB &
+#RESULT=`GNUNET_LOG=';;;;DEBUG'
+RESULT=`gnunet-scalarproduct $CFGALICE $INPUTALICE -p $PEERIDBOB`
# terminate the testbed
-kill $PID
+kill $PID
EXPECTED="-0CCC"
if [ "$RESULT" == "$EXPECTED" ]