diff options
author | Martin Schanzenbach <mschanzenbach@posteo.de> | 2013-10-20 11:42:18 +0000 |
---|---|---|
committer | Martin Schanzenbach <mschanzenbach@posteo.de> | 2013-10-20 11:42:18 +0000 |
commit | d50cee784c332b5d950344f825fc9d1b3b78dbc0 (patch) | |
tree | 62ff2431a20afc14c29e6d80d0f6845dd2e594b1 /src/gns/test_gns_lookup.sh | |
parent | d40ea4d6bebc9e35929c7b90baa91fbfb0d60eef (diff) | |
download | gnunet-d50cee784c332b5d950344f825fc9d1b3b78dbc0.tar.gz gnunet-d50cee784c332b5d950344f825fc9d1b3b78dbc0.zip |
-ignore
Diffstat (limited to 'src/gns/test_gns_lookup.sh')
-rwxr-xr-x | src/gns/test_gns_lookup.sh | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/gns/test_gns_lookup.sh b/src/gns/test_gns_lookup.sh index 85cc1f511..f90fb7364 100755 --- a/src/gns/test_gns_lookup.sh +++ b/src/gns/test_gns_lookup.sh | |||
@@ -3,26 +3,14 @@ trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT | |||
3 | rm -r `gnunet-config -c test_gns_lookup.conf -s PATHS -o GNUNET_HOME -f` | 3 | rm -r `gnunet-config -c test_gns_lookup.conf -s PATHS -o GNUNET_HOME -f` |
4 | which timeout &> /dev/null && DO_TIMEOUT="timeout 5" | 4 | which timeout &> /dev/null && DO_TIMEOUT="timeout 5" |
5 | TEST_IP="127.0.0.1" | 5 | TEST_IP="127.0.0.1" |
6 | TEST_IP6="dead::beef" | ||
7 | gnunet-arm -s -c test_gns_lookup.conf | 6 | gnunet-arm -s -c test_gns_lookup.conf |
8 | gnunet-identity -C testego -c test_gns_lookup.conf | 7 | gnunet-identity -C testego -c test_gns_lookup.conf |
9 | gnunet-namestore -p -z testego -a -n www -t A -V $TEST_IP -e never -c test_gns_lookup.conf | 8 | gnunet-namestore -p -z testego -a -n www -t A -V $TEST_IP -e never -c test_gns_lookup.conf |
10 | gnunet-namestore -p -z testego -a -n www -t AAAA -V $TEST_IP6 -e never -c test_gns_lookup.conf | ||
11 | RES_IP=`$DO_TIMEOUT gnunet-gns --raw -z testego -u www.gnu -t A -c test_gns_lookup.conf` | 9 | RES_IP=`$DO_TIMEOUT gnunet-gns --raw -z testego -u www.gnu -t A -c test_gns_lookup.conf` |
12 | RES_IP6=`$DO_TIMEOUT gnunet-gns --raw -z testego -u www.gnu -t AAAA -c test_gns_lookup.conf` | ||
13 | gnunet-namestore -z testego -d -n www -t A -V $TEST_IP -e never -c test_gns_lookup.conf | 10 | gnunet-namestore -z testego -d -n www -t A -V $TEST_IP -e never -c test_gns_lookup.conf |
14 | gnunet-namestore -z testego -d -n www -t AAAA -V $TEST_IP6 -e never -c test_gns_lookup.conf | ||
15 | gnunet-identity -D testego -c test_gns_lookup.conf | 11 | gnunet-identity -D testego -c test_gns_lookup.conf |
16 | gnunet-arm -e -c test_gns_lookup.conf | 12 | gnunet-arm -e -c test_gns_lookup.conf |
17 | 13 | ||
18 | if [ "$RES_IP6" == "$TEST_IP6" ] | ||
19 | then | ||
20 | echo "PASS: Resolved correct IPv6 address, got $RES_IP6" | ||
21 | else | ||
22 | echo "FAIL: Failed to resolve to proper IP, got $RES_IP6." | ||
23 | exit 1 | ||
24 | fi | ||
25 | |||
26 | if [ "$RES_IP" == "$TEST_IP" ] | 14 | if [ "$RES_IP" == "$TEST_IP" ] |
27 | then | 15 | then |
28 | echo "PASS: Resolved correct IP address, got $RES_IP" | 16 | echo "PASS: Resolved correct IP address, got $RES_IP" |