diff options
Diffstat (limited to 'src/gns/test_gns_lookup.sh')
-rw-r--r-- | src/gns/test_gns_lookup.sh | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/gns/test_gns_lookup.sh b/src/gns/test_gns_lookup.sh index a2c531ebb..b15c114fd 100644 --- a/src/gns/test_gns_lookup.sh +++ b/src/gns/test_gns_lookup.sh | |||
@@ -4,10 +4,9 @@ TEST_IP="127.0.0.1" | |||
4 | 4 | ||
5 | gnunet-arm -s -c test_gns_lookup.conf | 5 | gnunet-arm -s -c test_gns_lookup.conf |
6 | 6 | ||
7 | gnunet-identity -C testego -c test_gns_lookup.conf | 7 | #gnunet-identity -C testego -c test_gns_lookup.conf |
8 | |||
9 | gnunet-namestore -z testego -a -n www -t A -V $TEST_IP -e never -c test_gns_lookup.conf | ||
10 | 8 | ||
9 | 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) | 10 | RES_IP=$(gnunet-gns --raw -z testego -u www.gnu -t A -c test_gns_lookup.conf) |
12 | 11 | ||
13 | gnunet-namestore -z testego -d -n www -t A -V $TEST_IP -e never -c test_gns_lookup.conf | 12 | gnunet-namestore -z testego -d -n www -t A -V $TEST_IP -e never -c test_gns_lookup.conf |
@@ -16,10 +15,8 @@ gnunet-arm -e -c test_gns_lookup.conf | |||
16 | 15 | ||
17 | if [ "$RES_IP" == "$TEST_IP" ] | 16 | if [ "$RES_IP" == "$TEST_IP" ] |
18 | then | 17 | then |
19 | echo "OK" | ||
20 | exit 0 | 18 | exit 0 |
21 | else | 19 | else |
22 | echo "Result $RES_IP NOTOK" | ||
23 | exit 1 | 20 | exit 1 |
24 | fi | 21 | fi |
25 | 22 | ||