VERSION: Bump version up to 3.6.16.
[Samba.git] / selftest / target / Windows.pm
blobd0c90d7f7b5212316b2f681efb250456547b0ff2
1 #!/usr/bin/perl
2 # Bootstrap Samba and run a number of tests against it.
3 # Copyright (C) 2005-2007 Jelmer Vernooij <jelmer@samba.org>
4 # Published under the GNU GPL, v3 or later.
6 package Windows;
8 use strict;
9 use FindBin qw($RealBin);
10 use POSIX;
12 sub new($)
14 my ($classname) = @_;
15 my $self = { };
16 bless $self;
17 return $self;
20 sub provision($$$)
22 my ($self, $environment, $prefix) = @_;
24 die ("Windows tests will not run without root privileges.")
25 if (`whoami` ne "root");
27 die("Environment variable WINTESTCONF has not been defined.\n".
28 "Windows tests will not run unconfigured.") if (not defined($ENV{WINTESTCONF}));
30 die ("$ENV{WINTESTCONF} could not be read.") if (! -r $ENV{WINTESTCONF});
32 $ENV{WINTEST_DIR}="$ENV{SRCDIR}/selftest/win";
35 sub setup_env($$)
37 my ($self, $name) = @_;