idl: fix Unix builds by replacing bashism
[Samba/ita.git] / selftest / target / Template.pm
blob25d925966878f71b1bce67ed03e54fad6d67e595
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;
47 sub stop($)
49 my ($self) = @_;