fix testcases, do not skip needlessly (typos)
authorChristian Grothoff <christian@grothoff.org>
Fri, 11 Jan 2019 21:20:31 +0000 (22:20 +0100)
committerChristian Grothoff <christian@grothoff.org>
Fri, 11 Jan 2019 21:22:40 +0000 (22:22 +0100)
src/gns/test_gns_gns2dns_cname_lookup.sh
src/gns/test_gns_gns2dns_lookup.sh

index 17196f8206b627cb30328ba224c9a3ecd9155ae4..c07905d834789576e839c965758315eec7610bd8 100755 (executable)
@@ -45,11 +45,10 @@ TEST_DOMAIN="www.${TEST_RECORD_NAME}.$MY_EGO"
 
 which timeout &> /dev/null && DO_TIMEOUT="timeout 15"
 
-
 gnunet-arm -s -c test_gns_lookup.conf
-
-echo $OUT | grep $TEST_IP - > /dev/null || { gnunet-arm -e -c test_gns_lookup.conf ; echo "IPv4 for gnunet.org not found, skipping test"; exit 77; }
-echo $OUT | grep $TEST6_IP - > /dev/null || { gnunet-arm -e -c test_gns_lookup.conf ; echo "IPv6 for gnunet.org not found, skipping test"; exit 77; }
+OUT=`$DO_TIMEOUT gnunet-resolver -c test_gns_lookup.conf gnunet.org`
+echo $OUT | grep $TEST_IP - > /dev/null || { gnunet-arm -e -c test_gns_lookup.conf ; echo "IPv4 for gnunet.org not found ($OUT), skipping test"; exit 77; }
+echo $OUT | grep $TEST_IP6 - > /dev/null || { gnunet-arm -e -c test_gns_lookup.conf ; echo "IPv6 for gnunet.org not found ($OUT), skipping test"; exit 77; }
 
 
 gnunet-identity -C $MY_EGO -c test_gns_lookup.conf
index 431f01086249cc6e86be2a9b824d2140621cf6fc..24fb36b9d4fcd0bd7a95e3371df3da6d42b24190 100755 (executable)
@@ -50,8 +50,8 @@ which timeout &> /dev/null && DO_TIMEOUT="timeout 15"
 gnunet-arm -s -c test_gns_lookup.conf
 
 OUT=`$DO_TIMEOUT gnunet-resolver -c test_gns_lookup.conf gnunet.org`
-echo $OUT | grep $TEST_IP - > /dev/null || { gnunet-arm -e -c test_gns_lookup.conf ; echo "IPv4 for gnunet.org not found, skipping test"; exit 77; }
-echo $OUT | grep $TEST6_IP - > /dev/null || { gnunet-arm -e -c test_gns_lookup.conf ; echo "IPv6 for gnunet.org not found, skipping test"; exit 77; }
+echo $OUT | grep $TEST_IP - > /dev/null || { gnunet-arm -e -c test_gns_lookup.conf ; echo "IPv4 for gnunet.org not found ($OUT), skipping test"; exit 77; }
+echo $OUT | grep $TEST_IP6 - > /dev/null || { gnunet-arm -e -c test_gns_lookup.conf ; echo "IPv6 for gnunet.org not found ($OUT), skipping test"; exit 77; }