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/*
20 * Runner script that runs the web tests
21 */
22// set the path for where simpletest is
23$path = '/usr/share/php' . PATH_SEPARATOR;
24set_include_path(get_include_path() . PATH_SEPARATOR . $path);
25
26/* simpletest includes */
27require_once '/usr/local/simpletest/unit_tester.php';
28require_once '/usr/local/simpletest/web_tester.php';
29require_once '/usr/local/simpletest/reporter.php';
30
31$test = new TestSuite('Fossology Repo UI tests');
32$test->addTestFile('AboutMenuTest.php');
33$test->addTestFile('login.php');
34exit ($test->run(new TextReporter()) ? 0 : 1);
35
36
37?>
38