ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/SCRAM/src/Configuration/test/test_BootStrapProject.pm
Revision: 1.3
Committed: Wed Aug 17 11:19:06 2005 UTC (19 years, 9 months ago) by sashby
Content type: text/plain
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +0 -0 lines
State: FILE REMOVED
Log Message:
Obsolete files removed.

File Contents

# User Rev Content
1 williamc 1.2 #
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