9 $libPhpDir = dirname(dirname(__DIR__)) .
"/lib/php/Test";
11 require_once(__DIR__ .
"/TestDbFactory.php");
12 require_once($libPhpDir.
"/TestInstaller.php");
16 $sysConfDir = $testDbFactory->setupTestDb(
"fosstest" . time());
19 $testInstaller->init();
21 $opts = getopt(
"d:f", array());
22 if (array_key_exists(
"d", $opts)) {
24 foreach (explode(
",", $srcDir) as $dir) {
26 $testInstaller->install($dir);
30 if (array_key_exists(
"f", $opts)) {
31 require_once($libPhpDir.
"/TestPgDb.php");
33 $testPgDb->createSequences(array(),
true);
34 $testPgDb->createPlainTables(array(),
true);
35 $testPgDb->createInheritedTables(array());
36 $testPgDb->alterTables(array(),
true);
37 $testPgDb->createInheritedTables(array(
'uploadtree_a'));