Beispiel #1
0
int main()
{
  CHECK_SECTION("BGPStream",
                test_bgpstream() == 0);

#ifdef WITH_DATA_INTERFACE_SINGLEFILE
  CHECK_SECTION("singlefile data interface",
                test_singlefile() == 0);
#else
  SKIPPED_SECTION("singlefile data interface");
#endif

#ifdef WITH_DATA_INTERFACE_CSVFILE
  CHECK_SECTION("csvfile data interface",
                test_csvfile() == 0);
#else
  SKIPPED_SECTION("csvfile data interface");
#endif

#ifdef WITH_DATA_INTERFACE_SQLITE
  CHECK_SECTION("sqlite data interface",
                test_sqlite() == 0);
#else
  SKIPPED_SECTION("sqlite data interface");
#endif

#ifdef WITH_DATA_INTERFACE_BROKER
  CHECK_SECTION("broker data interface",
                test_broker() == 0);
#else
  SKIPPED_SECTION("broker data interface");
#endif

  return 0;
}
Beispiel #2
0
int main() {
    try {
        test_sqlite();
//        test_odbc();
//        test_postgres();
    } catch (const std::exception& e) {
        std::cout << e.what() << std::endl;
        return 1;
    }
    return 0;
}