30 $path =
'/usr/local/simpletest' . PATH_SEPARATOR;
31 set_include_path(get_include_path() . PATH_SEPARATOR . $path);
32 if (!defined(
'SIMPLE_TEST'))
33 define(
'SIMPLE_TEST',
'/usr/local/simpletest/');
36 require_once SIMPLE_TEST .
'unit_tester.php';
37 require_once SIMPLE_TEST .
'reporter.php';
38 require_once SIMPLE_TEST .
'web_tester.php';
40 require_once(
'TestEnvironment.php');
42 require_once(
'testClasses/timer.php');
46 print
"Starting xxxx Tests at: " . date(
'r') .
"\n";
47 $test =
new TestSuite(
"Run Fossology tests");
53 $test->addTestFile(
'atest');
58 $elapseTime = $start->TimeAgo($start->getStartTime());
60 if (TextReporter :: inCli())
62 $results = $test->run(
new TextReporter()) ? 0 : 1;
63 print
"Ending xxx Tests at: " . date(
'r') .
"\n";
64 print
"The xxxx Tests took {$elapseTime}to run\n";
67 $test->run(
new HtmlReporter());
68 $elapseTime = $start->TimeAgo($start->getStartTime());
69 print
"<pre>The xxxx Tests took {$elapseTime}to run</pre>\n";