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 if test -e @PKGDATADIRECTORY@/existence.sh
13 . @PKGDATADIRECTORY@/existence.sh
15 . $dir/../../contrib/build-common/sh/lib.sh/existence.sh
18 LOCATION=`existence gnunet-config`
19 if test -z $LOCATION; then
20 LOCATION="gnunet-config"
25 echo "GNUnet command line tools cannot be found, check environmental variables PATH and GNUNET_PREFIX"
29 trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT
31 if [ "$ME" != "root" ]
33 echo "This test only works if run as root. Skipping."
37 gnunet-service-gns -c gns.conf &
39 LO=`nslookup alice.gnu | grep Address | tail -n1`
40 if [ "$LO" != "Address: 1.2.3.4" ]
44 LO=`nslookup www.bob.gnu | grep Address | tail -n1`
45 if [ "$LO" != "Address: 4.5.6.7" ]
49 # XXX: jobs. a builtin by bash, netbsd sh, maybe leave it be for now.