FOSSology  3.2.0rc1
Open Source License Compliance by Open Source Software
TestRun Class Reference
Collaboration diagram for TestRun:
Collaboration graph

Public Member Functions

 __construct ($srcPath=NULL)
 
 checkOutTot ()
 check out the top of trunk fossology sources. Uses attribute set by the constructor. More...
 
 foPostinstall ()
 
 makeInstall ()
 
 makeSrcs ()
 
 schedulerTest ()
 
 setSrcPath ($path)
 
 startScheduler ()
 
 stopScheduler ()
 
 svnUpdate ()
 

Public Attributes

 $srcPath
 

Protected Member Functions

 checkFop ()
 checks the output file from a fo-postinstall for the strings FATAL, error and Error. Assumes fop.out file is in the cwd. More...
 

Private Member Functions

 checkScheduler ()
 
 getSchedPid ()
 

Private Attributes

 $NotRunning = FALSE
 
 $Running = TRUE
 
 $schedulerPid = -1
 

Detailed Description

Test Run class for nightly regression tests

This class provides the methods needed to automate nightly regressions tests for fossology using thi UI test suite.

Version
"$Id: TestRun.php 3579 2010-10-20 01:59:52Z rrando $"

Created on Dec 18, 2008

Definition at line 28 of file TestRun.php.

Constructor & Destructor Documentation

TestRun::__construct (   $srcPath = NULL)

constructor

Parameters
string$srcPathoptional path to the fossology sources. If fossology is being checked out for the first time, the path should not include fossology, that will get created as part of the checkout. For example, /home/testdir/tryit/. Or this path indicates where fossology is located (if not using the default location). In this case fossology should be included in the path. For example, /home/mydir/fossology.
Returns
resource object reference

Definition at line 49 of file TestRun.php.

Member Function Documentation

TestRun::checkFop ( )
protected

checks the output file from a fo-postinstall for the strings FATAL, error and Error. Assumes fop.out file is in the cwd.

checkFop

Returns
Boolean. True if any of the strings are found, false if not found.

Definition at line 70 of file TestRun.php.

TestRun::checkOutTot ( )

check out the top of trunk fossology sources. Uses attribute set by the constructor.

Returns
boolen

Definition at line 98 of file TestRun.php.

TestRun::checkScheduler ( )
private

checkScheduler

Check to see if the scheduler is running, if so stop it:

  1. stop it with the standard /etc/initd./fossology stop
  2. If it is still running find the pid and kill -9

Definition at line 128 of file TestRun.php.

TestRun::startScheduler ( )

startScheduler

Check to see if the scheduler is running, if so stop it:

  1. stop it with the standard /etc/initd./fossology stop
  2. If it is still running find the pid and kill -9

Definition at line 234 of file TestRun.php.

TestRun::stopScheduler ( )

stopScheduler

Check to see if the scheduler is running, if so stop it:

  1. stop it with the standard /etc/initd./fossology stop
  2. If it is still running find the pid and kill -9
Returns
void

Definition at line 258 of file TestRun.php.

TestRun::svnUpdate ( )

svnUpdate

run a svn update at $this->srcPath/fossology

return boolean

Definition at line 284 of file TestRun.php.


The documentation for this class was generated from the following file: