if ! which sudo > /dev/null
then
echo "This test requires sudo. Skipping."
+ exit 0
fi
if [ ! -x `which sudo` ]
then
echo "This test requires sudo. Skipping."
exit 0
fi
-if ! which nslookup
+if ! which nslookup > /dev/null
then
echo "This test requires nslookup. Skipping."
exit 0
echo "This test requires nslookup. Skipping."
exit 0
fi
+if ! iptables -t mangle --list &> /dev/null
+then
+ echo "This test requires iptables with 'mangle' support. Skipping."
+ exit 0
+fi
+
export PATH=".:$PATH"
gnunet-service-dns -c dns.conf &
gnunet-dns-redirector -c dns.conf -4 127.0.0.1 &
echo "Fail: got address $LO, wanted 127.0.0.1"
ret=1
else
+ echo "Test run, with success."
ret=0
fi
kill `jobs -p`