summaryrefslogtreecommitdiff
path: root/selftest/selftest.pl
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-10-26 15:21:11 +1100
committerAndrew Bartlett <abartlet@samba.org>2011-10-28 13:10:27 +0200
commit8dcfe2e5c44184298b0aa5bb1a13e2108b31a9c4 (patch)
tree14a684c269b848dc36d9b553774e18e0c3501e93 /selftest/selftest.pl
parentf54dcc86b8c04bfd3c85ad327d268f5e32dd2cfd (diff)
downloadsamba-8dcfe2e5c44184298b0aa5bb1a13e2108b31a9c4.tar.gz
samba-8dcfe2e5c44184298b0aa5bb1a13e2108b31a9c4.tar.bz2
samba-8dcfe2e5c44184298b0aa5bb1a13e2108b31a9c4.zip
selftest: Remove --target option and the ability to run 'samba4 only' tests
This simplifies the selftest system, and by default we always tested all of samba3 and samba4 in the waf build. This simply removes a rarely used option for testing only part of the system. The make test TESTS="^samba3" syntax remains unchanged, so no functionality is lost. Andrew Bartlett
Diffstat (limited to 'selftest/selftest.pl')
-rwxr-xr-xselftest/selftest.pl12
1 files changed, 4 insertions, 8 deletions
diff --git a/selftest/selftest.pl b/selftest/selftest.pl
index 78627c8eb6..f41ff33d53 100755
--- a/selftest/selftest.pl
+++ b/selftest/selftest.pl
@@ -26,7 +26,7 @@ selftest - Samba test runner
selftest --help
-selftest [--srcdir=DIR] [--bindir=DIR] [--exeext=EXT][--target=samba4|samba3|win|kvm] [--socket-wrapper] [--quick] [--exclude=FILE] [--include=FILE] [--one] [--prefix=prefix] [--testlist=FILE] [TESTS]
+selftest [--srcdir=DIR] [--bindir=DIR] [--exeext=EXT][--target=samba|samba3|win|kvm] [--socket-wrapper] [--quick] [--exclude=FILE] [--include=FILE] [--one] [--prefix=prefix] [--testlist=FILE] [TESTS]
=head1 DESCRIPTION
@@ -56,7 +56,7 @@ Executable extention
Change directory to run tests in. Default is 'st'.
-=item I<--target samba4|samba3|win|kvm>
+=item I<--target samba|samba3|win|kvm>
Specify test target against which to run. Default is 'samba4'.
@@ -142,7 +142,7 @@ if ($@) {
}
my $opt_help = 0;
-my $opt_target = "samba4";
+my $opt_target = "samba";
my $opt_quick = 0;
my $opt_socket_wrapper = 0;
my $opt_socket_wrapper_pcap = undef;
@@ -300,7 +300,7 @@ Usage: $Script [OPTIONS] TESTNAME-REGEX
Generic options:
--help this help page
- --target=samba[34]|win|kvm Samba version to target
+ --target=samba[3]|win|kvm Samba version to target
--testlist=FILE file to read available tests from
Paths:
@@ -490,10 +490,6 @@ if ($opt_target eq "samba") {
$testenv_default = "all";
require target::Samba;
$target = new Samba($bindir, \%binary_mapping, $ldap, $srcdir, $exeext, $server_maxtime);
-} elsif ($opt_target eq "samba4") {
- $testenv_default = "all";
- require target::Samba4;
- $target = new Samba4($bindir, \%binary_mapping, $ldap, $srcdir, $exeext, $server_maxtime);
} elsif ($opt_target eq "samba3") {
if ($opt_socket_wrapper and `$bindir/smbd -b | grep SOCKET_WRAPPER` eq "") {
die("You must include --enable-socket-wrapper when compiling Samba in order to execute 'make test'. Exiting....");