summaryrefslogtreecommitdiff
path: root/source4/selftest/target/Windows.pm
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2008-01-17 10:32:41 +1100
committerAndrew Bartlett <abartlet@samba.org>2008-01-17 10:32:41 +1100
commitc10992c065b64e3985c8b14d3a4c9ee5f09790c6 (patch)
tree9e6872f77d7800042c315ff4a09038ce3bb76655 /source4/selftest/target/Windows.pm
parentd5fd15005c0cad9e9018e81ab5c30b87cb2f605a (diff)
parent797e8db3ba1e0038db553af6f564e221479ac381 (diff)
downloadsamba-c10992c065b64e3985c8b14d3a4c9ee5f09790c6.tar.gz
samba-c10992c065b64e3985c8b14d3a4c9ee5f09790c6.tar.bz2
samba-c10992c065b64e3985c8b14d3a4c9ee5f09790c6.zip
Merge branch 'v4-0-test' of git://git.samba.org/samba into 4-0-local
(This used to be commit 11660b0737107138b53c3a08e8de30ee44607eae)
Diffstat (limited to 'source4/selftest/target/Windows.pm')
-rw-r--r--source4/selftest/target/Windows.pm40
1 files changed, 40 insertions, 0 deletions
diff --git a/source4/selftest/target/Windows.pm b/source4/selftest/target/Windows.pm
new file mode 100644
index 0000000000..d0c90d7f7b
--- /dev/null
+++ b/source4/selftest/target/Windows.pm
@@ -0,0 +1,40 @@
+#!/usr/bin/perl
+# Bootstrap Samba and run a number of tests against it.
+# Copyright (C) 2005-2007 Jelmer Vernooij <jelmer@samba.org>
+# Published under the GNU GPL, v3 or later.
+
+package Windows;
+
+use strict;
+use FindBin qw($RealBin);
+use POSIX;
+
+sub new($)
+{
+ my ($classname) = @_;
+ my $self = { };
+ bless $self;
+ return $self;
+}
+
+sub provision($$$)
+{
+ my ($self, $environment, $prefix) = @_;
+
+ die ("Windows tests will not run without root privileges.")
+ if (`whoami` ne "root");
+
+ die("Environment variable WINTESTCONF has not been defined.\n".
+ "Windows tests will not run unconfigured.") if (not defined($ENV{WINTESTCONF}));
+
+ die ("$ENV{WINTESTCONF} could not be read.") if (! -r $ENV{WINTESTCONF});
+
+ $ENV{WINTEST_DIR}="$ENV{SRCDIR}/selftest/win";
+}
+
+sub setup_env($$)
+{
+ my ($self, $name) = @_;
+}
+
+1;