/* * \brief main test function */ int main( int argc, char *argv[] ) { create_db_repo_sysconf(1, "mimetype"); DBConfFile = get_dbconf(); int rc = focunit_main(argc, argv, "mimetype_Tests", suites) ; drop_db_repo_sysconf(get_db_name()); return rc; }
int main(int argc, char** argv) { fo_dbManager* dbManager = createTestEnvironment(AGENT_DIR, "ununpack", 1); if(!dbManager) { printf("Unable to connect to test database\n"); return 1; } DBConfFile = get_dbconf(); int rc = focunit_main(argc, argv, "ununpack_Tests", suites); dropTestEnvironment(dbManager, AGENT_DIR, "ununpack"); return(rc); }
int main(int argc, char** argv) { fo_dbManager* dbManager = NULL; if (argc > 1) { dbConf = argv[1]; } else { dbManager = createTestEnvironment("..", NULL, 0); dbConf = get_dbconf(); } const int returnValue = focunit_main(argc, argv, "lib c Tests", suites); if (dbManager) dropTestEnvironment(dbManager, ".."); return returnValue; }
/** * \brief main test function */ int main( int argc, char *argv[] ) { return focunit_main(argc, argv, "delagent_Tests", suites); }