20 $libPhpDir = dirname(dirname(__DIR__)) .
"/lib/php/Test";
22 require_once(__DIR__ .
"/TestDbFactory.php");
23 require_once($libPhpDir.
"/TestInstaller.php");
27 $sysConfDir = $testDbFactory->setupTestDb(
"fosstest" . time());
30 $testInstaller->init();
32 $opts = getopt(
"d:f", array());
33 if (array_key_exists(
"d", $opts)) {
35 foreach (explode(
",", $srcDir) as $dir) {
37 $testInstaller->install($dir);
41 if (array_key_exists(
"f", $opts)) {
42 require_once($libPhpDir.
"/TestPgDb.php");
44 $testPgDb->createSequences(array(),
true);
45 $testPgDb->createPlainTables(array(),
true);
46 $testPgDb->createInheritedTables(array());
47 $testPgDb->alterTables(array(),
true);
48 $testPgDb->createInheritedTables(array(
'uploadtree_a'));