1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
samba-mirror/source3/script/tests/test_resolvconf.sh
Volker Lendecke e9e4aeafc0 libcli/dns: Add resolv.conf parsing
Right now this only looks at the nameserver setting. It is initally made for
asynchronous AD DC lookup routines, where we don't need the "search", "domain"
and other settings. When we convert general "net", "smbclient" and others to
use this, we might either add "domain" handling to this code or look at
something like c-ares which already does it.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2019-01-15 07:53:21 +01:00

21 lines
388 B
Bash
Executable File

#!/bin/sh
incdir=`dirname $0`/../../../testprogs/blackbox
. $incdir/subunit.sh
if [ ! -x $BINDIR/resolvconftest ] ; then
# Some machines don't have /bin/true, simulate it
cat >$BINDIR/resolvconftest <<EOF
#!/bin/sh
exit 0
EOF
chmod +x $BINDIR/resolvconftest
fi
failed=0
testit "resolvconf" $VALGRIND $BINDIR/resolvconftest ||
failed=`expr $failed + 1`
testok $0 $failed