b15c114fd77490e0424a5092fbd795611d57897f
[oweals/gnunet.git] / src / gns / test_gns_lookup.sh
1 #!/bin/bash
2
3 TEST_IP="127.0.0.1"
4
5 gnunet-arm -s -c test_gns_lookup.conf
6
7 #gnunet-identity -C testego -c test_gns_lookup.conf
8
9 gnunet-namestore -p -z testego -a -n www -t A -V $TEST_IP -e never -c test_gns_lookup.conf
10 RES_IP=$(gnunet-gns --raw -z testego -u www.gnu -t A -c test_gns_lookup.conf)
11
12 gnunet-namestore -z testego -d -n www -t A -V $TEST_IP -e never -c test_gns_lookup.conf
13
14 gnunet-arm -e -c test_gns_lookup.conf
15
16 if [ "$RES_IP" == "$TEST_IP" ]
17 then
18   exit 0
19 else
20   exit 1
21 fi
22