12 $path =
'/usr/share/php' . PATH_SEPARATOR;
13 set_include_path(get_include_path() . PATH_SEPARATOR . $path);
16 require_once
'/usr/local/simpletest/web_tester.php';
17 require_once
'/usr/local/simpletest/reporter.php';
20 require_once (
'../../../tests/TestEnvironment.php');
21 require_once(
'../../../tests/testClasses/timer.php');
25 $date = date(
'Y-m-d');
26 $time = date(
'h:i:s-a');
27 print
"\nStarting Verify Tests on: " . $date .
" at " . $time .
"\n";
28 print
"Using Svn Version:$Svn\n";
29 $test =
new TestSuite(
'Fossology Repo UI Verification Functional tests');
31 $test->addTestFile(
'OneShot-lgpl2.1.php');
32 $test->addTestFile(
'OneShot-lgpl2.1-T.php');
33 $test->addTestFile(
'verifyFossI16L335U29.php');
34 $test->addTestFile(
'verifyFoss23D1F1L.php');
35 $test->addTestFile(
'verifyFossDirsOnly.php');
37 if (TextReporter::inCli())
39 $results = $test->run(
new TextReporter()) ? 0 : 1;
40 print
"Ending Verify Tests at: " . date(
'r') .
"\n";
41 $elapseTime = $start->TimeAgo($start->getStartTime());
42 print
"The Verify Tests took {$elapseTime}to run\n\n";
45 $test->run(
new HtmlReporter());
46 print
"<pre>Ending Verify Tests at: " . date(
'r') .
"</pre>\n";
47 $elapseTime = $start->TimeAgo($start->getStartTime());
48 print
"<pre>The Verify Tests took {$elapseTime}to run</pre>\n\n";