gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r37394 - gnunet/src/scalarproduct


From: gnunet
Subject: [GNUnet-SVN] r37394 - gnunet/src/scalarproduct
Date: Mon, 27 Jun 2016 16:02:13 +0200

Author: grothoff
Date: 2016-06-27 16:02:13 +0200 (Mon, 27 Jun 2016)
New Revision: 37394

Modified:
   gnunet/src/scalarproduct/test_scalarproduct_negativezero.sh
Log:
add timeouts to test

Modified: gnunet/src/scalarproduct/test_scalarproduct_negativezero.sh
===================================================================
--- gnunet/src/scalarproduct/test_scalarproduct_negativezero.sh 2016-06-27 
14:00:15 UTC (rev 37393)
+++ gnunet/src/scalarproduct/test_scalarproduct_negativezero.sh 2016-06-27 
14:02:13 UTC (rev 37394)
@@ -22,13 +22,15 @@
 # sleep 1 is too short on most systems, 2 works on most, 5 seems to be safe
 sleep 5
 
+which timeout &> /dev/null && DO_TIMEOUT="timeout 15"
+
 # get bob's peer ID, necessary for alice
-PEERIDBOB=`gnunet-peerinfo -qs $CFGBOB`
+PEERIDBOB=`${DO_TIMEOUT} gnunet-peerinfo -qs $CFGBOB`
 
 #GNUNET_LOG=';;;;DEBUG'
-gnunet-scalarproduct $CFGBOB $INPUTBOB &
+${DO_TIMEOUT} gnunet-scalarproduct $CFGBOB $INPUTBOB &
 #GNUNET_LOG=';;;;DEBUG'
-RESULT=`gnunet-scalarproduct $CFGALICE $INPUTALICE -p $PEERIDBOB`
+RESULT=`${DO_TIMEOUT} gnunet-scalarproduct $CFGALICE $INPUTALICE -p $PEERIDBOB`
 
 # terminate the testbed
 kill $PID




reply via email to

[Prev in Thread] Current Thread [Next in Thread]