diff options
author | Martin Schanzenbach <mschanzenbach@posteo.de> | 2013-09-10 12:17:18 +0000 |
---|---|---|
committer | Martin Schanzenbach <mschanzenbach@posteo.de> | 2013-09-10 12:17:18 +0000 |
commit | abe521f93a227ef120cd75c7d649782951e8eca5 (patch) | |
tree | f46336a2e6fd8c008698296dbb602c99395bfff9 /src/gns/test_gns_lookup.sh | |
parent | ce650406062e72fee58019e0a01c823d9511b19e (diff) | |
download | gnunet-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.sh | 25 |
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 | |||
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 -z testego -a -n www -t A -V $TEST_IP -e never -c test_gns_lookup.conf | ||
10 | |||
11 | RES_IP=$(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 | ||
14 | |||
15 | gnunet-arm -e -c test_gns_lookup.conf | ||
16 | |||
17 | if [ "$RES_IP" == "$TEST_IP" ] | ||
18 | then | ||
19 | echo "OK" | ||
20 | exit 0 | ||
21 | else | ||
22 | echo "Result $RES_IP NOTOK" | ||
23 | exit 1 | ||
24 | fi | ||
25 | |||