FOSSology
3.2.0rc1
Open Source License Compliance by Open Source Software
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
upload1File.php
1
#!/usr/bin/php
2
<?php
3
/***********************************************************
4
Copyright (C) 2008 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
***********************************************************/
19
33
/* Upload the following files from the fosstester home directory:
34
* - simpletest_1.0.1.tar.gz
35
* - gplv2.1
36
* - Affero-v1.0
37
* - http://www.gnu.org/licenses/gpl-3.0.txt
38
* - http://www.gnu.org/licenses/agpl-3.0.txt
39
*/
40
41
42
require_once
'/usr/local/simpletest/unit_tester.php'
;
43
require_once
'/usr/local/simpletest/web_tester.php'
;
44
require_once
'/usr/local/simpletest/reporter.php'
;
45
require_once
'/usr/local/simpletest/extensions/junit_xml_reporter.php'
;
46
require_once (
'TestEnvironment.php'
);
47
require_once(
'testClasses/timer.php'
);
48
49
global $URL;
50
$start =
new
timer
();
51
$Svn = `svnversion`;
52
$date = date(
'Y-m-d'
);
53
$time = date(
'h:i:s-a'
);
54
print
"Starting Upload-Prep Tests on: "
. $date .
" at "
. $time .
"\n"
;
55
print
"Using Svn Version:$Svn\n"
;
56
$test =
new
TestSuite(
'Fossology Repo UI Upload-Prep Test'
);
57
$test->addTestFile(
'uptd.php'
);
58
59
$test->run(
new
JUnitXMLReporter
());
60
print
"<pre>Ending Upload-Prep at: "
. date(
'r'
) .
"</pre>\n"
;
61
$elapseTime = $start->TimeAgo($start->getStartTime());
62
print
"<pre>The Upload-Prep Tests took {$elapseTime}to run</pre>\n"
;
63
?>
JUnitXMLReporter
Definition:
junit_xml_reporter.php:22
timer
Definition:
timer.php:42
src
testing
utils
upload1File.php
Generated on Mon Jun 29 2020 12:03:44 for FOSSology by
1.8.11