aboutsummaryrefslogtreecommitdiff
path: root/src/namestore/test_namestore_lookup.sh
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2013-09-30 09:16:25 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2013-09-30 09:16:25 +0000
commitfeebaa1b4e5236d837d7f9e55562426b70fadf5a (patch)
treebb75f9319c094769b9f7fb05be83d54c66e95ae8 /src/namestore/test_namestore_lookup.sh
parente8873abb7cd92b5b71785a0e5a24de68fae40b21 (diff)
next test
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 da4724ebf6..21b3ce1ed2 100755
--- a/src/namestore/test_namestore_lookup.sh
+++ b/src/namestore/test_namestore_lookup.sh
@@ -40,20 +40,22 @@ FOUND_NAME=false
for LINE in $OUTPUT ;
do
if echo "$LINE" | grep -q "$TEST_RECORD_NAME_DNS"; then
- FOUND_DNS=true;
+ FOUND_NAME=true;
+ #echo $FOUND_NAME
fi
if echo "$LINE" | grep -q "$TEST_IP_PLUS"; then
FOUND_IP=true;
+ #echo $FOUND_IP
fi
done
stop_peer
-if [ $FOUND_DNS == true -a $FOUND_IP == true ]
+if [ $FOUND_NAME == true -a $FOUND_IP == true ]
then
echo "PASS: Lookup name in namestore"
exit 0
-elif [ $FOUND_DNS == false ]
+elif [ $FOUND_NAME == false ]
then
echo "FAIL: Lookup name in namestore: name not returned"
exit 1