diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2013-11-28 10:37:24 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2013-11-28 10:37:24 +0000 |
commit | 2d4aebfa4622cdf0d36172bcdd73a5b78a43bf0c (patch) | |
tree | bc1b6572882e7c2000b4289edfd84279ab665873 /src | |
parent | 5baf448f3639283acb66c7abcbd3118c751fbb8b (diff) | |
download | gnunet-2d4aebfa4622cdf0d36172bcdd73a5b78a43bf0c.tar.gz gnunet-2d4aebfa4622cdf0d36172bcdd73a5b78a43bf0c.zip |
check for cli tools
Diffstat (limited to 'src')
-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" |