コード例 #1
0
ファイル: testRun.c プロジェクト: 7hibault/fossology
/*
 * \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;
}
コード例 #2
0
ファイル: run_tests.c プロジェクト: fossology/fossology
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);
}
コード例 #3
0
ファイル: testlibs.c プロジェクト: Dulow187/fossology
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;
}
コード例 #4
0
ファイル: testRun.c プロジェクト: erikd/fossology
/**
 * \brief  main test function
 */
int main( int argc, char *argv[] )
{
  return focunit_main(argc, argv, "delagent_Tests", suites);
}