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');
36 $date = date(
'Y-m-d');
37 $time = date(
'h:i:s-a');
38 print
"\nStarting Basic Functional Tests on: " . $date .
" at " . $time .
"\n";
39 print
"Using Svn Version:$Svn\n";
40 $test =
new TestSuite(
'Fossology Repo UI Basic Functional tests');
42 $test->addTestFile(
'BasicSetup.php');
43 $test->addTestFile(
'UploadFileTest.php');
44 $test->addTestFile(
'UploadUrlTest.php');
45 $test->addTestFile(
'UploadSrvArchiveTest.php');
46 $test->addTestFile(
'uploadSrvDirTest.php');
47 $test->addTestFile(
'uploadSrvFileTest.php');
48 $test->addTestFile(
'CreateFolderTest.php');
49 $test->addTestFile(
'DeleteFolderTest.php');
50 $test->addTestFile(
'editFolderTest.php');
51 $test->addTestFile(
'editFolderNameOnlyTest.php');
52 $test->addTestFile(
'editFolderDescriptionOnlyTest.php');
53 $test->addTestFile(
'moveFolderTest.php');
54 $test->addTestFile(
'DupFolderTest.php');
55 $test->addTestFile(
'DupUploadTest.php');
56 $test->addTestFile(
'createFldrDeleteIt.php');
58 if (TextReporter::inCli())
60 $results = $test->run(
new TextReporter()) ? 0 : 1;
61 print
"Ending Basic Tests at: " . date(
'r') .
"\n";
62 $elapseTime = $start->TimeAgo($start->getStartTime());
63 print
"The Basic Tests took {$elapseTime}to run\n\n";
66 $test->run(
new HtmlReporter());
67 $elapseTime = $start->TimeAgo($start->getStartTime());
68 print
"<pre>The Basic Functional Tests took {$elapseTime}to run</pre>\n\n";