s4-selftest: add unit tests for sites's function in python
[Samba/gebeck_regimport.git] / selftest / target / Template.pm
blob2b47ad1e7458ad0417fb6aada18a6120e06f75b3
1 #!/usr/bin/perl
2 # Copyright (C) 2009 Stefan Metzmacher <metze@samba.org>
3 # Published under the GNU GPL, v3 or later.
5 package Template;
7 use strict;
9 sub new($$) {
10 my ($classname) = @_;
11 my $self = {
12 classname => $classname
14 bless $self;
15 return $self;
18 sub teardown_env($$)
20 my ($self, $envvars) = @_;
22 return 0;
25 sub getlog_env($$)
27 my ($self, $envvars) = @_;
29 return "";
32 sub check_env($$)
34 my ($self, $envvars) = @_;
36 return 1;
39 sub setup_env($$$)
41 my ($self, $envname, $path) = @_;
42 my $envvars = undef;
44 return $envvars;