Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
yangql
googletest
Commits
f3511bf1
Commit
f3511bf1
authored
Aug 02, 2018
by
Gennadiy Civil
Browse files
cleaning up and adding test changes to CMake
parent
bbc0ac9b
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
24 additions
and
24 deletions
+24
-24
googletest/CMakeLists.txt
googletest/CMakeLists.txt
+4
-4
googletest/Makefile.am
googletest/Makefile.am
+12
-12
googletest/test/BUILD.bazel
googletest/test/BUILD.bazel
+1
-1
googletest/test/googletest-param-test2-test.cc
googletest/test/googletest-param-test2-test.cc
+3
-3
googletest/test/googletest-test2_test.cc
googletest/test/googletest-test2_test.cc
+3
-3
googletest/test/gtest_unittest.cc
googletest/test/gtest_unittest.cc
+1
-1
No files found.
googletest/CMakeLists.txt
View file @
f3511bf1
...
...
@@ -239,11 +239,11 @@ if (gtest_build_tests)
src/gtest-all.cc src/gtest_main.cc
)
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/g
oogle
test-tuple
-
test.cc
)
cxx_test_with_flags
(
gtest_use_own_tuple_test
"
${
cxx_use_own_tuple
}
"
gtest_main_use_own_tuple
test/gtest-param-test
_
test.cc test/gtest-param-test2_test.cc
)
test/g
oogle
test-param-test
-
test.cc test/gtest-param-test2_test.cc
)
endif
()
############################################################
...
...
@@ -258,14 +258,14 @@ if (gtest_build_tests)
gtest_catch_exceptions_no_ex_test_
"
${
cxx_no_exception
}
"
gtest_main_no_exception
test/gtest
_
catch
_
exceptions
_
test_.cc
)
test/g
oogle
test
-
catch
-
exceptions
-
test_.cc
)
endif
()
cxx_executable_with_flags
(
gtest_catch_exceptions_ex_test_
"
${
cxx_exception
}
"
gtest_main
test/gtest
_
catch
_
exceptions
_
test_.cc
)
test/g
oogle
test
-
catch
-
exceptions
-
test_.cc
)
py_test
(
gtest_catch_exceptions_test
)
cxx_executable
(
gtest_color_test_ test gtest
)
...
...
googletest/Makefile.am
View file @
f3511bf1
...
...
@@ -55,38 +55,38 @@ EXTRA_DIST += \
test
/gtest-options_test.cc
\
test
/gtest-param-test2_test.cc
\
test
/gtest-param-test2_test.cc
\
test
/gtest-param-test
_
test.cc
\
test
/gtest-param-test
_
test.cc
\
test
/g
oogle
test-param-test
-
test.cc
\
test
/g
oogle
test-param-test
-
test.cc
\
test
/gtest-param-test_test.h
\
test
/gtest-port_test.cc
\
test
/gtest_premature_exit_test.cc
\
test
/gtest-printers_test.cc
\
test
/gtest-test-part_test.cc
\
test
/gtest-tuple
_
test.cc
\
test
/g
oogle
test-tuple
-
test.cc
\
test
/gtest-typed-test2_test.cc
\
test
/gtest-typed-test_test.cc
\
test
/gtest-typed-test_test.h
\
test
/gtest-unittest-api_test.cc
\
test
/gtest
_
break
_
on
_
failure
_
unittest_.cc
\
test
/gtest
_
catch
_
exceptions
_
test_.cc
\
test
/gtest
_
color
_
test_.cc
\
test
/g
oogle
test
-
break
-
on
-
failure
-
unittest_.cc
\
test
/g
oogle
test
-
catch
-
exceptions
-
test_.cc
\
test
/g
oogle
test
-
color
-
test_.cc
\
test
/gtest_env_var_test_.cc
\
test
/gtest_environment_test.cc
\
test
/gtest
_
filter
_
unittest_.cc
\
test
/g
oogle
test
-
filter
-
unittest_.cc
\
test
/gtest_help_test_.cc
\
test
/gtest
_
list
_
tests
_
unittest_.cc
\
test
/g
oogle
test
-
list
-
tests
-
unittest_.cc
\
test
/gtest_main_unittest.cc
\
test
/gtest_no_test_unittest.cc
\
test
/gtest
_
output
_
test_.cc
\
test
/g
oogle
test
-
output
-
test_.cc
\
test
/gtest_pred_impl_unittest.cc
\
test
/gtest_prod_test.cc
\
test
/gtest_repeat_test.cc
\
test
/gtest
_
shuffle
_
test_.cc
\
test
/g
oogle
test
-
shuffle
-
test_.cc
\
test
/gtest_sole_header_test.cc
\
test
/gtest_stress_test.cc
\
test
/gtest_throw_on_failure_ex_test.cc
\
test
/gtest
_
throw
_
on
_
failure
_
test_.cc
\
test
/gtest
_
uninitialized
_
test_.cc
\
test
/g
oogle
test
-
throw
-
on
-
failure
-
test_.cc
\
test
/g
oogle
test
-
uninitialized
-
test_.cc
\
test
/gtest_unittest.cc
\
test
/gtest_unittest.cc
\
test
/gtest_xml_outfile1_test_.cc
\
...
...
googletest/test/BUILD.bazel
View file @
f3511bf1
...
...
@@ -68,7 +68,7 @@ cc_test(
"gtest-death-test_ex_test.cc"
,
"gtest-listener_test.cc"
,
"gtest-unittest-api_test.cc"
,
"gtest-param-test
_
test.cc"
,
"g
oogle
test-param-test
-
test.cc"
,
"googletest-catch-exceptions-test_.cc"
,
"googletest-color-test_.cc"
,
"googletest-env-var-test_.cc"
,
...
...
googletest/test/googletest-param-test2-test.cc
View file @
f3511bf1
...
...
@@ -40,11 +40,11 @@ using ::testing::internal::ParamGenerator;
// Tests that generators defined in a different translation unit
// are functional. The test using extern_gen is defined
// in gtest-param-test
_
test.cc.
// in g
oogle
test-param-test
-
test.cc.
ParamGenerator
<
int
>
extern_gen
=
Values
(
33
);
// 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 g
oogle
test-param-test
-
test.cc
// and ExternalInstantiationTest fixture class is defined in
// gtest-param-test_test.h.
INSTANTIATE_TEST_CASE_P
(
MultiplesOf33
,
...
...
@@ -53,7 +53,7 @@ INSTANTIATE_TEST_CASE_P(MultiplesOf33,
// Tests that a parameterized test case can be instantiated
// in multiple translation units. Another instantiation is defined
// in gtest-param-test
_
test.cc and InstantiationInMultipleTranslaionUnitsTest
// in g
oogle
test-param-test
-
test.cc and InstantiationInMultipleTranslaionUnitsTest
// fixture is defined in gtest-param-test_test.h
INSTANTIATE_TEST_CASE_P
(
Sequence2
,
InstantiationInMultipleTranslaionUnitsTest
,
...
...
googletest/test/googletest-test2_test.cc
View file @
f3511bf1
...
...
@@ -40,11 +40,11 @@ using ::testing::internal::ParamGenerator;
// Tests that generators defined in a different translation unit
// are functional. The test using extern_gen_2 is defined
// in gtest-param-test
_
test.cc.
// in g
oogle
test-param-test
-
test.cc.
ParamGenerator
<
int
>
extern_gen_2
=
Values
(
33
);
// 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 g
oogle
test-param-test
-
test.cc
// and ExternalInstantiationTest fixture class is defined in
// gtest-param-test_test.h.
INSTANTIATE_TEST_CASE_P
(
MultiplesOf33
,
...
...
@@ -53,7 +53,7 @@ INSTANTIATE_TEST_CASE_P(MultiplesOf33,
// Tests that a parameterized test case can be instantiated
// in multiple translation units. Another instantiation is defined
// in gtest-param-test
_
test.cc and InstantiationInMultipleTranslaionUnitsTest
// in g
oogle
test-param-test
-
test.cc and InstantiationInMultipleTranslaionUnitsTest
// fixture is defined in gtest-param-test_test.h
INSTANTIATE_TEST_CASE_P
(
Sequence2
,
InstantiationInMultipleTranslaionUnitsTest
,
...
...
googletest/test/gtest_unittest.cc
View file @
f3511bf1
...
...
@@ -4689,7 +4689,7 @@ TEST(MacroTest, ADD_FAILURE_AT) {
// Unfortunately, we cannot verify that the failure message contains
// the right file path and line number the same way, as
// 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 g
oogle
test
-
output
-
test_.cc.
}
// Tests FAIL.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment