Beispiel #1
0
int
main (void)
{
  int number_failed = 0;

  o_set_log_file ("check_oml2.log");
  SRunner* sr = srunner_create (omlvalue_suite());
  srunner_add_suite (sr, bswap_suite ());
  srunner_add_suite (sr, mbuf_suite ());
  srunner_add_suite (sr, cbuf_suite ());
  srunner_add_suite (sr, marshal_suite ());
  srunner_add_suite (sr, api_suite ());
  srunner_add_suite (sr, writers_suite ());
  srunner_add_suite (sr, filters_suite ());
  srunner_add_suite (sr, util_suite ());
  srunner_add_suite (sr, log_suite ());

  srunner_run_all (sr, CK_NORMAL);
  number_failed += srunner_ntests_failed (sr);
  srunner_free (sr);
  return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
}
Beispiel #2
0
int
main (void)
{
  int number_failed = 0;

  o_set_log_file ("check_liboml2_oml.log");
  SRunner* sr = srunner_create (omlvalue_suite());
  srunner_add_suite (sr, bswap_suite ());
  srunner_add_suite (sr, mbuf_suite ());
  srunner_add_suite (sr, cbuf_suite ());
  srunner_add_suite (sr, writers_suite ());
  srunner_add_suite (sr, filters_suite ());
  srunner_add_suite (sr, api_suite ());
  srunner_add_suite (sr, config_suite ());
  /* The log_suite has to be last, lest it messes up logging for suites
   * following it */
  srunner_add_suite (sr, log_suite ());

  srunner_run_all (sr, CK_ENV);
  number_failed += srunner_ntests_failed (sr);
  srunner_free (sr);
  return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
}