diff options
Diffstat (limited to 'src/gns/test_gns_lookup.sh')
-rwxr-xr-x | src/gns/test_gns_lookup.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gns/test_gns_lookup.sh b/src/gns/test_gns_lookup.sh index 6eb16aa52..6a91e78a4 100755 --- a/src/gns/test_gns_lookup.sh +++ b/src/gns/test_gns_lookup.sh | |||
@@ -1,5 +1,13 @@ | |||
1 | #!/bin/bash | 1 | #!/bin/bash |
2 | trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT | 2 | trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT |
3 | |||
4 | LOCATION=$(which gnunet-config) | ||
5 | if [ -z $LOCATION ] | ||
6 | then | ||
7 | echo "GNUnet command line tools cannot be found, check environmental variables PATH and GNUNET_PREFIX" | ||
8 | exit 1 | ||
9 | fi | ||
10 | |||
3 | rm -r `gnunet-config -c test_gns_lookup.conf -s PATHS -o GNUNET_HOME -f` | 11 | rm -r `gnunet-config -c test_gns_lookup.conf -s PATHS -o GNUNET_HOME -f` |
4 | which timeout &> /dev/null && DO_TIMEOUT="timeout 30" | 12 | which timeout &> /dev/null && DO_TIMEOUT="timeout 30" |
5 | TEST_IP="127.0.0.1" | 13 | TEST_IP="127.0.0.1" |