FOSSology
3.2.0rc1
Open Source License Compliance by Open Source Software
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
runUploadsTest.php
1
#!/usr/bin/php
2
<?php
3
/***********************************************************
4
Copyright (C) 2011 Hewlett-Packard Development Company, L.P.
5
6
This program is free software; you can redistribute it and/or
7
modify it under the terms of the GNU General Public License
8
version 2 as published by the Free Software Foundation.
9
10
This program is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
GNU General Public License for more details.
14
15
You should have received a copy of the GNU General Public License along
16
with this program; if not, write to the Free Software Foundation, Inc.,
17
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18
***********************************************************/
34
/* simpletest includes */
35
require_once
'/usr/local/simpletest/unit_tester.php'
;
36
require_once
'/usr/local/simpletest/collector.php'
;
37
require_once
'/usr/local/simpletest/web_tester.php'
;
38
require_once
'/usr/local/simpletest/reporter.php'
;
39
require_once
'/usr/local/simpletest/extensions/junit_xml_reporter.php'
;
40
41
global $home;
42
43
class
uploadsTest
extends
TestSuite
44
{
45
function
__construct($label=FALSE)
46
{
47
parent::__construct($label);
48
$this->addTestFile(
'uplTestData.php'
);
49
$this->addTestFile(
'uploadCopyrightData.php'
);
50
// agent add data is not ready yet....due to javascript.
51
//$this->addTestFile('AgentAddData.php');
52
// do the uploads and output in text...
53
}
54
}
55
56
// run the upload test data programs
57
$home = getcwd();
58
59
$uploadTest =
new
uploadsTest
(
'Upload and Analyze Test Data'
);
60
$uploadTest->run(
new
JUnitXMLReporter
());
61
62
// Waiting for upload jobs to finish...
63
$last = exec(
'./wait4jobs.php'
, $tossme, $jobsDone);
64
65
// @todo fix the message so the user runs the correct program...
66
if
($jobsDone != 0)
67
{
68
$errMsg =
"ERROR! jobs are not finished after two hours, not running"
.
69
"verify tests, please investigate and run verify tests by hand\n"
.
70
"Monitor the job Q and when the setup jobs are done, run:\n"
.
71
"$myname xxxx $logFile\n"
;
72
$this->fail($errMsg);
73
return
(FALSE);
74
}
75
return
(TRUE);
76
?>
uploadsTest
Definition:
runUploadsTest.php:43
JUnitXMLReporter
Definition:
junit_xml_reporter.php:22
src
testing
functional
runUploadsTest.php
Generated on Mon Jun 29 2020 12:03:43 for FOSSology by
1.8.11