projects
/
oweals
/
gnunet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'credentials' of git+ssh://gnunet.org/gnunet into credentials
[oweals/gnunet.git]
/
src
/
gns
/
test_gnunet_gns.sh
diff --git
a/src/gns/test_gnunet_gns.sh
b/src/gns/test_gnunet_gns.sh
index ccec73340de9d5588dc524caceff2cbf700866e6..749d80b84467a5d57e74ff888ab4cc00a7243cd0 100755
(executable)
--- a/
src/gns/test_gnunet_gns.sh
+++ b/
src/gns/test_gnunet_gns.sh
@@
-2,9
+2,14
@@
LOCATION=$(which gnunet-config)
if [ -z $LOCATION ]
LOCATION=$(which gnunet-config)
if [ -z $LOCATION ]
+then
+ LOCATION="gnunet-config"
+fi
+$LOCATION --version
+if test $? != 0
then
echo "GNUnet command line tools cannot be found, check environmental variables PATH and GNUNET_PREFIX"
then
echo "GNUnet command line tools cannot be found, check environmental variables PATH and GNUNET_PREFIX"
- exit
1
+ exit
77
fi
trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT
fi
trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT
@@
-12,7
+17,7
@@
ME=`whoami`
if [ "$ME" != "root" ]
then
echo "This test only works if run as root. Skipping."
if [ "$ME" != "root" ]
then
echo "This test only works if run as root. Skipping."
- exit
0
+ exit
77
fi
export PATH=".:$PATH"
gnunet-service-gns -c gns.conf &
fi
export PATH=".:$PATH"
gnunet-service-gns -c gns.conf &