diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2013-09-30 09:16:25 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2013-09-30 09:16:25 +0000 |
commit | feebaa1b4e5236d837d7f9e55562426b70fadf5a (patch) | |
tree | bb75f9319c094769b9f7fb05be83d54c66e95ae8 /src/namestore/test_namestore_lookup.sh | |
parent | e8873abb7cd92b5b71785a0e5a24de68fae40b21 (diff) | |
download | gnunet-feebaa1b4e5236d837d7f9e55562426b70fadf5a.tar.gz gnunet-feebaa1b4e5236d837d7f9e55562426b70fadf5a.zip |
next test
Diffstat (limited to 'src/namestore/test_namestore_lookup.sh')
-rwxr-xr-x | src/namestore/test_namestore_lookup.sh | 8 |
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 | |||
40 | for LINE in $OUTPUT ; | 40 | for 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 |
49 | stop_peer | 51 | stop_peer |
50 | 52 | ||
51 | 53 | ||
52 | if [ $FOUND_DNS == true -a $FOUND_IP == true ] | 54 | if [ $FOUND_NAME == true -a $FOUND_IP == true ] |
53 | then | 55 | then |
54 | echo "PASS: Lookup name in namestore" | 56 | echo "PASS: Lookup name in namestore" |
55 | exit 0 | 57 | exit 0 |
56 | elif [ $FOUND_DNS == false ] | 58 | elif [ $FOUND_NAME == false ] |
57 | then | 59 | then |
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 |