FOSSology  4.4.0
Open Source License Compliance by Open Source Software
Tweb.php
1 #!/usr/bin/php
2 <?php
3 /*
4  SPDX-FileCopyrightText: © 2008 Hewlett-Packard Development Company, L.P.
5 
6  SPDX-License-Identifier: GPL-2.0-only
7 */
8 /*
9  * Runner script that runs the web tests
10  */
11 // set the path for where simpletest is
12 $path = '/usr/share/php' . PATH_SEPARATOR;
13 set_include_path(get_include_path() . PATH_SEPARATOR . $path);
14 
15 /* simpletest includes */
16 require_once '/usr/local/simpletest/unit_tester.php';
17 require_once '/usr/local/simpletest/web_tester.php';
18 require_once '/usr/local/simpletest/reporter.php';
19 
20 $test = new TestSuite('Fossology Repo UI tests');
21 $test->addTestFile('AboutMenuTest.php');
22 $test->addTestFile('login.php');
23 exit ($test->run(new TextReporter()) ? 0 : 1);