Ignore:
Timestamp:
11/19/08 19:11:33 (4 years ago)
Author:
CrawfordCurrie
Message:

Item175: ported unit tests to new namespace. They all pass.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UnitTestContrib/test/bin/TestRunner.pl

    r14 r816  
    2020 
    2121BEGIN { 
    22         $TWiki::cfg{Engine} = 'TWiki::Engine::CGI'; 
     22        $Foswiki::cfg{Engine} = 'Foswiki::Engine::CGI'; 
    2323    # root the tree 
    2424    my $here = Cwd::abs_path; 
     
    4444 
    4545use strict; 
    46 use TWiki;   # If you take this out then TestRunner.pl will fail on IndigoPerl 
     46use Foswiki;   # If you take this out then TestRunner.pl will fail on IndigoPerl 
    4747use Unit::TestRunner; 
    4848 
     
    8787if ($options{-clean}) { 
    8888    require File::Path; 
    89     my @x = glob "$TWiki::cfg{DataDir}/Temp*"; 
     89    my @x = glob "$Foswiki::cfg{DataDir}/Temp*"; 
    9090    File::Path::rmtree([@x]) if scalar(@x); 
    91     @x = glob "$TWiki::cfg{PubDir}/Temp*"; 
     91    @x = glob "$Foswiki::cfg{PubDir}/Temp*"; 
    9292    File::Path::rmtree([@x]) if scalar(@x); 
    9393} 
    9494 
    95 testForFiles($TWiki::cfg{DataDir}.'/Temp*'); 
    96 testForFiles($TWiki::cfg{PubDir}.'/Temp*'); 
     95testForFiles($Foswiki::cfg{DataDir}.'/Temp*'); 
     96testForFiles($Foswiki::cfg{PubDir}.'/Temp*'); 
    9797 
    9898my $testrunner = Unit::TestRunner->new(); 
Note: See TracChangeset for help on using the changeset viewer.