23 $path =
'/usr/share/php' . PATH_SEPARATOR;
24 set_include_path(get_include_path() . PATH_SEPARATOR . $path);
27 require_once
'/usr/local/simpletest/web_tester.php';
28 require_once
'/usr/local/simpletest/reporter.php';
31 require_once (
'../../../tests/TestEnvironment.php');
32 require_once(
'../../../tests/testClasses/timer.php');
36 $date = date(
'Y-m-d');
37 $time = date(
'h:i:s-a');
38 print
"\nStarting Verify Tests on: " . $date .
" at " . $time .
"\n";
39 print
"Using Svn Version:$Svn\n";
40 $test =
new TestSuite(
'Fossology Repo UI Verification Functional tests');
42 $test->addTestFile(
'OneShot-lgpl2.1.php');
43 $test->addTestFile(
'OneShot-lgpl2.1-T.php');
44 $test->addTestFile(
'verifyFossI16L335U29.php');
45 $test->addTestFile(
'verifyFoss23D1F1L.php');
46 $test->addTestFile(
'verifyFossDirsOnly.php');
48 if (TextReporter::inCli())
50 $results = $test->run(
new TextReporter()) ? 0 : 1;
51 print
"Ending Verify Tests at: " . date(
'r') .
"\n";
52 $elapseTime = $start->TimeAgo($start->getStartTime());
53 print
"The Verify Tests took {$elapseTime}to run\n\n";
56 $test->run(
new HtmlReporter());
57 print
"<pre>Ending Verify Tests at: " . date(
'r') .
"</pre>\n";
58 $elapseTime = $start->TimeAgo($start->getStartTime());
59 print
"<pre>The Verify Tests took {$elapseTime}to run</pre>\n\n";