aboutsummaryrefslogtreecommitdiff
path: root/src/gns/test_gns_lookup.sh
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-09-24 08:28:19 +0000
committerChristian Grothoff <christian@grothoff.org>2013-09-24 08:28:19 +0000
commit6c33a3bbe11a98b306b42854812d8af6662b892e (patch)
tree8882ce9a28d1217de7466bc3ebda0de28e47b5ff /src/gns/test_gns_lookup.sh
parent6817ec26a3d87926add681d37685214fc3370541 (diff)
downloadgnunet-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.sh14
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
2trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT 2trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT
3 3rm -r `gnunet-config -c test_gns_lookup.conf -s PATHS -o SERVICEHOME`
4TEST_IP="127.0.0.1" 4TEST_IP="127.0.0.1"
5
6gnunet-arm -s -c test_gns_lookup.conf 5gnunet-arm -s -c test_gns_lookup.conf
7 6gnunet-identity -C testego -c test_gns_lookup.conf
8#gnunet-identity -C testego -c test_gns_lookup.conf
9
10gnunet-namestore -p -z testego -a -n www -t A -V $TEST_IP -e never -c test_gns_lookup.conf 7gnunet-namestore -p -z testego -a -n www -t A -V $TEST_IP -e never -c test_gns_lookup.conf
11RES_IP=$(gnunet-gns --raw -z testego -u www.gnu -t A -c test_gns_lookup.conf) 8RES_IP=$(timeout 5 gnunet-gns --raw -z testego -u www.gnu -t A -c test_gns_lookup.conf)
12
13gnunet-namestore -z testego -d -n www -t A -V $TEST_IP -e never -c test_gns_lookup.conf 9gnunet-namestore -z testego -d -n www -t A -V $TEST_IP -e never -c test_gns_lookup.conf
14 10gnunet-identity -D testego -c test_gns_lookup.conf
15gnunet-arm -e -c test_gns_lookup.conf 11gnunet-arm -e -c test_gns_lookup.conf
16 12
17if [ "$RES_IP" == "$TEST_IP" ] 13if [ "$RES_IP" == "$TEST_IP" ]
18then 14then
19 exit 0 15 exit 0
20else 16else
17 echo "Failed to resolve to proper IP, got $RES_IP."
21 exit 1 18 exit 1
22fi 19fi
23