FOSSology
4.5.1
Open Source License Compliance by Open Source Software
runUploadsTest.php
1
#!/usr/bin/php
2
<?php
3
/*
4
SPDX-FileCopyrightText: © 2011 Hewlett-Packard Development Company, L.P.
5
6
SPDX-License-Identifier: GPL-2.0-only
7
*/
23
/* simpletest includes */
24
require_once
'/usr/local/simpletest/unit_tester.php'
;
25
require_once
'/usr/local/simpletest/collector.php'
;
26
require_once
'/usr/local/simpletest/web_tester.php'
;
27
require_once
'/usr/local/simpletest/reporter.php'
;
28
require_once
'/usr/local/simpletest/extensions/junit_xml_reporter.php'
;
29
30
global $home;
31
32
class
uploadsTest
extends
TestSuite
33
{
34
function
__construct($label=FALSE)
35
{
36
parent::__construct($label);
37
$this->addTestFile(
'uplTestData.php'
);
38
$this->addTestFile(
'uploadCopyrightData.php'
);
39
// agent add data is not ready yet....due to javascript.
40
//$this->addTestFile('AgentAddData.php');
41
// do the uploads and output in text...
42
}
43
}
44
45
// run the upload test data programs
46
$home = getcwd();
47
48
$uploadTest =
new
uploadsTest
(
'Upload and Analyze Test Data'
);
49
$uploadTest->run(
new
JUnitXMLReporter
());
50
51
// Waiting for upload jobs to finish...
52
$last = exec(
'./wait4jobs.php'
, $tossme, $jobsDone);
53
54
// @todo fix the message so the user runs the correct program...
55
if
($jobsDone != 0)
56
{
57
$errMsg =
"ERROR! jobs are not finished after two hours, not running"
.
58
"verify tests, please investigate and run verify tests by hand\n"
.
59
"Monitor the job Q and when the setup jobs are done, run:\n"
.
60
"$myname xxxx $logFile\n"
;
61
$this->fail($errMsg);
62
return
(FALSE);
63
}
64
return
(TRUE);
JUnitXMLReporter
Definition:
junit_xml_reporter.php:27
uploadsTest
Definition:
runUploadsTest.php:33
src
testing
functional
runUploadsTest.php
Generated on Wed Mar 26 2025 09:10:53 for FOSSology by
1.9.1