diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-09-24 08:28:19 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-09-24 08:28:19 +0000 |
commit | 6c33a3bbe11a98b306b42854812d8af6662b892e (patch) | |
tree | 8882ce9a28d1217de7466bc3ebda0de28e47b5ff /src/gns/test_gns_lookup.sh | |
parent | 6817ec26a3d87926add681d37685214fc3370541 (diff) | |
download | gnunet-6c33a3bbe11a98b306b42854812d8af6662b892e.tar.gz gnunet-6c33a3bbe11a98b306b42854812d8af6662b892e.zip |
-keep reading from client to support multiple GNS requests in parallel
Diffstat (limited to 'src/gns/test_gns_lookup.sh')
-rw-r--r-- | src/gns/test_gns_lookup.sh | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/src/gns/test_gns_lookup.sh b/src/gns/test_gns_lookup.sh index 8c876df61..bfb59c50f 100644 --- a/src/gns/test_gns_lookup.sh +++ b/src/gns/test_gns_lookup.sh | |||
@@ -1,23 +1,19 @@ | |||
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 | 3 | rm -r `gnunet-config -c test_gns_lookup.conf -s PATHS -o SERVICEHOME` | |
4 | TEST_IP="127.0.0.1" | 4 | TEST_IP="127.0.0.1" |
5 | |||
6 | gnunet-arm -s -c test_gns_lookup.conf | 5 | gnunet-arm -s -c test_gns_lookup.conf |
7 | 6 | gnunet-identity -C testego -c test_gns_lookup.conf | |
8 | #gnunet-identity -C testego -c test_gns_lookup.conf | ||
9 | |||
10 | gnunet-namestore -p -z testego -a -n www -t A -V $TEST_IP -e never -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 |
11 | RES_IP=$(gnunet-gns --raw -z testego -u www.gnu -t A -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) |
12 | |||
13 | gnunet-namestore -z testego -d -n www -t A -V $TEST_IP -e never -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 |
14 | 10 | gnunet-identity -D testego -c test_gns_lookup.conf | |
15 | gnunet-arm -e -c test_gns_lookup.conf | 11 | gnunet-arm -e -c test_gns_lookup.conf |
16 | 12 | ||
17 | if [ "$RES_IP" == "$TEST_IP" ] | 13 | if [ "$RES_IP" == "$TEST_IP" ] |
18 | then | 14 | then |
19 | exit 0 | 15 | exit 0 |
20 | else | 16 | else |
17 | echo "Failed to resolve to proper IP, got $RES_IP." | ||
21 | exit 1 | 18 | exit 1 |
22 | fi | 19 | fi |
23 | |||