aboutsummaryrefslogtreecommitdiff
path: root/src/cli/gns/test_dns2gns.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/cli/gns/test_dns2gns.sh')
-rwxr-xr-xsrc/cli/gns/test_dns2gns.sh6
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"
20TEST_IP="127.0.0.1" 20TEST_IP="127.0.0.1"
21TEST_IPV6="dead::beef" 21TEST_IPV6="dead::beef"
22LABEL="fnord" 22LABEL="fnord"
23TEST_DOMAIN="gnunet.org" 23TEST_DOMAIN="taler.net"
24 24
25gnunet-arm -s -c test_dns2gns.conf 25gnunet-arm -s -c test_dns2gns.conf
26PKEY=`gnunet-identity -V -C $MY_EGO -c test_dns2gns.conf` 26PKEY=`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"
35else 35else
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
39fi 40fi
40 41
41if nslookup -port=12000 gnunet.org localhost; then 42if 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"
43else 44else
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
47fi 49fi