Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
googletest
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
googletest
Commits
677df883
Commit
677df883
authored
Aug 02, 2018
by
Gennadiy Civil
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmake test fixes
parent
b7244ff3
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
28 additions
and
28 deletions
+28
-28
CMakeLists.txt
googletest/CMakeLists.txt
+12
-12
Makefile.am
googletest/Makefile.am
+11
-11
googletest-catch-exceptions-test.py
googletest/test/googletest-catch-exceptions-test.py
+2
-2
googletest-catch-exceptions-test_.cc
googletest/test/googletest-catch-exceptions-test_.cc
+1
-1
googletest-output-test_.cc
googletest/test/googletest-output-test_.cc
+1
-1
googletest-throw-on-failure-test.py
googletest/test/googletest-throw-on-failure-test.py
+1
-1
No files found.
googletest/CMakeLists.txt
View file @
677df883
...
...
@@ -250,7 +250,7 @@ if (gtest_build_tests)
# Python tests.
cxx_executable
(
googletest-break-on-failure-unittest_ test gtest
)
py_test
(
g
test_break_on_failure_
unittest
)
py_test
(
g
oogletest-break-on-failure-
unittest
)
# Visual Studio .NET 2003 does not support STL with exceptions disabled.
if
(
NOT MSVC OR MSVC_VERSION GREATER 1310
)
# 1310 is Visual Studio .NET 2003
...
...
@@ -266,28 +266,28 @@ if (gtest_build_tests)
"
${
cxx_exception
}
"
gtest_main
test/googletest-catch-exceptions-test_.cc
)
py_test
(
g
test_catch_exceptions_
test
)
py_test
(
g
oogletest-catch-exceptions-
test
)
cxx_executable
(
googletest-color-test_ test gtest
)
py_test
(
g
test_color_
test
)
py_test
(
g
oogletest-color-
test
)
cxx_executable
(
googletest-env-var-test_ test gtest
)
py_test
(
g
test_env_var_
test
)
py_test
(
g
oogletest-env-var-
test
)
cxx_executable
(
googletest-filter-unittest_ test gtest
)
py_test
(
g
test_filter_
unittest
)
py_test
(
g
oogletest-filter-
unittest
)
cxx_executable
(
gtest_help_test_ test gtest_main
)
py_test
(
gtest_help_test
)
cxx_executable
(
googletest-list-tests-unittest_ test gtest
)
py_test
(
g
test_list_tests_
unittest
)
py_test
(
g
oogletest-list-tests-
unittest
)
cxx_executable
(
googletest-output-test_ test gtest
)
py_test
(
g
test_output_
test --no_stacktrace_support
)
py_test
(
g
oogletest-output-
test --no_stacktrace_support
)
cxx_executable
(
googletest-shuffle-test_ test gtest
)
py_test
(
g
test_shuffle_
test
)
py_test
(
g
oogletest-shuffle-
test
)
# MSVC 7.1 does not support STL with exceptions disabled.
if
(
NOT MSVC OR MSVC_VERSION GREATER 1310
)
...
...
@@ -295,18 +295,18 @@ if (gtest_build_tests)
set_target_properties
(
googletest-throw-on-failure-test_
PROPERTIES
COMPILE_FLAGS
"
${
cxx_no_exception
}
"
)
py_test
(
g
test_throw_on_failure_
test
)
py_test
(
g
oogletest-throw-on-failure-
test
)
endif
()
cxx_executable
(
googletest-uninitialized-test_ test gtest
)
py_test
(
g
test_uninitialized_
test
)
py_test
(
g
oogletest-uninitialized-
test
)
cxx_executable
(
gtest_xml_outfile1_test_ test gtest_main
)
cxx_executable
(
gtest_xml_outfile2_test_ test gtest_main
)
py_test
(
gtest_xml_outfiles_test
)
py_test
(
g
test_json_outfiles_
test
)
py_test
(
g
oogletest-json-outfiles-
test
)
cxx_executable
(
gtest_xml_output_unittest_ test gtest
)
py_test
(
gtest_xml_output_unittest --no_stacktrace_support
)
py_test
(
g
test_json_output_
unittest
)
py_test
(
g
oogletest-json-output-
unittest
)
endif
()
googletest/Makefile.am
View file @
677df883
...
...
@@ -97,19 +97,19 @@ EXTRA_DIST += \
# Python tests that we don't run.
EXTRA_DIST
+=
\
test
/g
test_break_on_failure_
unittest.py
\
test
/g
test_catch_exceptions_
test.py
\
test
/g
test_color_
test.py
\
test
/g
test_env_var_
test.py
\
test
/g
test_filter_
unittest.py
\
test
/g
oogletest-break-on-failure-
unittest.py
\
test
/g
oogletest-catch-exceptions-
test.py
\
test
/g
oogletest-color-
test.py
\
test
/g
oogletest-env-var-
test.py
\
test
/g
oogletest-filter-
unittest.py
\
test
/gtest_help_test.py
\
test
/g
test_list_tests_
unittest.py
\
test
/g
test_output_
test.py
\
test
/g
test_output_
test_golden_lin.txt
\
test
/g
test_shuffle_
test.py
\
test
/g
oogletest-list-tests-
unittest.py
\
test
/g
oogletest-output-
test.py
\
test
/g
oogletest-output-
test_golden_lin.txt
\
test
/g
oogletest-shuffle-
test.py
\
test
/gtest_test_utils.py
\
test
/g
test_throw_on_failure_
test.py
\
test
/g
test_uninitialized_
test.py
\
test
/g
oogletest-throw-on-failure-
test.py
\
test
/g
oogletest-uninitialized-
test.py
\
test
/gtest_xml_outfiles_test.py
\
test
/gtest_xml_output_unittest.py
\
test
/gtest_xml_test_utils.py
...
...
googletest/test/googletest-catch-exceptions-test.py
View file @
677df883
...
...
@@ -30,7 +30,7 @@
"""Tests Google Test's exception catching behavior.
This script invokes g
test_catch_exceptions_
test_ and
This script invokes g
oogletest-catch-exceptions-
test_ and
gtest_catch_exceptions_ex_test_ (programs written with
Google Test) and verifies their output.
"""
...
...
@@ -50,7 +50,7 @@ FILTER_FLAG = FLAG_PREFIX + 'filter'
EX_EXE_PATH
=
gtest_test_utils
.
GetTestExecutablePath
(
'googletest_catch_exceptions_ex_test_'
)
# Path to the g
test_catch_exceptions_
test_ binary, compiled with
# Path to the g
oogletest-catch-exceptions-
test_ binary, compiled with
# exceptions disabled.
EXE_PATH
=
gtest_test_utils
.
GetTestExecutablePath
(
'googletest_catch_exceptions_no_ex_test_'
)
...
...
googletest/test/googletest-catch-exceptions-test_.cc
View file @
677df883
...
...
@@ -30,7 +30,7 @@
// Author: vladl@google.com (Vlad Losev)
//
// Tests for Google Test itself. Tests in this file throw C++ or SEH
// exceptions, and the output is verified by g
test_catch_exceptions_
test.py.
// exceptions, and the output is verified by g
oogletest-catch-exceptions-
test.py.
#include "gtest/gtest.h"
...
...
googletest/test/googletest-output-test_.cc
View file @
677df883
...
...
@@ -29,7 +29,7 @@
//
// The purpose of this file is to generate Google Test output under
// various conditions. The output will then be verified by
// g
test_output_
test.py to ensure that Google Test generates the
// g
oogletest-output-
test.py to ensure that Google Test generates the
// desired messages. Therefore, most tests in this file are MEANT TO
// FAIL.
//
...
...
googletest/test/googletest-throw-on-failure-test.py
View file @
677df883
...
...
@@ -76,7 +76,7 @@ def Run(command):
# The tests. TODO(wan@google.com): refactor the class to share common
# logic with code in g
test_break_on_failure_
unittest.py.
# logic with code in g
oogletest-break-on-failure-
unittest.py.
class
ThrowOnFailureTest
(
gtest_test_utils
.
TestCase
):
"""Tests the throw-on-failure mode."""
...
...
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