23 $path =
'/usr/share/php' . PATH_SEPARATOR;
24 set_include_path(get_include_path() . PATH_SEPARATOR . $path);
27 require_once
'/usr/local/simpletest/unit_tester.php';
28 require_once
'/usr/local/simpletest/web_tester.php';
29 require_once
'/usr/local/simpletest/reporter.php';
31 require_once(
'../../../tests/TestEnvironment.php');
32 require_once(
'../../../tests/testClasses/timer.php');
40 $date = date(
'Y-m-d');
41 $time = date(
'h:i:s-a');
42 print
"\nStarting Site Tests on: " . $date .
" at " . $time .
"\n";
43 print
"Using Svn Version:$Svn\n";
44 $test =
new TestSuite(
'Fossology Repo Site UI tests');
45 $test->addTestFile(
'AboutMenuTest.php');
46 $test->addTestFile(
'login.php');
47 $test->addTestFile(
'SearchMenuTest.php');
48 $test->addTestFile(
'OrgFoldersMenuTest-Create.php');
49 $test->addTestFile(
'OrgFoldersMenuTest-Delete.php');
50 $test->addTestFile(
'OrgFoldersMenuTest-Edit.php');
51 $test->addTestFile(
'OrgFoldersMenuTest-Move.php');
52 $test->addTestFile(
'OrgUploadsMenuTest-Delete.php');
53 $test->addTestFile(
'OrgUploadsMenuTest-Move.php');
54 $test->addTestFile(
'UploadInstructMenuTest.php');
55 $test->addTestFile(
'UploadFileMenuTest.php');
56 $test->addTestFile(
'UploadServerMenuTest.php');
57 $test->addTestFile(
'UploadUrlMenuTest.php');
58 $test->addTestFile(
'UploadOne-ShotMenuTest.php');
59 if (TextReporter::inCli())
61 $results = $test->run(
new TextReporter()) ? 0 : 1;
62 print
"Ending Site Tests at: " . date(
'r') .
"\n";
63 $elapseTime = $start->TimeAgo($start->getStartTime());
64 print
"The Site Tests took {$elapseTime}to run\n\n";
67 $test->run(
new HtmlReporter());
68 $elapseTime = $start->TimeAgo($start->getStartTime());
69 print
"<pre>The Site Tests took {$elapseTime}to run</pre>\n\n";