Revision: | 1.2 |
Committed: | Mon Aug 28 08:35:14 2000 UTC (24 years, 8 months ago) by williamc |
Content type: | text/plain |
Branch: | MAIN |
CVS Tags: | v102p1, V1_0_1, V1_0_0, V1_pre0, SCRAM_V1, SCRAMV1_IMPORT, V0_19_7, V0_19_6, V0_19_6p1, V0_19_5, SFATEST, V0_19_4, V0_19_4_pre3, V0_19_4_pre2, V0_19_4_pre1, V0_19_3, V0_19_2, V0_19_1, V0_19_0, V0_18_5, V0_18_4, V0_18_2, V0_18_1 |
Branch point for: | V1_pre1, SCRAM_V1_BRANCH, V0_19_4_B |
Changes since 1.1: | +44 -0 lines |
Log Message: | remove Interface.pm |
# | Content |
---|---|
1 | # |
2 | # Tool test suite |
3 | # |
4 | |
5 | package Configuration::test::test_BootStrapProject; |
6 | require 5.001; |
7 | use Configuration::BootStrapProject; |
8 | |
9 | @ISA = ("Utilities::TestClass"); #methods both from the test class |
10 | |
11 | sub init { |
12 | my $self=shift; |
13 | $self->{arealoc}=$self->temparea("")."/BootStrapProject"; |
14 | $self->{cachedir}=$self->{arealoc}."/globalcache"; |
15 | $self->{testfile}=$self->datadir("")."/BootStrapProject_bootfile"; |
16 | $self->{cache}=URL::URLcache->new($self->{cachedir}); |
17 | } |
18 | |
19 | sub test { |
20 | my $self=shift; |
21 | $self->newtest("Initiation test - file not existing"); |
22 | $self->newobject($self->{cache}, $self->{arealoc}); |
23 | |
24 | $self->newtest("BOOT test"); |
25 | $self->testinterface("boot","file:".$self->{testfile}); |
26 | |
27 | my $area=$self->{arealoc}."/TESTBOOT_test"; |
28 | $self->_teststructure($area); |
29 | $self->verifydir($area."/config"); |
30 | $self->verifydir($area."/config/CVS"); |
31 | } |
32 | |
33 | |
34 | sub _teststructure { |
35 | my $self=shift; |
36 | my $areadir=shift; |
37 | my $workdir=$areadir."/.SCRAM"; |
38 | |
39 | $self->verifydir($areadir); |
40 | $self->verifydir($workdir); |
41 | $self->verifydir($workdir."/cache"); |
42 | $self->verifyexists($workdir."/Environment"); |
43 | } |
44 |