diff options
Diffstat (limited to 'src/gns/test_gns_soa_lookup.sh')
-rwxr-xr-x | src/gns/test_gns_soa_lookup.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gns/test_gns_soa_lookup.sh b/src/gns/test_gns_soa_lookup.sh index a7606dbdc..513e557a4 100755 --- a/src/gns/test_gns_soa_lookup.sh +++ b/src/gns/test_gns_soa_lookup.sh | |||
@@ -11,15 +11,15 @@ gnunet-namestore -p -z testego -a -n $TEST_RECORD_NAME -t A -V $TEST_IP_GNS2DNS | |||
11 | gnunet-namestore -p -z testego -a -n $TEST_RECORD_NAME -t GNS2DNS -V $TEST_RECORD_GNS2DNS -e never -c test_gns_lookup.conf | 11 | gnunet-namestore -p -z testego -a -n $TEST_RECORD_NAME -t GNS2DNS -V $TEST_RECORD_GNS2DNS -e never -c test_gns_lookup.conf |
12 | RES_SOA=$(timeout 5 gnunet-gns --raw -z testego -u $TEST_DOMAIN -t SOA -c test_gns_lookup.conf) | 12 | RES_SOA=$(timeout 5 gnunet-gns --raw -z testego -u $TEST_DOMAIN -t SOA -c test_gns_lookup.conf) |
13 | gnunet-namestore -z testego -d -n $TEST_RECORD_NAME -t A -V $TEST_IP_GNS2DNS -e never -c test_gns_lookup.conf | 13 | gnunet-namestore -z testego -d -n $TEST_RECORD_NAME -t A -V $TEST_IP_GNS2DNS -e never -c test_gns_lookup.conf |
14 | gnunet-namestore -z testego -d -n $TEST_RECORD_NAME -t GNS2DNS -V $TEST_RECORD_GNS2DNS -e never -c test_gns_lookup.conf | 14 | gnunet-namestore -z testego -d -n $TEST_RECORD_NAME -t GNS2DNS -V $TEST_RECORD_GNS2DNS -e never -c test_gns_lookup.conf &> /dev/null |
15 | gnunet-identity -D testego -c test_gns_lookup.conf | 15 | gnunet-identity -D testego -c test_gns_lookup.conf |
16 | gnunet-arm -e -c test_gns_lookup.conf | 16 | gnunet-arm -e -c test_gns_lookup.conf |
17 | 17 | ||
18 | if [ "$RES_SOA" == " " ] | 18 | if [ "x$RES_SOA" != "x" ] |
19 | then | 19 | then |
20 | echo "PASS: Resolved $TEST_DOMAIN to $RES_SOA." | 20 | echo "PASS: Resolved SOA for $TEST_DOMAIN to $RES_SOA." |
21 | exit 0 | 21 | exit 0 |
22 | else | 22 | else |
23 | echo "Failed to resolve to proper SOA for $TEST_DOMAIN." | 23 | echo "Failed to resolve to proper SOA for $TEST_DOMAIN, got no result." |
24 | exit 1 | 24 | exit 1 |
25 | fi | 25 | fi |