1 |
williamc |
1.2 |
#
|
2 |
|
|
# BuildSetup.pm test suite
|
3 |
|
|
#
|
4 |
|
|
|
5 |
|
|
package BuildSystem::test::test_BuildSetup;
|
6 |
|
|
require 5.001;
|
7 |
|
|
use BuildSystem::BuildSetup;
|
8 |
|
|
|
9 |
|
|
@ISA=qw(Utilities::TestClass); #methods both from the test class
|
10 |
|
|
|
11 |
|
|
sub init {
|
12 |
|
|
my $self=shift;
|
13 |
|
|
$self->{testfile}=$self->datadir()."/BuildFileDoc";
|
14 |
|
|
|
15 |
williamc |
1.3 |
require BuildSystem::test::TestBuildArea;
|
16 |
|
|
$self->{tba}=BuildSystem::test::TestBuildArea->new($self->temparea(),
|
17 |
|
|
$self->datadir());
|
18 |
|
|
$self->{testarea}=$self->{tba}->releasearea();
|
19 |
williamc |
1.2 |
|
20 |
|
|
}
|
21 |
|
|
|
22 |
|
|
sub test {
|
23 |
|
|
my $self=shift;
|
24 |
|
|
$self->newtest("Initiation test");
|
25 |
|
|
$self->newobject($self->{testarea});
|
26 |
|
|
$self->testinterface("verbosity",1);
|
27 |
williamc |
1.3 |
my $twigdir=$self->{tba}->twigdir();
|
28 |
|
|
|
29 |
|
|
$self->newtest("Class Setup Testing");
|
30 |
|
|
my $twigmake=$self->{testarea}->location()."/".$ENV{INTwork}.
|
31 |
|
|
"/twig_makefile.mk";
|
32 |
|
|
$self->expect("twig",$twigdir, $twigmake);
|
33 |
|
|
$self->testinterface("classsetup",$twigdir);
|
34 |
|
|
$self->clearexpect();
|
35 |
|
|
$self->verifyexists($twigmake);
|
36 |
|
|
|
37 |
|
|
$self->newtest("General Setup Testing");
|
38 |
williamc |
1.2 |
$self->testinterface("BuildSetup");
|
39 |
|
|
$self->verifyexists($self->{testarea}->location()."/".$ENV{INTwork}.
|
40 |
|
|
"/DEFAULT_makefile.mk");
|
41 |
|
|
}
|
42 |
|
|
|
43 |
|
|
# === dummy routines
|
44 |
|
|
|
45 |
|
|
sub tools {
|
46 |
|
|
return ();
|
47 |
|
|
}
|