aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-09-24 07:33:47 +0000
committerChristian Grothoff <christian@grothoff.org>2013-09-24 07:33:47 +0000
commitbf78aa6e0370f4fb6265b1e6c2bc4a03053f441e (patch)
tree766250e4b513b19ad5cd2b47b3ec8cdb1d08f142
parent035bb606cf3558af394002d9fdba12b5191aa275 (diff)
downloadgnunet-bf78aa6e0370f4fb6265b1e6c2bc4a03053f441e.tar.gz
gnunet-bf78aa6e0370f4fb6265b1e6c2bc4a03053f441e.zip
-trap SIGINT for clean shutdown
-rw-r--r--src/gns/test_gns_delegated_lookup.sh1
-rw-r--r--src/gns/test_gns_lookup.sh1
-rwxr-xr-xsrc/gns/test_gnunet_gns.sh6
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
2trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT
2 3
3TEST_IP="127.0.0.1" 4TEST_IP="127.0.0.1"
4DELEGATED_PKEY=$(gnunet-ecc -p egos/delegatedego) 5DELEGATED_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
2trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT
2 3
3TEST_IP="127.0.0.1" 4TEST_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 2trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT
3ME=`whoami` 3ME=`whoami`
4if [ "$ME" != "root" ] 4if [ "$ME" != "root" ]
5then 5then
@@ -9,12 +9,12 @@ fi
9export PATH=".:$PATH" 9export PATH=".:$PATH"
10gnunet-service-gns -c gns.conf & 10gnunet-service-gns -c gns.conf &
11sleep 1 11sleep 1
12LO=`nslookup alice.gnunet | grep Address | tail -n1` 12LO=`nslookup alice.gnu | grep Address | tail -n1`
13if [ "$LO" != "Address: 1.2.3.4" ] 13if [ "$LO" != "Address: 1.2.3.4" ]
14then 14then
15 echo "Fail: $LO" 15 echo "Fail: $LO"
16fi 16fi
17LO=`nslookup www.bob.gnunet | grep Address | tail -n1` 17LO=`nslookup www.bob.gnu | grep Address | tail -n1`
18if [ "$LO" != "Address: 4.5.6.7" ] 18if [ "$LO" != "Address: 4.5.6.7" ]
19then 19then
20 echo "Fail: $LO" 20 echo "Fail: $LO"