FOSSology
3.2.0rc1
Open Source License Compliance by Open Source Software
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
uploadTestData.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 (
'TestEnvironment.php'
);
46
require_once(
'testClasses/timer.php'
);
47
48
global $URL;
49
$start =
new
timer
();
50
$Svn = `svnversion`;
51
$date = date(
'Y-m-d'
);
52
$time = date(
'h:i:s-a'
);
53
print
"Starting Upload-Prep Tests on: "
. $date .
" at "
. $time .
"\n"
;
54
print
"Using Svn Version:$Svn\n"
;
55
$test =
new
TestSuite(
'Fossology Repo UI Upload-Prep Test'
);
56
$test->addTestFile(
'uplTestData.php'
);
57
58
if
(TextReporter::inCli())
59
{
60
$results = $test->run(
new
TextReporter()) ? 0 : 1;
61
print
"Ending Upload-Prep Tests at: "
. date(
'r'
) .
"\n"
;
62
$elapseTime = $start->TimeAgo($start->getStartTime());
63
print
"The Upload-Prep Tests took {$elapseTime}to run\n"
;
64
exit ($results);
65
}
66
$test->run(
new
HtmlReporter());
67
print
"<pre>Ending Upload-Prep at: "
. date(
'r'
) .
"</pre>\n"
;
68
$elapseTime = $start->TimeAgo($start->getStartTime());
69
print
"<pre>The Upload-Prep Tests took {$elapseTime}to run</pre>\n"
;
70
?>
timer
Definition:
timer.php:42
src
testing
utils
uploadTestData.php
Generated on Mon Jun 29 2020 12:03:44 for FOSSology by
1.8.11