2 # This file is in the public domain.
3 # test -z being correct was a false assumption here.
4 # I have no executable 'fooble', but this will
6 # if test -z "`which fooble`"; then echo 1; fi
7 # The command builtin might not work with busybox's ash
8 # but this works for now.
11 command -v "$1" >/dev/null 2>&1
14 LOCATION=`existence gnunet-config`
15 if test -z $LOCATION; then
16 LOCATION="gnunet-config"
21 echo "GNUnet command line tools cannot be found, check environmental variables PATH and GNUNET_PREFIX"
25 trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT
27 if [ "$ME" != "root" ]
29 echo "This test only works if run as root. Skipping."
33 gnunet-service-gns -c gns.conf &
35 LO=`nslookup alice.gnu | grep Address | tail -n1`
36 if [ "$LO" != "Address: 1.2.3.4" ]
40 LO=`nslookup www.bob.gnu | grep Address | tail -n1`
41 if [ "$LO" != "Address: 4.5.6.7" ]
45 # XXX: jobs. a builtin by bash, netbsd sh, maybe leave it be for now.