20 require_once(__DIR__ .
"/TestDbFactory.php");
21 require_once(dirname(dirname(__DIR__)) .
"/lib/php/Test/TestInstaller.php");
25 $opts = getopt(
"c:d:", array());
27 if (array_key_exists(
"c", $opts)) {
28 $sysConfDir = $opts[
'c'];
34 $testInstaller->clear();
36 if (array_key_exists(
"d", $opts)) {
38 foreach (explode(
",", $srcDir) as $dir) {
40 $testInstaller->uninstall($dir);
45 $testDbFactory->purgeTestDb($sysConfDir);