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 | |
parent | ca079d6ac476568a39c7c76bed85f9dc82f6672e (diff) | |
download | gnunet-37566e067645bf881b170796251a14d8d20202b8.tar.gz gnunet-37566e067645bf881b170796251a14d8d20202b8.zip |
add cli check
Diffstat (limited to 'src')
-rwxr-xr-x | src/gns/test_gns_cname_lookup.sh | 8 | ||||
-rwxr-xr-x | src/gns/test_gns_delegated_lookup.sh | 8 | ||||
-rwxr-xr-x | src/gns/test_gns_dht_lookup.sh | 7 | ||||
-rwxr-xr-x | src/gns/test_gns_gns2dns_lookup.sh | 8 | ||||
-rwxr-xr-x | src/gns/test_gns_ipv6_lookup.sh | 8 | ||||
-rwxr-xr-x | src/gns/test_gns_lookup.sh | 8 | ||||
-rwxr-xr-x | src/gns/test_gns_mx_lookup.sh | 8 | ||||
-rwxr-xr-x | src/gns/test_gns_nick_shorten.sh | 7 | ||||
-rwxr-xr-x | src/gns/test_gns_plus_lookup.sh | 8 | ||||
-rwxr-xr-x | src/gns/test_gns_quickupdate.sh | 8 | ||||
-rwxr-xr-x | src/gns/test_gns_rel_expiration.sh | 8 | ||||
-rwxr-xr-x | src/gns/test_gns_revocation.sh | 8 | ||||
-rwxr-xr-x | src/gns/test_gns_soa_lookup.sh | 8 | ||||
-rwxr-xr-x | src/gns/test_gns_txt_lookup.sh | 8 | ||||
-rwxr-xr-x | src/gns/test_gns_zkey_lookup.sh | 8 | ||||
-rwxr-xr-x | src/gns/test_gnunet_gns.sh | 8 |
16 files changed, 126 insertions, 0 deletions
diff --git a/src/gns/test_gns_cname_lookup.sh b/src/gns/test_gns_cname_lookup.sh index 581c742cc..1a4c10268 100755 --- a/src/gns/test_gns_cname_lookup.sh +++ b/src/gns/test_gns_cname_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 -rf `gnunet-config -c test_gns_lookup.conf -s PATHS -o GNUNET_HOME -f` | 11 | rm -rf `gnunet-config -c test_gns_lookup.conf -s PATHS -o GNUNET_HOME -f` |
4 | TEST_DOMAIN_PLUS="www.gnu" | 12 | TEST_DOMAIN_PLUS="www.gnu" |
5 | TEST_DOMAIN_DNS="www3.gnu" | 13 | TEST_DOMAIN_DNS="www3.gnu" |
diff --git a/src/gns/test_gns_delegated_lookup.sh b/src/gns/test_gns_delegated_lookup.sh index 43d72e823..c949ca7dc 100755 --- a/src/gns/test_gns_delegated_lookup.sh +++ b/src/gns/test_gns_delegated_lookup.sh | |||
@@ -1,6 +1,14 @@ | |||
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 | which timeout &> /dev/null && DO_TIMEOUT="timeout 30" | 3 | which timeout &> /dev/null && DO_TIMEOUT="timeout 30" |
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 test_gns_lookup.conf -s PATHS -o GNUNET_HOME -f` | 12 | rm -rf `gnunet-config -c test_gns_lookup.conf -s PATHS -o GNUNET_HOME -f` |
5 | 13 | ||
6 | TEST_IP="127.0.0.1" | 14 | TEST_IP="127.0.0.1" |
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 |
diff --git a/src/gns/test_gns_gns2dns_lookup.sh b/src/gns/test_gns_gns2dns_lookup.sh index 5bd33221a..fa48fb20a 100755 --- a/src/gns/test_gns_gns2dns_lookup.sh +++ b/src/gns/test_gns_gns2dns_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 | # IP address of 'uk.gnunet.org' | 12 | # IP address of 'uk.gnunet.org' |
5 | TEST_IP_ALT2="81.187.252.184" | 13 | TEST_IP_ALT2="81.187.252.184" |
diff --git a/src/gns/test_gns_ipv6_lookup.sh b/src/gns/test_gns_ipv6_lookup.sh index 21f7feb5b..8f1a3f109 100755 --- a/src/gns/test_gns_ipv6_lookup.sh +++ b/src/gns/test_gns_ipv6_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="dead::beef" | 13 | TEST_IP="dead::beef" |
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" |
diff --git a/src/gns/test_gns_mx_lookup.sh b/src/gns/test_gns_mx_lookup.sh index b4ec9efb4..9318d9428 100755 --- a/src/gns/test_gns_mx_lookup.sh +++ b/src/gns/test_gns_mx_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 -fr `gnunet-config -c test_gns_lookup.conf -s PATHS -o GNUNET_HOME -f` | 11 | rm -fr `gnunet-config -c test_gns_lookup.conf -s PATHS -o GNUNET_HOME -f` |
4 | which timeout &> /dev/null && DO_TIMEOUT="timeout 5" | 12 | which timeout &> /dev/null && DO_TIMEOUT="timeout 5" |
5 | 13 | ||
diff --git a/src/gns/test_gns_nick_shorten.sh b/src/gns/test_gns_nick_shorten.sh index 74a78c635..1664e8d5f 100755 --- a/src/gns/test_gns_nick_shorten.sh +++ b/src/gns/test_gns_nick_shorten.sh | |||
@@ -7,6 +7,13 @@ which timeout &> /dev/null && DO_TIMEOUT="timeout 30" | |||
7 | # zone "delegatedego": Alice's zone | 7 | # zone "delegatedego": Alice's zone |
8 | # zone "testego": Local zone with delegation to alice | 8 | # zone "testego": Local zone with delegation to alice |
9 | 9 | ||
10 | LOCATION=$(which gnunet-config) | ||
11 | if [ -z $LOCATION ] | ||
12 | then | ||
13 | echo "GNUnet command line tools cannot be found, check environmental variables PATH and GNUNET_PREFIX" | ||
14 | exit 1 | ||
15 | fi | ||
16 | |||
10 | # Deleting home directory from previous runs | 17 | # Deleting home directory from previous runs |
11 | rm -rf `gnunet-config -c test_gns_lookup.conf -s PATHS -o GNUNET_HOME -f` | 18 | rm -rf `gnunet-config -c test_gns_lookup.conf -s PATHS -o GNUNET_HOME -f` |
12 | TEST_IP="127.0.0.1" | 19 | TEST_IP="127.0.0.1" |
diff --git a/src/gns/test_gns_plus_lookup.sh b/src/gns/test_gns_plus_lookup.sh index 3ecd1ae1b..4ff23c3bc 100755 --- a/src/gns/test_gns_plus_lookup.sh +++ b/src/gns/test_gns_plus_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 | which timeout &> /dev/null && DO_TIMEOUT="timeout 5" | 11 | which timeout &> /dev/null && DO_TIMEOUT="timeout 5" |
4 | rm -rf `gnunet-config -c test_gns_lookup.conf -s PATHS -o GNUNET_HOME -f` | 12 | rm -rf `gnunet-config -c test_gns_lookup.conf -s PATHS -o GNUNET_HOME -f` |
5 | 13 | ||
diff --git a/src/gns/test_gns_quickupdate.sh b/src/gns/test_gns_quickupdate.sh index 84882a70b..309bc7355 100755 --- a/src/gns/test_gns_quickupdate.sh +++ b/src/gns/test_gns_quickupdate.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 5" | 12 | which timeout &> /dev/null && DO_TIMEOUT="timeout 5" |
5 | TEST_IP="127.0.0.1" | 13 | TEST_IP="127.0.0.1" |
diff --git a/src/gns/test_gns_rel_expiration.sh b/src/gns/test_gns_rel_expiration.sh index 9a4a35dbf..2db66c4c1 100755 --- a/src/gns/test_gns_rel_expiration.sh +++ b/src/gns/test_gns_rel_expiration.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 5" | 12 | which timeout &> /dev/null && DO_TIMEOUT="timeout 5" |
5 | TEST_IP="127.0.0.1" | 13 | TEST_IP="127.0.0.1" |
diff --git a/src/gns/test_gns_revocation.sh b/src/gns/test_gns_revocation.sh index 76eb708b5..a7287c3dd 100755 --- a/src/gns/test_gns_revocation.sh +++ b/src/gns/test_gns_revocation.sh | |||
@@ -1,6 +1,14 @@ | |||
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 | which timeout &> /dev/null && DO_TIMEOUT="timeout 5" | 3 | which timeout &> /dev/null && DO_TIMEOUT="timeout 5" |
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 test_gns_lookup.conf -s PATHS -o GNUNET_HOME -f` | 12 | rm -rf `gnunet-config -c test_gns_lookup.conf -s PATHS -o GNUNET_HOME -f` |
5 | 13 | ||
6 | TEST_IP="127.0.0.1" | 14 | TEST_IP="127.0.0.1" |
diff --git a/src/gns/test_gns_soa_lookup.sh b/src/gns/test_gns_soa_lookup.sh index 526093c71..272aa7442 100755 --- a/src/gns/test_gns_soa_lookup.sh +++ b/src/gns/test_gns_soa_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 | TEST_DOMAIN="homepage.gnu" | 12 | TEST_DOMAIN="homepage.gnu" |
5 | # some public DNS resolver we can use | 13 | # some public DNS resolver we can use |
diff --git a/src/gns/test_gns_txt_lookup.sh b/src/gns/test_gns_txt_lookup.sh index 52251af50..d527e28c7 100755 --- a/src/gns/test_gns_txt_lookup.sh +++ b/src/gns/test_gns_txt_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_TXT="GNS powered txt record data" | 13 | TEST_TXT="GNS powered txt record data" |
diff --git a/src/gns/test_gns_zkey_lookup.sh b/src/gns/test_gns_zkey_lookup.sh index 79f5908a2..36dec131e 100755 --- a/src/gns/test_gns_zkey_lookup.sh +++ b/src/gns/test_gns_zkey_lookup.sh | |||
@@ -1,6 +1,14 @@ | |||
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 | which timeout &> /dev/null && DO_TIMEOUT="timeout 5" | 3 | which timeout &> /dev/null && DO_TIMEOUT="timeout 5" |
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 test_gns_lookup.conf -s PATHS -o GNUNET_HOME -f` | 12 | rm -rf `gnunet-config -c test_gns_lookup.conf -s PATHS -o GNUNET_HOME -f` |
5 | 13 | ||
6 | TEST_IP="127.0.0.1" | 14 | TEST_IP="127.0.0.1" |
diff --git a/src/gns/test_gnunet_gns.sh b/src/gns/test_gnunet_gns.sh index 2c1559765..ccec73340 100755 --- a/src/gns/test_gnunet_gns.sh +++ b/src/gns/test_gnunet_gns.sh | |||
@@ -1,4 +1,12 @@ | |||
1 | #!/bin/bash | 1 | #!/bin/bash |
2 | |||
3 | LOCATION=$(which gnunet-config) | ||
4 | if [ -z $LOCATION ] | ||
5 | then | ||
6 | echo "GNUnet command line tools cannot be found, check environmental variables PATH and GNUNET_PREFIX" | ||
7 | exit 1 | ||
8 | fi | ||
9 | |||
2 | trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT | 10 | trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT |
3 | ME=`whoami` | 11 | ME=`whoami` |
4 | if [ "$ME" != "root" ] | 12 | if [ "$ME" != "root" ] |