diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-12-20 10:01:59 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-12-20 10:01:59 +0000 |
commit | 2a0a7698bf8a9eb1f3892f5ec347a1158bd58a4d (patch) | |
tree | 3a95084120d628bd03b19c048c53f053b49bce53 /src/gns/test_gns_soa_lookup.sh | |
parent | b7aed3343c3e9f9179e7c49e73c21f2688fd7aa8 (diff) | |
download | gnunet-2a0a7698bf8a9eb1f3892f5ec347a1158bd58a4d.tar.gz gnunet-2a0a7698bf8a9eb1f3892f5ec347a1158bd58a4d.zip |
-check for 'timeout'
Diffstat (limited to 'src/gns/test_gns_soa_lookup.sh')
-rwxr-xr-x | src/gns/test_gns_soa_lookup.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gns/test_gns_soa_lookup.sh b/src/gns/test_gns_soa_lookup.sh index 6983cccba..8a2a5f8fa 100755 --- a/src/gns/test_gns_soa_lookup.sh +++ b/src/gns/test_gns_soa_lookup.sh | |||
@@ -13,6 +13,8 @@ then | |||
13 | exit 77 | 13 | exit 77 |
14 | fi | 14 | fi |
15 | 15 | ||
16 | which timeout &> /dev/null && DO_TIMEOUT="timeout 5" | ||
17 | |||
16 | rm -rf /tmp/test-gnunet-gns-peer-1/ | 18 | rm -rf /tmp/test-gnunet-gns-peer-1/ |
17 | TEST_DOMAIN="homepage.gnu" | 19 | TEST_DOMAIN="homepage.gnu" |
18 | # some public DNS resolver we can use | 20 | # some public DNS resolver we can use |
@@ -29,7 +31,7 @@ fi | |||
29 | gnunet-arm -s -c test_gns_lookup.conf | 31 | gnunet-arm -s -c test_gns_lookup.conf |
30 | gnunet-identity -C testego -c test_gns_lookup.conf | 32 | gnunet-identity -C testego -c test_gns_lookup.conf |
31 | gnunet-namestore -p -z testego -a -n $TEST_RECORD_NAME -t GNS2DNS -V ${TEST_RECORD_GNS2DNS}@${TEST_IP_GNS2DNS} -e never -c test_gns_lookup.conf | 33 | gnunet-namestore -p -z testego -a -n $TEST_RECORD_NAME -t GNS2DNS -V ${TEST_RECORD_GNS2DNS}@${TEST_IP_GNS2DNS} -e never -c test_gns_lookup.conf |
32 | RES_SOA=$(timeout 5 gnunet-gns --raw -z testego -u $TEST_DOMAIN -t SOA -c test_gns_lookup.conf) | 34 | RES_SOA=`$DO_TIMEOUT gnunet-gns --raw -z testego -u $TEST_DOMAIN -t SOA -c test_gns_lookup.conf` |
33 | gnunet-namestore -z testego -d -n $TEST_RECORD_NAME -t GNS2DNS -V ${TEST_RECORD_GNS2DNS}@${TEST_IP_GNS2DNS} -e never -c test_gns_lookup.conf &> /dev/null | 35 | gnunet-namestore -z testego -d -n $TEST_RECORD_NAME -t GNS2DNS -V ${TEST_RECORD_GNS2DNS}@${TEST_IP_GNS2DNS} -e never -c test_gns_lookup.conf &> /dev/null |
34 | gnunet-identity -D testego -c test_gns_lookup.conf | 36 | gnunet-identity -D testego -c test_gns_lookup.conf |
35 | gnunet-arm -e -c test_gns_lookup.conf | 37 | gnunet-arm -e -c test_gns_lookup.conf |