aboutsummaryrefslogtreecommitdiff
path: root/src/gns/test_gns_txt_lookup.sh
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2013-11-28 10:42:15 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2013-11-28 10:42:15 +0000
commit37566e067645bf881b170796251a14d8d20202b8 (patch)
treeb401760ca6925f06e939b1fd43c502558c16a8aa /src/gns/test_gns_txt_lookup.sh
parentca079d6ac476568a39c7c76bed85f9dc82f6672e (diff)
downloadgnunet-37566e067645bf881b170796251a14d8d20202b8.tar.gz
gnunet-37566e067645bf881b170796251a14d8d20202b8.zip
add cli check
Diffstat (limited to 'src/gns/test_gns_txt_lookup.sh')
-rwxr-xr-xsrc/gns/test_gns_txt_lookup.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gns/test_gns_txt_lookup.sh b/src/gns/test_gns_txt_lookup.sh
index 52251af50..d527e28c7 100755
--- a/src/gns/test_gns_txt_lookup.sh
+++ b/src/gns/test_gns_txt_lookup.sh
@@ -1,5 +1,13 @@
1#!/bin/bash 1#!/bin/bash
2trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT 2trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT
3
4LOCATION=$(which gnunet-config)
5if [ -z $LOCATION ]
6then
7 echo "GNUnet command line tools cannot be found, check environmental variables PATH and GNUNET_PREFIX"
8 exit 1
9fi
10
3rm -r `gnunet-config -c test_gns_lookup.conf -s PATHS -o GNUNET_HOME -f` 11rm -r `gnunet-config -c test_gns_lookup.conf -s PATHS -o GNUNET_HOME -f`
4which timeout &> /dev/null && DO_TIMEOUT="timeout 30" 12which timeout &> /dev/null && DO_TIMEOUT="timeout 30"
5TEST_TXT="GNS powered txt record data" 13TEST_TXT="GNS powered txt record data"