copy config to /tmp/ so arm can remove
authorNathan S. Evans <evans@in.tum.de>
Thu, 6 May 2010 08:56:32 +0000 (08:56 +0000)
committerNathan S. Evans <evans@in.tum.de>
Thu, 6 May 2010 08:56:32 +0000 (08:56 +0000)
src/dht/test_dht_tools.sh

index 9b05b76365cae91cdcef2108a4c9b1221e945d21..0ac7e94c03c0251b6f4bf17b53d8ed30b009f63e 100755 (executable)
@@ -1,10 +1,11 @@
 #!/bin/sh
 
-armexe="gnunet-arm -c test_dht_api_peer1.conf "
-putexe="gnunet-dht-put -c test_dht_api_peer1.conf "
-getexe="gnunet-dht-get -c test_dht_api_peer1.conf "
 out=`mktemp /tmp/test-gnunet-arm-logXXXXXXXX`
+tempcfg=`mktemp /tmp/test_dht_api_peer1.XXXXXXXX`
 checkout="check.out"
+armexe="gnunet-arm -c $tempcfg "
+putexe="gnunet-dht-put -c $tempcfg "
+getexe="gnunet-dht-get -c $tempcfg "
 
 stop_arm()
 {
@@ -17,6 +18,8 @@ stop_arm()
   fi
 }
 
+cp test_dht_api_peer1.conf $tempcfg
+
 echo -n "TEST: Starting ARM..."
 if ! $armexe $DEBUG -s > $out ; then
   echo "FAIL: error running $armexe"