summaryrefslogtreecommitdiff
path: root/selftest
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-04-06 12:10:03 +1000
committerAndrew Bartlett <abartlet@samba.org>2011-04-06 12:34:58 +1000
commit747ebc118a5cff75e71341e1f39b8127e96e41cd (patch)
treeea3b33b003e98068ad25209d0eff8c3cd9e9ec0d /selftest
parent457c665be2777513ff8aed1de53d8ea4eb462adc (diff)
downloadsamba-747ebc118a5cff75e71341e1f39b8127e96e41cd.tar.gz
samba-747ebc118a5cff75e71341e1f39b8127e96e41cd.tar.bz2
samba-747ebc118a5cff75e71341e1f39b8127e96e41cd.zip
s3-selftest names into DNS hosts file to avoid NBT lookups
NBT lookups cause trouble and variablity in 'make test', so it's much better if we just use the fake DNS code. This code is only used by smbtorture4 at this time, but the other client tools are generally told to contact by IP address. We need to contact by name to test Kerberos, and this should make the kerberos tests much more reliable. Andrew Bartlett
Diffstat (limited to 'selftest')
-rw-r--r--selftest/target/Samba3.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/selftest/target/Samba3.pm b/selftest/target/Samba3.pm
index de3fffbc93..66f7a4403e 100644
--- a/selftest/target/Samba3.pm
+++ b/selftest/target/Samba3.pm
@@ -802,6 +802,11 @@ domusers:X:$gid_domusers:
print "DONE\n";
+ open(HOSTS, ">>$ENV{SELFTEST_PREFIX}/dns_host_file") or die("Unable to open $ENV{SELFTEST_PREFIX}/dns_host_file");
+ print HOSTS "A $server $server_ip
+";
+ close(HOSTS);
+
$ret{SERVER_IP} = $server_ip;
$ret{NMBD_TEST_LOG} = "$prefix/nmbd_test.log";
$ret{NMBD_TEST_LOG_POS} = 0;