aboutsummaryrefslogtreecommitdiff
path: root/src/gns/test_gns_delegated_lookup.sh
diff options
context:
space:
mode:
authorLRN <lrn1986@gmail.com>2013-12-08 21:33:34 +0000
committerLRN <lrn1986@gmail.com>2013-12-08 21:33:34 +0000
commit0339fb1c3eb6daeda7f1904815d8eb0101203567 (patch)
treeeac23c2ad58d7dcfa36a3bbd15c09f87d2d8ebdc /src/gns/test_gns_delegated_lookup.sh
parentef2d4d1604028a47f7cbd4f23681eba37dc2ac0c (diff)
downloadgnunet-0339fb1c3eb6daeda7f1904815d8eb0101203567.tar.gz
gnunet-0339fb1c3eb6daeda7f1904815d8eb0101203567.zip
Change gnunet-config detection in gns tests
Diffstat (limited to 'src/gns/test_gns_delegated_lookup.sh')
-rwxr-xr-xsrc/gns/test_gns_delegated_lookup.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gns/test_gns_delegated_lookup.sh b/src/gns/test_gns_delegated_lookup.sh
index c949ca7dc..7f22a70b5 100755
--- a/src/gns/test_gns_delegated_lookup.sh
+++ b/src/gns/test_gns_delegated_lookup.sh
@@ -5,8 +5,13 @@ which timeout &> /dev/null && DO_TIMEOUT="timeout 30"
5LOCATION=$(which gnunet-config) 5LOCATION=$(which gnunet-config)
6if [ -z $LOCATION ] 6if [ -z $LOCATION ]
7then 7then
8 LOCATION="gnunet-config"
9fi
10$LOCATION --version
11if test $? != 0
12then
8 echo "GNUnet command line tools cannot be found, check environmental variables PATH and GNUNET_PREFIX" 13 echo "GNUnet command line tools cannot be found, check environmental variables PATH and GNUNET_PREFIX"
9 exit 1 14 exit 77
10fi 15fi
11 16
12rm -rf `gnunet-config -c test_gns_lookup.conf -s PATHS -o GNUNET_HOME -f` 17rm -rf `gnunet-config -c test_gns_lookup.conf -s PATHS -o GNUNET_HOME -f`