diff options
Diffstat (limited to 'src/namestore/test_namestore_lookup.sh')
-rwxr-xr-x | src/namestore/test_namestore_lookup.sh | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/namestore/test_namestore_lookup.sh b/src/namestore/test_namestore_lookup.sh index 5a8e076b4..d1ac42544 100755 --- a/src/namestore/test_namestore_lookup.sh +++ b/src/namestore/test_namestore_lookup.sh | |||
@@ -5,11 +5,16 @@ trap "gnunet-arm -e -c $CONFIGURATION" SIGINT | |||
5 | LOCATION=$(which gnunet-config) | 5 | LOCATION=$(which gnunet-config) |
6 | if [ -z $LOCATION ] | 6 | if [ -z $LOCATION ] |
7 | then | 7 | then |
8 | LOCATION="gnunet-config" | ||
9 | fi | ||
10 | $LOCATION --version | ||
11 | if test $? != 0 | ||
12 | then | ||
8 | echo "GNUnet command line tools cannot be found, check environmental variables PATH and GNUNET_PREFIX" | 13 | echo "GNUnet command line tools cannot be found, check environmental variables PATH and GNUNET_PREFIX" |
9 | exit 1 | 14 | exit 77 |
10 | fi | 15 | fi |
11 | 16 | ||
12 | rm -rf `gnunet-config -c $CONFIGURATION -s PATHS -o GNUNET_HOME` | 17 | rm -rf `$LOCATION -c $CONFIGURATION -s PATHS -o GNUNET_HOME` |
13 | TEST_IP_PLUS="127.0.0.1" | 18 | TEST_IP_PLUS="127.0.0.1" |
14 | TEST_RECORD_NAME_DNS="www3" | 19 | TEST_RECORD_NAME_DNS="www3" |
15 | which timeout &> /dev/null && DO_TIMEOUT="timeout 5" | 20 | which timeout &> /dev/null && DO_TIMEOUT="timeout 5" |