示例#1
0
int
main (int argc,
      char *argv[])
{
   TestSuite suite;
   int ret;

   TestSuite_Init (&suite, "", argc, argv);

   test_atomic_install (&suite);
   test_bcon_basic_install (&suite);
   test_bcon_extract_install (&suite);
   test_bson_install (&suite);
   test_clock_install (&suite);
   test_error_install (&suite);
   test_endian_install (&suite);
   test_iso8601_install (&suite);
   test_iter_install (&suite);
   test_json_install (&suite);
   test_oid_install (&suite);
   test_reader_install (&suite);
   test_string_install (&suite);
   test_utf8_install (&suite);
   test_value_install (&suite);
   test_writer_install (&suite);

   ret = TestSuite_Run (&suite);

   TestSuite_Destroy (&suite);

   return ret;
}
示例#2
0
int
main (int argc,
      char *argv[])
{
   TestSuite suite;
   int ret;

   TestSuite_Init (&suite, "", argc, argv);

   test_atomic_install (&suite);
   test_bcon_basic_install (&suite);
   test_bcon_extract_install (&suite);
   test_bson_install (&suite);
   test_clock_install (&suite);
   test_error_install (&suite);
   test_endian_install (&suite);
   test_iso8601_install (&suite);
   test_iter_install (&suite);
   test_json_install (&suite);
   test_oid_install (&suite);
   test_reader_install (&suite);
   test_string_install (&suite);
   test_utf8_install (&suite);
   test_value_install (&suite);
   test_version_install (&suite);
   test_writer_install (&suite);
#ifdef BSON_EXPERIMENTAL_FEATURES
   test_decimal128_install (&suite);
   test_bson_type_install (&suite);
#endif

   ret = TestSuite_Run (&suite);

   TestSuite_Destroy (&suite);

   return ret;
}