private function setUpRepo() { $sysConf = $this->testDb->getFossSysConf(); $this->testInstaller = new TestInstaller($sysConf); $this->testInstaller->init(); $this->testInstaller->cpRepo(); $this->testInstaller->install($this->agentDir); }
function setUp() { $this->testDb = new TestPgDb('ununpackExceptional'); $this->agentDir = dirname(dirname(__DIR__)) . "/"; $sysConf = $this->testDb->getFossSysConf(); $this->testInstaller = new TestInstaller($sysConf); $this->testInstaller->init(); $this->testInstaller->install($this->agentDir); $this->testDb->createSequences(array(), true); $this->testDb->createPlainTables(array(), true); $this->testDb->alterTables(array(), true); }
protected function setUp() { $this->testDb = new TestPgDb("fossclitest"); $tables = array('users', 'upload', 'uploadtree_a', 'uploadtree', 'copyright', 'groups', 'group_user_member', 'agent', 'copyright_decision', 'copyright_ars', 'ars_master'); $this->testDb->createPlainTables($tables); $this->testDb->createInheritedTables(array('uploadtree_a')); $this->testDb->createInheritedArsTables(array('copyright')); $this->testDb->insertData($tables); $sysConf = $this->testDb->getFossSysConf(); $this->fo_copyright_list_path = dirname(__DIR__) . '/fo_copyright_list -c ' . $sysConf; $this->testInstaller = new TestInstaller($sysConf); $this->testInstaller->init(); }
protected function setUp() { $this->testDb = new TestPgDb("nomosfun" . time()); $this->agentDir = dirname(dirname(__DIR__)); $this->testdir = dirname(dirname(__DIR__)) . "/agent_tests/testdata/NomosTestfiles/"; $sysConf = $this->testDb->getFossSysConf(); $this->testInstaller = new TestInstaller($sysConf); $this->testInstaller->init(); $this->testInstaller->install($this->agentDir); $this->testDb->createSequences(array('license_ref_rf_pk_seq'), false); $this->testDb->createPlainTables(array('agent', 'license_ref'), false); $this->testDb->alterTables(array('license_ref'), false); }
function setUp() { global $TEST_DATA_PATH; global $TEST_RESULT_PATH; if (empty($TEST_DATA_PATH) || empty($TEST_RESULT_PATH)) { $this->markTestSkipped(); } $this->testDb = new TestPgDb('ununpackNormal'); $this->agentDir = dirname(dirname(__DIR__)) . "/"; $this->ununpack = $this->agentDir . "/agent/ununpack"; $sysConf = $this->testDb->getFossSysConf(); $this->testInstaller = new TestInstaller($sysConf); $this->testInstaller->init(); $this->testInstaller->install($this->agentDir); $this->testDb->createSequences(array(), true); $this->testDb->createPlainTables(array(), true); $this->testDb->alterTables(array(), true); }