1<?php 2 3require_once('simpletest/unit_tester.php'); 4require_once('simpletest/reporter.php'); 5 6require_once('../include/lib/common.lib.php'); 7require_once('../include/base.lib.php'); 8 9define('DEBUG', false); 10define('PROFILE', false); 11define('CONFIG_ONLY_SELECT', false); 12define('CONFIG_TIMESTAMP_FILTER', false); 13define('CONFIG_DATABASE', false); 14define('CONFIG_DATABASE_LIST', false); 15define('CONFIG_DATABASE_REGEXP', false); 16define('CONFIG_USER', false); 17define('CONFIG_USER_LIST', false); 18define('CONFIG_USER_REGEXP', false); 19define('CONFIG_SYSLOG_IDENTITY', 'postgres'); 20define('CONFIG_KEEP_FORMATTING', 1); 21 22ini_set('error_reporting', 2039); 23 24$stderr = fopen('php://stderr', 'w'); 25 26$commonTests = &new GroupTest('Common tests'); 27 28$commonTests->addTestFile('TestRegExp.class.php'); 29//$commonTests->addTestFile('TestProfiler.class.php'); 30$commonTests->addTestFile('TestGenericLogReader.class.php'); 31$commonTests->addTestFile('TestLogObject.class.php'); 32$commonTests->addTestFile('TestQueryLogObject.class.php'); 33$commonTests->addTestFile('TestErrorLogObject.class.php'); 34$commonTests->addTestFile('TestLogStream.class.php'); 35$commonTests->addTestFile('TestSlowestQueryList.class.php'); 36$commonTests->run(new TextReporter()); 37 38 39$postgresqlTests = &new GroupTest('PostgreSQL tests'); 40$postgresqlTests->addTestFile('TestSyslogPostgreSQLParser.class.php'); 41$postgresqlTests->addTestFile('TestLogFiles.class.php'); 42$postgresqlTests->run(new TextReporter()); 43 44fclose($stderr); 45 46?>