diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-09-25 17:44:08 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-09-25 17:44:08 +0000 |
commit | ba226793d64360acfc9e192ba3ed886d4cda5dcb (patch) | |
tree | a2f5d901553b9a18ac30cd975436c721dd143c1e /src/gns/test_gns_mx_lookup.sh | |
parent | d19a291abd38db2460b4190091c50c8f374ae0a2 (diff) | |
download | gnunet-ba226793d64360acfc9e192ba3ed886d4cda5dcb.tar.gz gnunet-ba226793d64360acfc9e192ba3ed886d4cda5dcb.zip |
-fix MX testcase to use well-formed MX record string
Diffstat (limited to 'src/gns/test_gns_mx_lookup.sh')
-rwxr-xr-x | src/gns/test_gns_mx_lookup.sh | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/gns/test_gns_mx_lookup.sh b/src/gns/test_gns_mx_lookup.sh index 545d21d00..79d4860c2 100755 --- a/src/gns/test_gns_mx_lookup.sh +++ b/src/gns/test_gns_mx_lookup.sh | |||
@@ -1,12 +1,14 @@ | |||
1 | #!/bin/bash | 1 | #!/bin/bash |
2 | trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT | 2 | trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT |
3 | rm -r `gnunet-config -c test_gns_lookup.conf -s PATHS -o SERVICEHOME` | 3 | rm -fr `gnunet-config -c test_gns_lookup.conf -s PATHS -o SERVICEHOME` |
4 | TEST_MX="mail.gnunet" | 4 | |
5 | TEST_MX="5,mail.gnu" | ||
5 | gnunet-arm -s -c test_gns_lookup.conf | 6 | gnunet-arm -s -c test_gns_lookup.conf |
6 | gnunet-identity -C testego -c test_gns_lookup.conf | 7 | gnunet-identity -C testego -c test_gns_lookup.conf |
7 | gnunet-namestore -p -z testego -a -n gnunet -t MX -V $TEST_MX -e never -c test_gns_lookup.conf | 8 | gnunet-namestore -p -z testego -a -n www -t MX -V "$TEST_MX" -e never -c test_gns_lookup.conf |
9 | |||
8 | RES_MX=$(timeout 5 gnunet-gns --raw -z testego -u www.gnu -t MX -c test_gns_lookup.conf) | 10 | RES_MX=$(timeout 5 gnunet-gns --raw -z testego -u www.gnu -t MX -c test_gns_lookup.conf) |
9 | gnunet-namestore -z testego -d -n www -t MX -V $TEST_MX -e never -c test_gns_lookup.conf | 11 | gnunet-namestore -z testego -d -n www -t MX -V "$TEST_MX" -e never -c test_gns_lookup.conf |
10 | gnunet-identity -D testego -c test_gns_lookup.conf | 12 | gnunet-identity -D testego -c test_gns_lookup.conf |
11 | gnunet-arm -e -c test_gns_lookup.conf | 13 | gnunet-arm -e -c test_gns_lookup.conf |
12 | 14 | ||
@@ -14,6 +16,6 @@ if [ "$RES_MX" == "$TEST_MX" ] | |||
14 | then | 16 | then |
15 | exit 0 | 17 | exit 0 |
16 | else | 18 | else |
17 | echo "Failed to resolve to proper IP, got $RES_MX." | 19 | echo "FAIL: did not get proper IP, got $RES_MX." |
18 | exit 1 | 20 | exit 1 |
19 | fi | 21 | fi |