selftest: Define if we should fake dns resolving.
[obnox/samba/samba-obnox.git] / selftest / wscript
index fd3c89a0f3b5020079ba8ed1f4a5e3da9aca0ab7..94232d3aac134a45dea0b5ef2164d1953a0721e7 100644 (file)
@@ -215,6 +215,9 @@ def cmd_testonly(opt):
     env.OPTIONS += " --socket_wrapper_so_path=" + CONFIG_GET(opt, 'LIBSOCKET_WRAPPER_SO_PATH')
     env.OPTIONS += " --uid_wrapper_so_path=" + CONFIG_GET(opt, 'LIBUID_WRAPPER_SO_PATH')
 
+    if unversioned_sys_platform in ('freebsd', 'netbsd', 'openbsd', 'sunos'):
+        env.OPTIONS += " --use-dns-faking"
+
     subunit_cache = None
     # We use the full path rather than relative path to avoid problems on some platforms (ie. solaris 8).
     env.CORE_COMMAND = '${PERL} ${srcdir}/selftest/selftest.pl --target=${SELFTEST_TARGET} --prefix=${SELFTEST_PREFIX} --srcdir=${srcdir} --exclude=${srcdir}/selftest/skip ${TESTLISTS} ${OPTIONS} ${TESTS}'