aboutsummaryrefslogtreecommitdiff
path: root/src/gns/test_gns_mx_lookup.sh
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-09-25 17:44:08 +0000
committerChristian Grothoff <christian@grothoff.org>2013-09-25 17:44:08 +0000
commitba226793d64360acfc9e192ba3ed886d4cda5dcb (patch)
treea2f5d901553b9a18ac30cd975436c721dd143c1e /src/gns/test_gns_mx_lookup.sh
parentd19a291abd38db2460b4190091c50c8f374ae0a2 (diff)
downloadgnunet-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-xsrc/gns/test_gns_mx_lookup.sh12
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
2trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT 2trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT
3rm -r `gnunet-config -c test_gns_lookup.conf -s PATHS -o SERVICEHOME` 3rm -fr `gnunet-config -c test_gns_lookup.conf -s PATHS -o SERVICEHOME`
4TEST_MX="mail.gnunet" 4
5TEST_MX="5,mail.gnu"
5gnunet-arm -s -c test_gns_lookup.conf 6gnunet-arm -s -c test_gns_lookup.conf
6gnunet-identity -C testego -c test_gns_lookup.conf 7gnunet-identity -C testego -c test_gns_lookup.conf
7gnunet-namestore -p -z testego -a -n gnunet -t MX -V $TEST_MX -e never -c test_gns_lookup.conf 8gnunet-namestore -p -z testego -a -n www -t MX -V "$TEST_MX" -e never -c test_gns_lookup.conf
9
8RES_MX=$(timeout 5 gnunet-gns --raw -z testego -u www.gnu -t MX -c test_gns_lookup.conf) 10RES_MX=$(timeout 5 gnunet-gns --raw -z testego -u www.gnu -t MX -c test_gns_lookup.conf)
9gnunet-namestore -z testego -d -n www -t MX -V $TEST_MX -e never -c test_gns_lookup.conf 11gnunet-namestore -z testego -d -n www -t MX -V "$TEST_MX" -e never -c test_gns_lookup.conf
10gnunet-identity -D testego -c test_gns_lookup.conf 12gnunet-identity -D testego -c test_gns_lookup.conf
11gnunet-arm -e -c test_gns_lookup.conf 13gnunet-arm -e -c test_gns_lookup.conf
12 14
@@ -14,6 +16,6 @@ if [ "$RES_MX" == "$TEST_MX" ]
14then 16then
15 exit 0 17 exit 0
16else 18else
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
19fi 21fi