mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
e9e4aeafc0
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>
21 lines
388 B
Bash
Executable File
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
|