2 # This file is in the public domain.
3 LOCATION=$(which gnunet-config)
6 LOCATION="gnunet-config"
11 echo "GNUnet command line tools cannot be found, check environmental variables PATH and GNUNET_PREFIX"
15 trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT
17 if [ "$ME" != "root" ]
19 echo "This test only works if run as root. Skipping."
23 gnunet-service-gns -c gns.conf &
25 LO=`nslookup alice.gnu | grep Address | tail -n1`
26 if [ "$LO" != "Address: 1.2.3.4" ]
30 LO=`nslookup www.bob.gnu | grep Address | tail -n1`
31 if [ "$LO" != "Address: 4.5.6.7" ]