aboutsummaryrefslogtreecommitdiff
path: root/src/scalarproduct
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-06-27 14:02:13 +0000
committerChristian Grothoff <christian@grothoff.org>2016-06-27 14:02:13 +0000
commit68a09c195d33239193f160dfabef54a6dbf0d239 (patch)
tree88251180ebc9e616bd87a23bd6c0e6f0da23d978 /src/scalarproduct
parentb0990df82b0e8ff831cbb01ed9fd1d6b4e592b8e (diff)
downloadgnunet-68a09c195d33239193f160dfabef54a6dbf0d239.tar.gz
gnunet-68a09c195d33239193f160dfabef54a6dbf0d239.zip
add timeouts to test
Diffstat (limited to 'src/scalarproduct')
-rwxr-xr-xsrc/scalarproduct/test_scalarproduct_negativezero.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/scalarproduct/test_scalarproduct_negativezero.sh b/src/scalarproduct/test_scalarproduct_negativezero.sh
index 0a6b9b65c..1ab7157af 100755
--- a/src/scalarproduct/test_scalarproduct_negativezero.sh
+++ b/src/scalarproduct/test_scalarproduct_negativezero.sh
@@ -22,13 +22,15 @@ PID=$!
22# sleep 1 is too short on most systems, 2 works on most, 5 seems to be safe 22# sleep 1 is too short on most systems, 2 works on most, 5 seems to be safe
23sleep 5 23sleep 5
24 24
25which timeout &> /dev/null && DO_TIMEOUT="timeout 15"
26
25# get bob's peer ID, necessary for alice 27# get bob's peer ID, necessary for alice
26PEERIDBOB=`gnunet-peerinfo -qs $CFGBOB` 28PEERIDBOB=`${DO_TIMEOUT} gnunet-peerinfo -qs $CFGBOB`
27 29
28#GNUNET_LOG=';;;;DEBUG' 30#GNUNET_LOG=';;;;DEBUG'
29gnunet-scalarproduct $CFGBOB $INPUTBOB & 31${DO_TIMEOUT} gnunet-scalarproduct $CFGBOB $INPUTBOB &
30#GNUNET_LOG=';;;;DEBUG' 32#GNUNET_LOG=';;;;DEBUG'
31RESULT=`gnunet-scalarproduct $CFGALICE $INPUTALICE -p $PEERIDBOB` 33RESULT=`${DO_TIMEOUT} gnunet-scalarproduct $CFGALICE $INPUTALICE -p $PEERIDBOB`
32 34
33# terminate the testbed 35# terminate the testbed
34kill $PID 36kill $PID