aboutsummaryrefslogtreecommitdiff
path: root/src/gns/test_gns_rel_expiration.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/gns/test_gns_rel_expiration.sh')
-rwxr-xr-xsrc/gns/test_gns_rel_expiration.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gns/test_gns_rel_expiration.sh b/src/gns/test_gns_rel_expiration.sh
index c7c66bc27..993c2131e 100755
--- a/src/gns/test_gns_rel_expiration.sh
+++ b/src/gns/test_gns_rel_expiration.sh
@@ -1,4 +1,4 @@
1#!/bin/bash 1#!/bin/sh
2# This file is in the public domain. 2# This file is in the public domain.
3trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT 3trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT
4 4
@@ -25,7 +25,7 @@ MY_EGO="myego"
25OTHER_EGO="delegatedego" 25OTHER_EGO="delegatedego"
26 26
27rm -rf `gnunet-config -c test_gns_lookup.conf -f -s paths -o GNUNET_TEST_HOME` 27rm -rf `gnunet-config -c test_gns_lookup.conf -f -s paths -o GNUNET_TEST_HOME`
28which timeout &> /dev/null && DO_TIMEOUT="timeout 5" 28which timeout > /dev/null 2>&1 && DO_TIMEOUT="timeout 5"
29TEST_IP="127.0.0.1" 29TEST_IP="127.0.0.1"
30gnunet-arm -s -c test_gns_lookup.conf 30gnunet-arm -s -c test_gns_lookup.conf
31gnunet-identity -C $MY_EGO -c test_gns_lookup.conf 31gnunet-identity -C $MY_EGO -c test_gns_lookup.conf
@@ -48,13 +48,13 @@ gnunet-identity -D $OTHER_EGO -c test_gns_lookup.conf
48gnunet-arm -e -c test_gns_lookup.conf 48gnunet-arm -e -c test_gns_lookup.conf
49rm -rf `gnunet-config -c test_gns_lookup.conf -f -s paths -o GNUNET_TEST_HOME` 49rm -rf `gnunet-config -c test_gns_lookup.conf -f -s paths -o GNUNET_TEST_HOME`
50 50
51if [ "$RES_IP_EXP" == "$TEST_IP" ] 51if [ "$RES_IP_EXP" = "$TEST_IP" ]
52then 52then
53 echo "Failed to properly expire IP, got $RES_IP_EXP." 53 echo "Failed to properly expire IP, got $RES_IP_EXP."
54 exit 1 54 exit 1
55fi 55fi
56 56
57if [ "$RES_IP" == "$TEST_IP" ] 57if [ "$RES_IP" = "$TEST_IP" ]
58then 58then
59 exit 0 59 exit 0
60else 60else