aboutsummaryrefslogtreecommitdiff
path: root/src/namestore/test_namestore_lookup.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/namestore/test_namestore_lookup.sh')
-rwxr-xr-xsrc/namestore/test_namestore_lookup.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/namestore/test_namestore_lookup.sh b/src/namestore/test_namestore_lookup.sh
index da4724ebf..21b3ce1ed 100755
--- a/src/namestore/test_namestore_lookup.sh
+++ b/src/namestore/test_namestore_lookup.sh
@@ -40,20 +40,22 @@ FOUND_NAME=false
40for LINE in $OUTPUT ; 40for LINE in $OUTPUT ;
41 do 41 do
42 if echo "$LINE" | grep -q "$TEST_RECORD_NAME_DNS"; then 42 if echo "$LINE" | grep -q "$TEST_RECORD_NAME_DNS"; then
43 FOUND_DNS=true; 43 FOUND_NAME=true;
44 #echo $FOUND_NAME
44 fi 45 fi
45 if echo "$LINE" | grep -q "$TEST_IP_PLUS"; then 46 if echo "$LINE" | grep -q "$TEST_IP_PLUS"; then
46 FOUND_IP=true; 47 FOUND_IP=true;
48 #echo $FOUND_IP
47 fi 49 fi
48 done 50 done
49stop_peer 51stop_peer
50 52
51 53
52if [ $FOUND_DNS == true -a $FOUND_IP == true ] 54if [ $FOUND_NAME == true -a $FOUND_IP == true ]
53then 55then
54 echo "PASS: Lookup name in namestore" 56 echo "PASS: Lookup name in namestore"
55 exit 0 57 exit 0
56elif [ $FOUND_DNS == false ] 58elif [ $FOUND_NAME == false ]
57then 59then
58 echo "FAIL: Lookup name in namestore: name not returned" 60 echo "FAIL: Lookup name in namestore: name not returned"
59 exit 1 61 exit 1