summaryrefslogtreecommitdiff
path: root/selftest/selftest.pl
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2014-11-03 13:22:38 +0100
committerAndrew Bartlett <abartlet@samba.org>2014-12-18 06:47:40 +0100
commit30cc2e7755074758a16fcf2a8d818321ee0b4021 (patch)
tree433fa3d9a83f1f8dddff3dea5830e8f15c89ddd3 /selftest/selftest.pl
parent1292d513c1274a714c22da0781428859249cee26 (diff)
downloadsamba-30cc2e7755074758a16fcf2a8d818321ee0b4021.tar.gz
selftest: Define if we should fake dns resolving.
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'selftest/selftest.pl')
-rwxr-xr-xselftest/selftest.pl13
1 files changed, 12 insertions, 1 deletions
diff --git a/selftest/selftest.pl b/selftest/selftest.pl
index 166d40aebe2..841dc537241 100755
--- a/selftest/selftest.pl
+++ b/selftest/selftest.pl
@@ -56,6 +56,7 @@ my $opt_libnss_wrapper_so_path = "";
my $opt_libresolv_wrapper_so_path = "";
my $opt_libsocket_wrapper_so_path = "";
my $opt_libuid_wrapper_so_path = "";
+my $opt_use_dns_faking = 0;
my @testlists = ();
my $srcdir = ".";
@@ -205,6 +206,10 @@ Preload cwrap:
--socket_wrapper_so_path=FILE the socket_wrapper library to preload
--uid_wrapper_so_path=FILE the uid_wrapper library to preload
+DNS:
+ --use-dns-faking Fake DNS entries rather than talking to our
+ DNS implementation.
+
Target Specific:
--socket-wrapper-pcap save traffic to pcap directories
--socket-wrapper-keep-pcap keep all pcap files, not just those for tests that
@@ -247,7 +252,8 @@ my $result = GetOptions (
'nss_wrapper_so_path=s' => \$opt_libnss_wrapper_so_path,
'resolv_wrapper_so_path=s' => \$opt_libresolv_wrapper_so_path,
'socket_wrapper_so_path=s' => \$opt_libsocket_wrapper_so_path,
- 'uid_wrapper_so_path=s' => \$opt_libuid_wrapper_so_path
+ 'uid_wrapper_so_path=s' => \$opt_libuid_wrapper_so_path,
+ 'use-dns-faking' => \$opt_use_dns_faking
);
exit(1) if (not $result);
@@ -399,6 +405,11 @@ if ($opt_socket_wrapper) {
}
}
+if ($opt_use_dns_faking) {
+ print "DNS: Faking namerserver\n";
+ $ENV{SAMBA_DNS_FAKING} = 1;
+}
+
my $target;
my $testenv_default = "none";