FOSSology  4.4.0
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 17 of file TestRun.php.

Constructor & Destructor Documentation

◆ __construct()

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 38 of file TestRun.php.

Member Function Documentation

◆ checkFop()

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 59 of file TestRun.php.

◆ checkOutTot()

TestRun::checkOutTot ( )

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

Returns
boolen

Definition at line 87 of file TestRun.php.

◆ checkScheduler()

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 117 of file TestRun.php.

◆ startScheduler()

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 223 of file TestRun.php.

◆ stopScheduler()

TestRun::stopScheduler ( )

stopScheduler

\breief 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 247 of file TestRun.php.

◆ svnUpdate()

TestRun::svnUpdate ( )

svnUpdate

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

return boolean

Definition at line 273 of file TestRun.php.


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