aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2013-11-28 10:42:15 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2013-11-28 10:42:15 +0000
commit37566e067645bf881b170796251a14d8d20202b8 (patch)
treeb401760ca6925f06e939b1fd43c502558c16a8aa /src
parentca079d6ac476568a39c7c76bed85f9dc82f6672e (diff)
downloadgnunet-37566e067645bf881b170796251a14d8d20202b8.tar.gz
gnunet-37566e067645bf881b170796251a14d8d20202b8.zip
add cli check
Diffstat (limited to 'src')
-rwxr-xr-xsrc/gns/test_gns_cname_lookup.sh8
-rwxr-xr-xsrc/gns/test_gns_delegated_lookup.sh8
-rwxr-xr-xsrc/gns/test_gns_dht_lookup.sh7
-rwxr-xr-xsrc/gns/test_gns_gns2dns_lookup.sh8
-rwxr-xr-xsrc/gns/test_gns_ipv6_lookup.sh8
-rwxr-xr-xsrc/gns/test_gns_lookup.sh8
-rwxr-xr-xsrc/gns/test_gns_mx_lookup.sh8
-rwxr-xr-xsrc/gns/test_gns_nick_shorten.sh7
-rwxr-xr-xsrc/gns/test_gns_plus_lookup.sh8
-rwxr-xr-xsrc/gns/test_gns_quickupdate.sh8
-rwxr-xr-xsrc/gns/test_gns_rel_expiration.sh8
-rwxr-xr-xsrc/gns/test_gns_revocation.sh8
-rwxr-xr-xsrc/gns/test_gns_soa_lookup.sh8
-rwxr-xr-xsrc/gns/test_gns_txt_lookup.sh8
-rwxr-xr-xsrc/gns/test_gns_zkey_lookup.sh8
-rwxr-xr-xsrc/gns/test_gnunet_gns.sh8
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
2trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT 2trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT
3
4LOCATION=$(which gnunet-config)
5if [ -z $LOCATION ]
6then
7 echo "GNUnet command line tools cannot be found, check environmental variables PATH and GNUNET_PREFIX"
8 exit 1
9fi
10
3rm -rf `gnunet-config -c test_gns_lookup.conf -s PATHS -o GNUNET_HOME -f` 11rm -rf `gnunet-config -c test_gns_lookup.conf -s PATHS -o GNUNET_HOME -f`
4TEST_DOMAIN_PLUS="www.gnu" 12TEST_DOMAIN_PLUS="www.gnu"
5TEST_DOMAIN_DNS="www3.gnu" 13TEST_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
2trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT 2trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT
3which timeout &> /dev/null && DO_TIMEOUT="timeout 30" 3which timeout &> /dev/null && DO_TIMEOUT="timeout 30"
4
5LOCATION=$(which gnunet-config)
6if [ -z $LOCATION ]
7then
8 echo "GNUnet command line tools cannot be found, check environmental variables PATH and GNUNET_PREFIX"
9 exit 1
10fi
11
4rm -rf `gnunet-config -c test_gns_lookup.conf -s PATHS -o GNUNET_HOME -f` 12rm -rf `gnunet-config -c test_gns_lookup.conf -s PATHS -o GNUNET_HOME -f`
5 13
6TEST_IP="127.0.0.1" 14TEST_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 @@
2trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT 2trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT
3which timeout &> /dev/null && DO_TIMEOUT="timeout 30" 3which timeout &> /dev/null && DO_TIMEOUT="timeout 30"
4 4
5LOCATION=$(which gnunet-config)
6if [ -z $LOCATION ]
7then
8 echo "GNUnet command line tools cannot be found, check environmental variables PATH and GNUNET_PREFIX"
9 exit 1
10fi
11
5TEST_IP="127.0.0.1" 12TEST_IP="127.0.0.1"
6gnunet-arm -s -c test_gns_lookup.conf 13gnunet-arm -s -c test_gns_lookup.conf
7gnunet-identity -C delegatedego -c test_gns_lookup.conf 14gnunet-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
2trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT 2trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT
3
4LOCATION=$(which gnunet-config)
5if [ -z $LOCATION ]
6then
7 echo "GNUnet command line tools cannot be found, check environmental variables PATH and GNUNET_PREFIX"
8 exit 1
9fi
10
3rm -r `gnunet-config -c test_gns_lookup.conf -s PATHS -o GNUNET_HOME -f` 11rm -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'
5TEST_IP_ALT2="81.187.252.184" 13TEST_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
2trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT 2trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT
3
4LOCATION=$(which gnunet-config)
5if [ -z $LOCATION ]
6then
7 echo "GNUnet command line tools cannot be found, check environmental variables PATH and GNUNET_PREFIX"
8 exit 1
9fi
10
3rm -r `gnunet-config -c test_gns_lookup.conf -s PATHS -o GNUNET_HOME -f` 11rm -r `gnunet-config -c test_gns_lookup.conf -s PATHS -o GNUNET_HOME -f`
4which timeout &> /dev/null && DO_TIMEOUT="timeout 30" 12which timeout &> /dev/null && DO_TIMEOUT="timeout 30"
5TEST_IP="dead::beef" 13TEST_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
2trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT 2trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT
3
4LOCATION=$(which gnunet-config)
5if [ -z $LOCATION ]
6then
7 echo "GNUnet command line tools cannot be found, check environmental variables PATH and GNUNET_PREFIX"
8 exit 1
9fi
10
3rm -r `gnunet-config -c test_gns_lookup.conf -s PATHS -o GNUNET_HOME -f` 11rm -r `gnunet-config -c test_gns_lookup.conf -s PATHS -o GNUNET_HOME -f`
4which timeout &> /dev/null && DO_TIMEOUT="timeout 30" 12which timeout &> /dev/null && DO_TIMEOUT="timeout 30"
5TEST_IP="127.0.0.1" 13TEST_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
2trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT 2trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT
3
4LOCATION=$(which gnunet-config)
5if [ -z $LOCATION ]
6then
7 echo "GNUnet command line tools cannot be found, check environmental variables PATH and GNUNET_PREFIX"
8 exit 1
9fi
10
3rm -fr `gnunet-config -c test_gns_lookup.conf -s PATHS -o GNUNET_HOME -f` 11rm -fr `gnunet-config -c test_gns_lookup.conf -s PATHS -o GNUNET_HOME -f`
4which timeout &> /dev/null && DO_TIMEOUT="timeout 5" 12which 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
10LOCATION=$(which gnunet-config)
11if [ -z $LOCATION ]
12then
13 echo "GNUnet command line tools cannot be found, check environmental variables PATH and GNUNET_PREFIX"
14 exit 1
15fi
16
10# Deleting home directory from previous runs 17# Deleting home directory from previous runs
11rm -rf `gnunet-config -c test_gns_lookup.conf -s PATHS -o GNUNET_HOME -f` 18rm -rf `gnunet-config -c test_gns_lookup.conf -s PATHS -o GNUNET_HOME -f`
12TEST_IP="127.0.0.1" 19TEST_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
2trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT 2trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT
3
4LOCATION=$(which gnunet-config)
5if [ -z $LOCATION ]
6then
7 echo "GNUnet command line tools cannot be found, check environmental variables PATH and GNUNET_PREFIX"
8 exit 1
9fi
10
3which timeout &> /dev/null && DO_TIMEOUT="timeout 5" 11which timeout &> /dev/null && DO_TIMEOUT="timeout 5"
4rm -rf `gnunet-config -c test_gns_lookup.conf -s PATHS -o GNUNET_HOME -f` 12rm -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
2trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT 2trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT
3
4LOCATION=$(which gnunet-config)
5if [ -z $LOCATION ]
6then
7 echo "GNUnet command line tools cannot be found, check environmental variables PATH and GNUNET_PREFIX"
8 exit 1
9fi
10
3rm -r `gnunet-config -c test_gns_lookup.conf -s PATHS -o GNUNET_HOME -f` 11rm -r `gnunet-config -c test_gns_lookup.conf -s PATHS -o GNUNET_HOME -f`
4which timeout &> /dev/null && DO_TIMEOUT="timeout 5" 12which timeout &> /dev/null && DO_TIMEOUT="timeout 5"
5TEST_IP="127.0.0.1" 13TEST_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
2trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT 2trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT
3
4LOCATION=$(which gnunet-config)
5if [ -z $LOCATION ]
6then
7 echo "GNUnet command line tools cannot be found, check environmental variables PATH and GNUNET_PREFIX"
8 exit 1
9fi
10
3rm -r `gnunet-config -c test_gns_lookup.conf -s PATHS -o GNUNET_HOME -f` 11rm -r `gnunet-config -c test_gns_lookup.conf -s PATHS -o GNUNET_HOME -f`
4which timeout &> /dev/null && DO_TIMEOUT="timeout 5" 12which timeout &> /dev/null && DO_TIMEOUT="timeout 5"
5TEST_IP="127.0.0.1" 13TEST_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
2trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT 2trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT
3which timeout &> /dev/null && DO_TIMEOUT="timeout 5" 3which timeout &> /dev/null && DO_TIMEOUT="timeout 5"
4
5LOCATION=$(which gnunet-config)
6if [ -z $LOCATION ]
7then
8 echo "GNUnet command line tools cannot be found, check environmental variables PATH and GNUNET_PREFIX"
9 exit 1
10fi
11
4rm -rf `gnunet-config -c test_gns_lookup.conf -s PATHS -o GNUNET_HOME -f` 12rm -rf `gnunet-config -c test_gns_lookup.conf -s PATHS -o GNUNET_HOME -f`
5 13
6TEST_IP="127.0.0.1" 14TEST_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
2trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT 2trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT
3
4LOCATION=$(which gnunet-config)
5if [ -z $LOCATION ]
6then
7 echo "GNUnet command line tools cannot be found, check environmental variables PATH and GNUNET_PREFIX"
8 exit 1
9fi
10
3rm -r `gnunet-config -c test_gns_lookup.conf -s PATHS -o GNUNET_HOME -f` 11rm -r `gnunet-config -c test_gns_lookup.conf -s PATHS -o GNUNET_HOME -f`
4TEST_DOMAIN="homepage.gnu" 12TEST_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
2trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT 2trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT
3
4LOCATION=$(which gnunet-config)
5if [ -z $LOCATION ]
6then
7 echo "GNUnet command line tools cannot be found, check environmental variables PATH and GNUNET_PREFIX"
8 exit 1
9fi
10
3rm -r `gnunet-config -c test_gns_lookup.conf -s PATHS -o GNUNET_HOME -f` 11rm -r `gnunet-config -c test_gns_lookup.conf -s PATHS -o GNUNET_HOME -f`
4which timeout &> /dev/null && DO_TIMEOUT="timeout 30" 12which timeout &> /dev/null && DO_TIMEOUT="timeout 30"
5TEST_TXT="GNS powered txt record data" 13TEST_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
2trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT 2trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT
3which timeout &> /dev/null && DO_TIMEOUT="timeout 5" 3which timeout &> /dev/null && DO_TIMEOUT="timeout 5"
4
5LOCATION=$(which gnunet-config)
6if [ -z $LOCATION ]
7then
8 echo "GNUnet command line tools cannot be found, check environmental variables PATH and GNUNET_PREFIX"
9 exit 1
10fi
11
4rm -rf `gnunet-config -c test_gns_lookup.conf -s PATHS -o GNUNET_HOME -f` 12rm -rf `gnunet-config -c test_gns_lookup.conf -s PATHS -o GNUNET_HOME -f`
5 13
6TEST_IP="127.0.0.1" 14TEST_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
3LOCATION=$(which gnunet-config)
4if [ -z $LOCATION ]
5then
6 echo "GNUnet command line tools cannot be found, check environmental variables PATH and GNUNET_PREFIX"
7 exit 1
8fi
9
2trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT 10trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT
3ME=`whoami` 11ME=`whoami`
4if [ "$ME" != "root" ] 12if [ "$ME" != "root" ]