本文整理汇总了C++中RUN_ALL_TESTS函数的典型用法代码示例。如果您正苦于以下问题:C++ RUN_ALL_TESTS函数的具体用法?C++ RUN_ALL_TESTS怎么用?C++ RUN_ALL_TESTS使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了RUN_ALL_TESTS函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: main
int main(int ac, char* av[])
{
testing::InitGoogleTest(&ac, av);
return RUN_ALL_TESTS();
}
示例2: main
int main(int argc, char **argv) {
google::InitGoogleLogging(argv[0]);
testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
示例3: main
int main(int argc, char** argv) {
heron::common::Initialize(argv[0]);
testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
示例4: main
int main(int argc, char *argv[])
{
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS() ? TEST_OUTPUT : 0;
}
示例5: main
int main(int argc, char **argv) {
testing::InitGoogleTest(&argc, argv);
int res = RUN_ALL_TESTS();
//getchar();
return res;
}
示例6: main
int main(int argc, char **argv) {
// feenableexcept(FE_DIVBYZERO);
// feenableexcept(FE_OVERFLOW);
// feenableexcept(FE_INVALID);
//
// signal(SIGSEGV, bt_sighandler);
// signal(SIGFPE, bt_sighandler);
// signal(SIGTERM, bt_sighandler);
// signal(SIGINT, bt_sighandler);
// signal(SIGABRT, bt_sighandler);
#ifdef HAVE_MPI
MPI_Init(&argc, &argv);
int num_procs;
sip::SIPMPIUtils::check_err(MPI_Comm_size(MPI_COMM_WORLD, &num_procs));
if (num_procs < 2) {
std::cerr << "Please run this test with at least 2 mpi ranks"
<< std::endl;
return -1;
}
sip::SIPMPIUtils::set_error_handler();
sip::SIPMPIAttr &sip_mpi_attr = sip::SIPMPIAttr::get_instance();
attr = &sip_mpi_attr;
#endif
#ifdef HAVE_TAU
TAU_PROFILE_SET_NODE(0);
TAU_STATIC_PHASE_START("SIP Main");
#endif
// sip::check(sizeof(int) >= 4, "Size of integer should be 4 bytes or more");
// sip::check(sizeof(double) >= 8, "Size of double should be 8 bytes or more");
// sip::check(sizeof(long long) >= 8, "Size of long long should be 8 bytes or more");
//
// int num_procs;
// sip::SIPMPIUtils::check_err(MPI_Comm_size(MPI_COMM_WORLD, &num_procs));
//
// if (num_procs < 2){
// std::cerr<<"Please run this test with at least 2 mpi ranks"<<std::endl;
// return -1;
// }
//
// sip::SIPMPIUtils::set_error_handler();
// sip::SIPMPIAttr &sip_mpi_attr = sip::SIPMPIAttr::get_instance();
//
printf("Running main() from test_simple.cpp\n");
testing::InitGoogleTest(&argc, argv);
int result = RUN_ALL_TESTS();
#ifdef HAVE_TAU
TAU_STATIC_PHASE_STOP("SIP Main");
#endif
#ifdef HAVE_MPI
MPI_Finalize();
#endif
return result;
}
示例7: main
int main(int argc, char **argv) {
::testing::InitGoogleTest(&argc, argv);
test_env = new btree_test_env();
::testing::AddGlobalTestEnvironment(test_env);
return RUN_ALL_TESTS();
}
示例8: main
int main(int argc, char** argv)
{
testing::InitGoogleTest(&argc, argv);
ros::init(argc, argv, "TestNode");
return RUN_ALL_TESTS();
}
示例9: main
int main(int argc, char **argv){
testing::InitGoogleTest(&argc, argv);
ros::init (argc, argv, "move_arm_regression_test");
return RUN_ALL_TESTS();
}
示例10: main
int main(int argc, char **argv){
// Run all the tests that were declared with TEST()
testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
示例11: main
int main(int argc, char *argv[]) {
testing::InitGoogleMock(&argc, argv);
return RUN_ALL_TESTS();
}
示例12: main
int main(int argc, char** argv) {
::testing::InitGoogleTest(&argc, argv);
//::testing::GTEST_FLAG(filter) = "*equal_energy*";
return RUN_ALL_TESTS();
}
示例13: main
int main(int argc, char** argv) {
testing::InitGoogleTest(&argc, argv);
HPHP::init_for_unit_test();
return RUN_ALL_TESTS();
}
示例14: main
int main(int argc, char **argv) {
std::cout << "Running ffmpegthumbnailer tests" << std::endl;
testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
示例15: main
int main(int argc, char **argv) {
printf("Running main() from sample1\n");
testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}