gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnunet] branch master updated: change cmp to be case-insen


From: gnunet
Subject: [GNUnet-SVN] [gnunet] branch master updated: change cmp to be case-insensitive (to get tests to pass)
Date: Sat, 03 Nov 2018 22:11:44 +0100

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository gnunet.

The following commit(s) were added to refs/heads/master by this push:
     new 31cc8a750 change cmp to be case-insensitive (to get tests to pass)
31cc8a750 is described below

commit 31cc8a750f8df10f0a69a8ba9db08a15efa2f415
Author: Christian Grothoff <address@hidden>
AuthorDate: Sat Nov 3 22:11:42 2018 +0100

    change cmp to be case-insensitive (to get tests to pass)
---
 src/gns/test_gns_cname_lookup.sh | 3 +++
 src/gns/test_gns_mx_lookup.sh    | 4 ++++
 2 files changed, 7 insertions(+)

diff --git a/src/gns/test_gns_cname_lookup.sh b/src/gns/test_gns_cname_lookup.sh
index f6b7a842d..de575c561 100755
--- a/src/gns/test_gns_cname_lookup.sh
+++ b/src/gns/test_gns_cname_lookup.sh
@@ -54,6 +54,9 @@ gnunet-identity -D $MY_EGO -c test_gns_lookup.conf
 gnunet-arm -e -c test_gns_lookup.conf
 rm -rf `gnunet-config -c test_gns_lookup.conf -f -s paths -o GNUNET_TEST_HOME`
 
+# make cmp case-insensitive by converting to lower case first
+RES_CNAME_RAW=`echo $RES_CNAME_RAW | tr [A-Z] [a-z]`
+TESTEGOZONE=`echo $TESTEGOZONE | tr [A-Z] [a-z]`
 if [ "$RES_CNAME_RAW" == "server.$TESTEGOZONE" ]
 then
   echo "PASS: CNAME resolution from GNS"
diff --git a/src/gns/test_gns_mx_lookup.sh b/src/gns/test_gns_mx_lookup.sh
index 3a360494b..79ac37b0a 100755
--- a/src/gns/test_gns_mx_lookup.sh
+++ b/src/gns/test_gns_mx_lookup.sh
@@ -31,6 +31,10 @@ gnunet-identity -D $MY_EGO -c test_gns_lookup.conf
 gnunet-arm -e -c test_gns_lookup.conf
 rm -rf `gnunet-config -c test_gns_lookup.conf -f -s paths -o GNUNET_TEST_HOME`
 
+# make cmp case-insensitive by converting to lower case first
+RES_MX=`echo $RES_MX | tr [A-Z] [a-z]`
+WANT_MX=`echo $WANT_MX | tr [A-Z] [a-z]`
+
 if [ "$RES_MX" == "$WANT_MX" ]
 then
   exit 0

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]