diff options
Diffstat (limited to 'src/gns/test_gns_lookup.sh')
-rwxr-xr-x | src/gns/test_gns_lookup.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gns/test_gns_lookup.sh b/src/gns/test_gns_lookup.sh index bfb59c50f..499109fc5 100755 --- a/src/gns/test_gns_lookup.sh +++ b/src/gns/test_gns_lookup.sh | |||
@@ -1,11 +1,12 @@ | |||
1 | #!/bin/bash | 1 | #!/bin/bash |
2 | trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT | 2 | trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT |
3 | rm -r `gnunet-config -c test_gns_lookup.conf -s PATHS -o SERVICEHOME` | 3 | rm -r `gnunet-config -c test_gns_lookup.conf -s PATHS -o SERVICEHOME` |
4 | which timeout &> /dev/null && DO_TIMEOUT="timeout 5" | ||
4 | TEST_IP="127.0.0.1" | 5 | TEST_IP="127.0.0.1" |
5 | gnunet-arm -s -c test_gns_lookup.conf | 6 | gnunet-arm -s -c test_gns_lookup.conf |
6 | gnunet-identity -C testego -c test_gns_lookup.conf | 7 | gnunet-identity -C testego -c test_gns_lookup.conf |
7 | gnunet-namestore -p -z testego -a -n www -t A -V $TEST_IP -e never -c test_gns_lookup.conf | 8 | gnunet-namestore -p -z testego -a -n www -t A -V $TEST_IP -e never -c test_gns_lookup.conf |
8 | RES_IP=$(timeout 5 gnunet-gns --raw -z testego -u www.gnu -t A -c test_gns_lookup.conf) | 9 | RES_IP=`$DO_TIMEOUT gnunet-gns --raw -z testego -u www.gnu -t A -c test_gns_lookup.conf` |
9 | gnunet-namestore -z testego -d -n www -t A -V $TEST_IP -e never -c test_gns_lookup.conf | 10 | gnunet-namestore -z testego -d -n www -t A -V $TEST_IP -e never -c test_gns_lookup.conf |
10 | gnunet-identity -D testego -c test_gns_lookup.conf | 11 | gnunet-identity -D testego -c test_gns_lookup.conf |
11 | gnunet-arm -e -c test_gns_lookup.conf | 12 | gnunet-arm -e -c test_gns_lookup.conf |