diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2013-11-28 10:42:15 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2013-11-28 10:42:15 +0000 |
commit | 37566e067645bf881b170796251a14d8d20202b8 (patch) | |
tree | b401760ca6925f06e939b1fd43c502558c16a8aa /src/gns/test_gns_dht_lookup.sh | |
parent | ca079d6ac476568a39c7c76bed85f9dc82f6672e (diff) | |
download | gnunet-37566e067645bf881b170796251a14d8d20202b8.tar.gz gnunet-37566e067645bf881b170796251a14d8d20202b8.zip |
add cli check
Diffstat (limited to 'src/gns/test_gns_dht_lookup.sh')
-rwxr-xr-x | src/gns/test_gns_dht_lookup.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gns/test_gns_dht_lookup.sh b/src/gns/test_gns_dht_lookup.sh index 7d76d9c52..e2b025f86 100755 --- a/src/gns/test_gns_dht_lookup.sh +++ b/src/gns/test_gns_dht_lookup.sh | |||
@@ -2,6 +2,13 @@ | |||
2 | trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT | 2 | trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT |
3 | which timeout &> /dev/null && DO_TIMEOUT="timeout 30" | 3 | which timeout &> /dev/null && DO_TIMEOUT="timeout 30" |
4 | 4 | ||
5 | LOCATION=$(which gnunet-config) | ||
6 | if [ -z $LOCATION ] | ||
7 | then | ||
8 | echo "GNUnet command line tools cannot be found, check environmental variables PATH and GNUNET_PREFIX" | ||
9 | exit 1 | ||
10 | fi | ||
11 | |||
5 | TEST_IP="127.0.0.1" | 12 | TEST_IP="127.0.0.1" |
6 | gnunet-arm -s -c test_gns_lookup.conf | 13 | gnunet-arm -s -c test_gns_lookup.conf |
7 | gnunet-identity -C delegatedego -c test_gns_lookup.conf | 14 | gnunet-identity -C delegatedego -c test_gns_lookup.conf |