summaryrefslogtreecommitdiffstats
path: root/selftest/selftest.pl
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-10-19 16:07:00 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-10-19 16:07:00 +0200
commitc0de338394c9e2dd80a3ad06341fe95b1ea169ed (patch)
tree56059deb8152e463687c720a0f37bc803c0fb229 /selftest/selftest.pl
parent974ab9d2f9ffabe20fab687f7e63cb168570f7e5 (diff)
downloadsamba-c0de338394c9e2dd80a3ad06341fe95b1ea169ed.tar.gz
samba-c0de338394c9e2dd80a3ad06341fe95b1ea169ed.tar.xz
samba-c0de338394c9e2dd80a3ad06341fe95b1ea169ed.zip
Move Samba4-specific code out of selftest.
Diffstat (limited to 'selftest/selftest.pl')
-rwxr-xr-xselftest/selftest.pl35
1 files changed, 20 insertions, 15 deletions
diff --git a/selftest/selftest.pl b/selftest/selftest.pl
index ebb88dde285..d1e9c8d6c80 100755
--- a/selftest/selftest.pl
+++ b/selftest/selftest.pl
@@ -588,24 +588,9 @@ sub write_clientconf($$)
close(CF);
}
-my @torture_options = ();
-push (@torture_options, "--configfile=$conffile");
-# ensure any one smbtorture call doesn't run too long
-push (@torture_options, "--maximum-runtime=$torture_maxtime");
-push (@torture_options, "--target=$opt_target");
-push (@torture_options, "--basedir=$prefix_abs");
-push (@torture_options, "--option=torture:progress=no") unless ($opt_verbose);
-push (@torture_options, "--format=subunit");
-push (@torture_options, "--option=torture:quick=yes") if ($opt_quick);
-
-$ENV{TORTURE_OPTIONS} = join(' ', @torture_options);
-print "OPTIONS $ENV{TORTURE_OPTIONS}\n";
-
my @todo = ();
my $testsdir = "$srcdir/selftest";
-$ENV{SMB_CONF_PATH} = "$conffile";
-$ENV{CONFIGURATION} = "--configfile=$conffile";
my %required_envs = ();
@@ -640,6 +625,26 @@ if ($#testlists == -1) {
die("No testlists specified");
}
+$ENV{SELFTEST_PREFIX} = "$prefix_abs";
+if ($opt_socket_wrapper) {
+ $ENV{SELFTEST_INTERFACES} = $interfaces;
+} else {
+ $ENV{SELFTEST_INTERFACES} = "";
+}
+if ($opt_verbose) {
+ $ENV{SELFTEST_VERBOSE} = "1";
+} else {
+ $ENV{SELFTEST_VERBOSE} = "";
+}
+if ($opt_quick) {
+ $ENV{SELFTEST_QUICK} = "1";
+} else {
+ $ENV{SELFTEST_QUICK} = "";
+}
+$ENV{SELFTEST_TARGET} = $opt_target;
+$ENV{SELFTEST_MAXTIME} = $torture_maxtime;
+$ENV{SELFTEST_CONFFILE} = $conffile;
+
my @available = ();
foreach my $fn (@testlists) {
foreach (read_testlist($fn)) {