diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-09-24 07:33:47 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-09-24 07:33:47 +0000 |
commit | bf78aa6e0370f4fb6265b1e6c2bc4a03053f441e (patch) | |
tree | 766250e4b513b19ad5cd2b47b3ec8cdb1d08f142 | |
parent | 035bb606cf3558af394002d9fdba12b5191aa275 (diff) | |
download | gnunet-bf78aa6e0370f4fb6265b1e6c2bc4a03053f441e.tar.gz gnunet-bf78aa6e0370f4fb6265b1e6c2bc4a03053f441e.zip |
-trap SIGINT for clean shutdown
-rw-r--r-- | src/gns/test_gns_delegated_lookup.sh | 1 | ||||
-rw-r--r-- | src/gns/test_gns_lookup.sh | 1 | ||||
-rwxr-xr-x | src/gns/test_gnunet_gns.sh | 6 |
3 files changed, 5 insertions, 3 deletions
diff --git a/src/gns/test_gns_delegated_lookup.sh b/src/gns/test_gns_delegated_lookup.sh index 92fdbe9d2..2e0f6c8e2 100644 --- a/src/gns/test_gns_delegated_lookup.sh +++ b/src/gns/test_gns_delegated_lookup.sh | |||
@@ -1,4 +1,5 @@ | |||
1 | #!/bin/bash | 1 | #!/bin/bash |
2 | trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT | ||
2 | 3 | ||
3 | TEST_IP="127.0.0.1" | 4 | TEST_IP="127.0.0.1" |
4 | DELEGATED_PKEY=$(gnunet-ecc -p egos/delegatedego) | 5 | DELEGATED_PKEY=$(gnunet-ecc -p egos/delegatedego) |
diff --git a/src/gns/test_gns_lookup.sh b/src/gns/test_gns_lookup.sh index b15c114fd..8c876df61 100644 --- a/src/gns/test_gns_lookup.sh +++ b/src/gns/test_gns_lookup.sh | |||
@@ -1,4 +1,5 @@ | |||
1 | #!/bin/bash | 1 | #!/bin/bash |
2 | trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT | ||
2 | 3 | ||
3 | TEST_IP="127.0.0.1" | 4 | TEST_IP="127.0.0.1" |
4 | 5 | ||
diff --git a/src/gns/test_gnunet_gns.sh b/src/gns/test_gnunet_gns.sh index cd680276d..2c1559765 100755 --- a/src/gns/test_gnunet_gns.sh +++ b/src/gns/test_gnunet_gns.sh | |||
@@ -1,5 +1,5 @@ | |||
1 | #!/bin/bash | 1 | #!/bin/bash |
2 | 2 | trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT | |
3 | ME=`whoami` | 3 | ME=`whoami` |
4 | if [ "$ME" != "root" ] | 4 | if [ "$ME" != "root" ] |
5 | then | 5 | then |
@@ -9,12 +9,12 @@ fi | |||
9 | export PATH=".:$PATH" | 9 | export PATH=".:$PATH" |
10 | gnunet-service-gns -c gns.conf & | 10 | gnunet-service-gns -c gns.conf & |
11 | sleep 1 | 11 | sleep 1 |
12 | LO=`nslookup alice.gnunet | grep Address | tail -n1` | 12 | LO=`nslookup alice.gnu | grep Address | tail -n1` |
13 | if [ "$LO" != "Address: 1.2.3.4" ] | 13 | if [ "$LO" != "Address: 1.2.3.4" ] |
14 | then | 14 | then |
15 | echo "Fail: $LO" | 15 | echo "Fail: $LO" |
16 | fi | 16 | fi |
17 | LO=`nslookup www.bob.gnunet | grep Address | tail -n1` | 17 | LO=`nslookup www.bob.gnu | grep Address | tail -n1` |
18 | if [ "$LO" != "Address: 4.5.6.7" ] | 18 | if [ "$LO" != "Address: 4.5.6.7" ] |
19 | then | 19 | then |
20 | echo "Fail: $LO" | 20 | echo "Fail: $LO" |