cleaning up and adding test changes to CMake
This commit is contained in:
parent
bbc0ac9b1a
commit
f3511bf1c7
@ -239,11 +239,11 @@ if (gtest_build_tests)
|
|||||||
src/gtest-all.cc src/gtest_main.cc)
|
src/gtest-all.cc src/gtest_main.cc)
|
||||||
|
|
||||||
cxx_test_with_flags(gtest-tuple_test "${cxx_use_own_tuple}"
|
cxx_test_with_flags(gtest-tuple_test "${cxx_use_own_tuple}"
|
||||||
gtest_main_use_own_tuple test/gtest-tuple_test.cc)
|
gtest_main_use_own_tuple test/googletest-tuple-test.cc)
|
||||||
|
|
||||||
cxx_test_with_flags(gtest_use_own_tuple_test "${cxx_use_own_tuple}"
|
cxx_test_with_flags(gtest_use_own_tuple_test "${cxx_use_own_tuple}"
|
||||||
gtest_main_use_own_tuple
|
gtest_main_use_own_tuple
|
||||||
test/gtest-param-test_test.cc test/gtest-param-test2_test.cc)
|
test/googletest-param-test-test.cc test/gtest-param-test2_test.cc)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
############################################################
|
############################################################
|
||||||
@ -258,14 +258,14 @@ if (gtest_build_tests)
|
|||||||
gtest_catch_exceptions_no_ex_test_
|
gtest_catch_exceptions_no_ex_test_
|
||||||
"${cxx_no_exception}"
|
"${cxx_no_exception}"
|
||||||
gtest_main_no_exception
|
gtest_main_no_exception
|
||||||
test/gtest_catch_exceptions_test_.cc)
|
test/googletest-catch-exceptions-test_.cc)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
cxx_executable_with_flags(
|
cxx_executable_with_flags(
|
||||||
gtest_catch_exceptions_ex_test_
|
gtest_catch_exceptions_ex_test_
|
||||||
"${cxx_exception}"
|
"${cxx_exception}"
|
||||||
gtest_main
|
gtest_main
|
||||||
test/gtest_catch_exceptions_test_.cc)
|
test/googletest-catch-exceptions-test_.cc)
|
||||||
py_test(gtest_catch_exceptions_test)
|
py_test(gtest_catch_exceptions_test)
|
||||||
|
|
||||||
cxx_executable(gtest_color_test_ test gtest)
|
cxx_executable(gtest_color_test_ test gtest)
|
||||||
|
@ -55,38 +55,38 @@ EXTRA_DIST += \
|
|||||||
test/gtest-options_test.cc \
|
test/gtest-options_test.cc \
|
||||||
test/gtest-param-test2_test.cc \
|
test/gtest-param-test2_test.cc \
|
||||||
test/gtest-param-test2_test.cc \
|
test/gtest-param-test2_test.cc \
|
||||||
test/gtest-param-test_test.cc \
|
test/googletest-param-test-test.cc \
|
||||||
test/gtest-param-test_test.cc \
|
test/googletest-param-test-test.cc \
|
||||||
test/gtest-param-test_test.h \
|
test/gtest-param-test_test.h \
|
||||||
test/gtest-port_test.cc \
|
test/gtest-port_test.cc \
|
||||||
test/gtest_premature_exit_test.cc \
|
test/gtest_premature_exit_test.cc \
|
||||||
test/gtest-printers_test.cc \
|
test/gtest-printers_test.cc \
|
||||||
test/gtest-test-part_test.cc \
|
test/gtest-test-part_test.cc \
|
||||||
test/gtest-tuple_test.cc \
|
test/googletest-tuple-test.cc \
|
||||||
test/gtest-typed-test2_test.cc \
|
test/gtest-typed-test2_test.cc \
|
||||||
test/gtest-typed-test_test.cc \
|
test/gtest-typed-test_test.cc \
|
||||||
test/gtest-typed-test_test.h \
|
test/gtest-typed-test_test.h \
|
||||||
test/gtest-unittest-api_test.cc \
|
test/gtest-unittest-api_test.cc \
|
||||||
test/gtest_break_on_failure_unittest_.cc \
|
test/googletest-break-on-failure-unittest_.cc \
|
||||||
test/gtest_catch_exceptions_test_.cc \
|
test/googletest-catch-exceptions-test_.cc \
|
||||||
test/gtest_color_test_.cc \
|
test/googletest-color-test_.cc \
|
||||||
test/gtest_env_var_test_.cc \
|
test/gtest_env_var_test_.cc \
|
||||||
test/gtest_environment_test.cc \
|
test/gtest_environment_test.cc \
|
||||||
test/gtest_filter_unittest_.cc \
|
test/googletest-filter-unittest_.cc \
|
||||||
test/gtest_help_test_.cc \
|
test/gtest_help_test_.cc \
|
||||||
test/gtest_list_tests_unittest_.cc \
|
test/googletest-list-tests-unittest_.cc \
|
||||||
test/gtest_main_unittest.cc \
|
test/gtest_main_unittest.cc \
|
||||||
test/gtest_no_test_unittest.cc \
|
test/gtest_no_test_unittest.cc \
|
||||||
test/gtest_output_test_.cc \
|
test/googletest-output-test_.cc \
|
||||||
test/gtest_pred_impl_unittest.cc \
|
test/gtest_pred_impl_unittest.cc \
|
||||||
test/gtest_prod_test.cc \
|
test/gtest_prod_test.cc \
|
||||||
test/gtest_repeat_test.cc \
|
test/gtest_repeat_test.cc \
|
||||||
test/gtest_shuffle_test_.cc \
|
test/googletest-shuffle-test_.cc \
|
||||||
test/gtest_sole_header_test.cc \
|
test/gtest_sole_header_test.cc \
|
||||||
test/gtest_stress_test.cc \
|
test/gtest_stress_test.cc \
|
||||||
test/gtest_throw_on_failure_ex_test.cc \
|
test/gtest_throw_on_failure_ex_test.cc \
|
||||||
test/gtest_throw_on_failure_test_.cc \
|
test/googletest-throw-on-failure-test_.cc \
|
||||||
test/gtest_uninitialized_test_.cc \
|
test/googletest-uninitialized-test_.cc \
|
||||||
test/gtest_unittest.cc \
|
test/gtest_unittest.cc \
|
||||||
test/gtest_unittest.cc \
|
test/gtest_unittest.cc \
|
||||||
test/gtest_xml_outfile1_test_.cc \
|
test/gtest_xml_outfile1_test_.cc \
|
||||||
|
@ -68,7 +68,7 @@ cc_test(
|
|||||||
"gtest-death-test_ex_test.cc",
|
"gtest-death-test_ex_test.cc",
|
||||||
"gtest-listener_test.cc",
|
"gtest-listener_test.cc",
|
||||||
"gtest-unittest-api_test.cc",
|
"gtest-unittest-api_test.cc",
|
||||||
"gtest-param-test_test.cc",
|
"googletest-param-test-test.cc",
|
||||||
"googletest-catch-exceptions-test_.cc",
|
"googletest-catch-exceptions-test_.cc",
|
||||||
"googletest-color-test_.cc",
|
"googletest-color-test_.cc",
|
||||||
"googletest-env-var-test_.cc",
|
"googletest-env-var-test_.cc",
|
||||||
|
@ -40,11 +40,11 @@ using ::testing::internal::ParamGenerator;
|
|||||||
|
|
||||||
// Tests that generators defined in a different translation unit
|
// Tests that generators defined in a different translation unit
|
||||||
// are functional. The test using extern_gen is defined
|
// are functional. The test using extern_gen is defined
|
||||||
// in gtest-param-test_test.cc.
|
// in googletest-param-test-test.cc.
|
||||||
ParamGenerator<int> extern_gen = Values(33);
|
ParamGenerator<int> extern_gen = Values(33);
|
||||||
|
|
||||||
// Tests that a parameterized test case can be defined in one translation unit
|
// Tests that a parameterized test case can be defined in one translation unit
|
||||||
// and instantiated in another. The test is defined in gtest-param-test_test.cc
|
// and instantiated in another. The test is defined in googletest-param-test-test.cc
|
||||||
// and ExternalInstantiationTest fixture class is defined in
|
// and ExternalInstantiationTest fixture class is defined in
|
||||||
// gtest-param-test_test.h.
|
// gtest-param-test_test.h.
|
||||||
INSTANTIATE_TEST_CASE_P(MultiplesOf33,
|
INSTANTIATE_TEST_CASE_P(MultiplesOf33,
|
||||||
@ -53,7 +53,7 @@ INSTANTIATE_TEST_CASE_P(MultiplesOf33,
|
|||||||
|
|
||||||
// Tests that a parameterized test case can be instantiated
|
// Tests that a parameterized test case can be instantiated
|
||||||
// in multiple translation units. Another instantiation is defined
|
// in multiple translation units. Another instantiation is defined
|
||||||
// in gtest-param-test_test.cc and InstantiationInMultipleTranslaionUnitsTest
|
// in googletest-param-test-test.cc and InstantiationInMultipleTranslaionUnitsTest
|
||||||
// fixture is defined in gtest-param-test_test.h
|
// fixture is defined in gtest-param-test_test.h
|
||||||
INSTANTIATE_TEST_CASE_P(Sequence2,
|
INSTANTIATE_TEST_CASE_P(Sequence2,
|
||||||
InstantiationInMultipleTranslaionUnitsTest,
|
InstantiationInMultipleTranslaionUnitsTest,
|
||||||
|
@ -40,11 +40,11 @@ using ::testing::internal::ParamGenerator;
|
|||||||
|
|
||||||
// Tests that generators defined in a different translation unit
|
// Tests that generators defined in a different translation unit
|
||||||
// are functional. The test using extern_gen_2 is defined
|
// are functional. The test using extern_gen_2 is defined
|
||||||
// in gtest-param-test_test.cc.
|
// in googletest-param-test-test.cc.
|
||||||
ParamGenerator<int> extern_gen_2 = Values(33);
|
ParamGenerator<int> extern_gen_2 = Values(33);
|
||||||
|
|
||||||
// Tests that a parameterized test case can be defined in one translation unit
|
// Tests that a parameterized test case can be defined in one translation unit
|
||||||
// and instantiated in another. The test is defined in gtest-param-test_test.cc
|
// and instantiated in another. The test is defined in googletest-param-test-test.cc
|
||||||
// and ExternalInstantiationTest fixture class is defined in
|
// and ExternalInstantiationTest fixture class is defined in
|
||||||
// gtest-param-test_test.h.
|
// gtest-param-test_test.h.
|
||||||
INSTANTIATE_TEST_CASE_P(MultiplesOf33,
|
INSTANTIATE_TEST_CASE_P(MultiplesOf33,
|
||||||
@ -53,7 +53,7 @@ INSTANTIATE_TEST_CASE_P(MultiplesOf33,
|
|||||||
|
|
||||||
// Tests that a parameterized test case can be instantiated
|
// Tests that a parameterized test case can be instantiated
|
||||||
// in multiple translation units. Another instantiation is defined
|
// in multiple translation units. Another instantiation is defined
|
||||||
// in gtest-param-test_test.cc and InstantiationInMultipleTranslaionUnitsTest
|
// in googletest-param-test-test.cc and InstantiationInMultipleTranslaionUnitsTest
|
||||||
// fixture is defined in gtest-param-test_test.h
|
// fixture is defined in gtest-param-test_test.h
|
||||||
INSTANTIATE_TEST_CASE_P(Sequence2,
|
INSTANTIATE_TEST_CASE_P(Sequence2,
|
||||||
InstantiationInMultipleTranslaionUnitsTest,
|
InstantiationInMultipleTranslaionUnitsTest,
|
||||||
|
@ -4689,7 +4689,7 @@ TEST(MacroTest, ADD_FAILURE_AT) {
|
|||||||
// Unfortunately, we cannot verify that the failure message contains
|
// Unfortunately, we cannot verify that the failure message contains
|
||||||
// the right file path and line number the same way, as
|
// the right file path and line number the same way, as
|
||||||
// EXPECT_NONFATAL_FAILURE() doesn't get to see the file path and
|
// EXPECT_NONFATAL_FAILURE() doesn't get to see the file path and
|
||||||
// line number. Instead, we do that in gtest_output_test_.cc.
|
// line number. Instead, we do that in googletest-output-test_.cc.
|
||||||
}
|
}
|
||||||
|
|
||||||
// Tests FAIL.
|
// Tests FAIL.
|
||||||
|
Loading…
Reference in New Issue
Block a user