diff options
-rwxr-xr-x | src/namestore/test_namestore_delete.sh | 8 | ||||
-rwxr-xr-x | src/namestore/test_namestore_lookup.sh | 8 | ||||
-rwxr-xr-x | src/namestore/test_namestore_put.sh | 8 |
3 files changed, 24 insertions, 0 deletions
diff --git a/src/namestore/test_namestore_delete.sh b/src/namestore/test_namestore_delete.sh index 817697670..78f2cc03c 100755 --- a/src/namestore/test_namestore_delete.sh +++ b/src/namestore/test_namestore_delete.sh | |||
@@ -1,6 +1,14 @@ | |||
1 | #!/bin/bash | 1 | #!/bin/bash |
2 | CONFIGURATION="test_namestore_api.conf" | 2 | CONFIGURATION="test_namestore_api.conf" |
3 | trap "gnunet-arm -e -c $CONFIGURATION" SIGINT | 3 | trap "gnunet-arm -e -c $CONFIGURATION" SIGINT |
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 | |||
4 | rm -rf `gnunet-config -c $CONFIGURATION -s PATHS -o GNUNET_HOME` | 12 | rm -rf `gnunet-config -c $CONFIGURATION -s PATHS -o GNUNET_HOME` |
5 | TEST_DOMAIN_PLUS="www.gnu" | 13 | TEST_DOMAIN_PLUS="www.gnu" |
6 | TEST_DOMAIN_DNS="www3.gnu" | 14 | TEST_DOMAIN_DNS="www3.gnu" |
diff --git a/src/namestore/test_namestore_lookup.sh b/src/namestore/test_namestore_lookup.sh index c080fa961..5a8e076b4 100755 --- a/src/namestore/test_namestore_lookup.sh +++ b/src/namestore/test_namestore_lookup.sh | |||
@@ -1,6 +1,14 @@ | |||
1 | #!/bin/bash | 1 | #!/bin/bash |
2 | CONFIGURATION="test_namestore_api.conf" | 2 | CONFIGURATION="test_namestore_api.conf" |
3 | trap "gnunet-arm -e -c $CONFIGURATION" SIGINT | 3 | trap "gnunet-arm -e -c $CONFIGURATION" SIGINT |
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 | |||
4 | rm -rf `gnunet-config -c $CONFIGURATION -s PATHS -o GNUNET_HOME` | 12 | rm -rf `gnunet-config -c $CONFIGURATION -s PATHS -o GNUNET_HOME` |
5 | TEST_IP_PLUS="127.0.0.1" | 13 | TEST_IP_PLUS="127.0.0.1" |
6 | TEST_RECORD_NAME_DNS="www3" | 14 | TEST_RECORD_NAME_DNS="www3" |
diff --git a/src/namestore/test_namestore_put.sh b/src/namestore/test_namestore_put.sh index f5204dc35..bddefac49 100755 --- a/src/namestore/test_namestore_put.sh +++ b/src/namestore/test_namestore_put.sh | |||
@@ -1,6 +1,14 @@ | |||
1 | #!/bin/bash | 1 | #!/bin/bash |
2 | CONFIGURATION="test_namestore_api.conf" | 2 | CONFIGURATION="test_namestore_api.conf" |
3 | trap "gnunet-arm -e -c $CONFIGURATION" SIGINT | 3 | trap "gnunet-arm -e -c $CONFIGURATION" SIGINT |
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 | |||
4 | rm -rf `gnunet-config -c $CONFIGURATION -s PATHS -o GNUNET_HOME` | 12 | rm -rf `gnunet-config -c $CONFIGURATION -s PATHS -o GNUNET_HOME` |
5 | TEST_DOMAIN_PLUS="www.gnu" | 13 | TEST_DOMAIN_PLUS="www.gnu" |
6 | TEST_DOMAIN_DNS="www3.gnu" | 14 | TEST_DOMAIN_DNS="www3.gnu" |