aboutsummaryrefslogtreecommitdiff
path: root/src/gns/test_gns_lookup.sh
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2013-11-21 08:56:48 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2013-11-21 08:56:48 +0000
commitcc860cd0446b963f8ca0b6866bf0042b85d6fe2e (patch)
tree1d124e17cdbe08ef2a9c5a49e446215c43e0f8be /src/gns/test_gns_lookup.sh
parent73ae6c62217f8442033e44fa8de9bdc2059a5423 (diff)
downloadgnunet-cc860cd0446b963f8ca0b6866bf0042b85d6fe2e.tar.gz
gnunet-cc860cd0446b963f8ca0b6866bf0042b85d6fe2e.zip
timeout is to short on slower systems (and when running with valgrind)
Diffstat (limited to 'src/gns/test_gns_lookup.sh')
-rwxr-xr-xsrc/gns/test_gns_lookup.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gns/test_gns_lookup.sh b/src/gns/test_gns_lookup.sh
index f90fb7364..6eb16aa52 100755
--- a/src/gns/test_gns_lookup.sh
+++ b/src/gns/test_gns_lookup.sh
@@ -1,7 +1,7 @@
1#!/bin/bash 1#!/bin/bash
2trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT 2trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT
3rm -r `gnunet-config -c test_gns_lookup.conf -s PATHS -o GNUNET_HOME -f` 3rm -r `gnunet-config -c test_gns_lookup.conf -s PATHS -o GNUNET_HOME -f`
4which timeout &> /dev/null && DO_TIMEOUT="timeout 5" 4which timeout &> /dev/null && DO_TIMEOUT="timeout 30"
5TEST_IP="127.0.0.1" 5TEST_IP="127.0.0.1"
6gnunet-arm -s -c test_gns_lookup.conf 6gnunet-arm -s -c test_gns_lookup.conf
7gnunet-identity -C testego -c test_gns_lookup.conf 7gnunet-identity -C testego -c test_gns_lookup.conf
@@ -13,7 +13,6 @@ gnunet-arm -e -c test_gns_lookup.conf
13 13
14if [ "$RES_IP" == "$TEST_IP" ] 14if [ "$RES_IP" == "$TEST_IP" ]
15then 15then
16 echo "PASS: Resolved correct IP address, got $RES_IP"
17 exit 0 16 exit 0
18else 17else
19 echo "FAIL: Failed to resolve to proper IP, got $RES_IP." 18 echo "FAIL: Failed to resolve to proper IP, got $RES_IP."