aboutsummaryrefslogtreecommitdiff
path: root/src/gns/test_gns_lookup.sh
diff options
context:
space:
mode:
authorMartin Schanzenbach <mschanzenbach@posteo.de>2013-09-10 12:17:18 +0000
committerMartin Schanzenbach <mschanzenbach@posteo.de>2013-09-10 12:17:18 +0000
commitabe521f93a227ef120cd75c7d649782951e8eca5 (patch)
treef46336a2e6fd8c008698296dbb602c99395bfff9 /src/gns/test_gns_lookup.sh
parentce650406062e72fee58019e0a01c823d9511b19e (diff)
downloadgnunet-abe521f93a227ef120cd75c7d649782951e8eca5.tar.gz
gnunet-abe521f93a227ef120cd75c7d649782951e8eca5.zip
-begin new test cases
Diffstat (limited to 'src/gns/test_gns_lookup.sh')
-rw-r--r--src/gns/test_gns_lookup.sh25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/gns/test_gns_lookup.sh b/src/gns/test_gns_lookup.sh
new file mode 100644
index 000000000..a2c531ebb
--- /dev/null
+++ b/src/gns/test_gns_lookup.sh
@@ -0,0 +1,25 @@
1#!/bin/bash
2
3TEST_IP="127.0.0.1"
4
5gnunet-arm -s -c test_gns_lookup.conf
6
7gnunet-identity -C testego -c test_gns_lookup.conf
8
9gnunet-namestore -z testego -a -n www -t A -V $TEST_IP -e never -c test_gns_lookup.conf
10
11RES_IP=$(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
14
15gnunet-arm -e -c test_gns_lookup.conf
16
17if [ "$RES_IP" == "$TEST_IP" ]
18then
19 echo "OK"
20 exit 0
21else
22 echo "Result $RES_IP NOTOK"
23 exit 1
24fi
25