fix for failure of dht testcase due to long wait for hostkey generation. testcase...
authorNathan S. Evans <evans@in.tum.de>
Fri, 7 May 2010 09:44:56 +0000 (09:44 +0000)
committerNathan S. Evans <evans@in.tum.de>
Fri, 7 May 2010 09:44:56 +0000 (09:44 +0000)
src/dht/test_dht_tools.sh

index 0154d99c7be976d42da5809f1de49162ecbe0193..cbbbfd639d7c32d5d50f8afb6cbf853a33f93ac0 100755 (executable)
@@ -6,7 +6,7 @@ checkout="check.out"
 armexe="gnunet-arm -c $tempcfg "
 putexe="gnunet-dht-put -c $tempcfg "
 getexe="gnunet-dht-get -c $tempcfg "
-
+peerinfo="gnunet-peerinfo -c $tempcfg -sq"
 stop_arm()
 {
   if ! $armexe $DEBUG -e -d > $out ; then
@@ -19,6 +19,14 @@ stop_arm()
 
 cp test_dht_api_peer1.conf $tempcfg
 
+echo -n "TEST: Generating hostkey..."
+if ! $peerinfo > $out ; then
+  echo "FAIL: error running $peerinfo"
+  echo "Command output was:"
+  cat $out 
+  exit 1
+fi
+
 echo -n "TEST: Starting ARM..."
 if ! $armexe $DEBUG -s > $out ; then
   echo "FAIL: error running $armexe"