diff options
Diffstat (limited to 'src/cli/gns/test_dns2gns.sh')
-rwxr-xr-x | src/cli/gns/test_dns2gns.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/cli/gns/test_dns2gns.sh b/src/cli/gns/test_dns2gns.sh index 295bcc766..a6024ca3c 100755 --- a/src/cli/gns/test_dns2gns.sh +++ b/src/cli/gns/test_dns2gns.sh | |||
@@ -20,7 +20,7 @@ MY_EGO="localego" | |||
20 | TEST_IP="127.0.0.1" | 20 | TEST_IP="127.0.0.1" |
21 | TEST_IPV6="dead::beef" | 21 | TEST_IPV6="dead::beef" |
22 | LABEL="fnord" | 22 | LABEL="fnord" |
23 | TEST_DOMAIN="gnunet.org" | 23 | TEST_DOMAIN="taler.net" |
24 | 24 | ||
25 | gnunet-arm -s -c test_dns2gns.conf | 25 | gnunet-arm -s -c test_dns2gns.conf |
26 | PKEY=`gnunet-identity -V -C $MY_EGO -c test_dns2gns.conf` | 26 | PKEY=`gnunet-identity -V -C $MY_EGO -c test_dns2gns.conf` |
@@ -34,14 +34,16 @@ if nslookup -port=12000 $LABEL.$PKEY localhost && nslookup -port=12000 $LABEL.$M | |||
34 | echo "PASS: GNS records can be resolved using dns2gns bridge" | 34 | echo "PASS: GNS records can be resolved using dns2gns bridge" |
35 | else | 35 | else |
36 | echo "FAIL: GNS records can't be resolved using dns2gns bridge" | 36 | echo "FAIL: GNS records can't be resolved using dns2gns bridge" |
37 | gnunet-arm -e -c test_dns2gns.conf | ||
37 | rm -rf `gnunet-config -c test_dns2gns.conf -f -s paths -o GNUNET_TEST_HOME` | 38 | rm -rf `gnunet-config -c test_dns2gns.conf -f -s paths -o GNUNET_TEST_HOME` |
38 | exit 1 | 39 | exit 1 |
39 | fi | 40 | fi |
40 | 41 | ||
41 | if nslookup -port=12000 gnunet.org localhost; then | 42 | if nslookup -port=12000 $TEST_DOMAIN localhost; then |
42 | echo "PASS: DNS records can be resolved using dns2gns bridge" | 43 | echo "PASS: DNS records can be resolved using dns2gns bridge" |
43 | else | 44 | else |
44 | echo "FAIL: DNS records can't be resolved using dns2gns bridge" | 45 | echo "FAIL: DNS records can't be resolved using dns2gns bridge" |
46 | gnunet-arm -e -c test_dns2gns.conf | ||
45 | rm -rf `gnunet-config -c test_dns2gns.conf -f -s paths -o GNUNET_TEST_HOME` | 47 | rm -rf `gnunet-config -c test_dns2gns.conf -f -s paths -o GNUNET_TEST_HOME` |
46 | exit 1 | 48 | exit 1 |
47 | fi | 49 | fi |