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
677df883
Commit
677df883
authored
Aug 02, 2018
by
Gennadiy Civil
Browse files
cmake test fixes
parent
b7244ff3
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
28 additions
and
28 deletions
+28
-28
googletest/CMakeLists.txt
googletest/CMakeLists.txt
+12
-12
googletest/Makefile.am
googletest/Makefile.am
+11
-11
googletest/test/googletest-catch-exceptions-test.py
googletest/test/googletest-catch-exceptions-test.py
+2
-2
googletest/test/googletest-catch-exceptions-test_.cc
googletest/test/googletest-catch-exceptions-test_.cc
+1
-1
googletest/test/googletest-output-test_.cc
googletest/test/googletest-output-test_.cc
+1
-1
googletest/test/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
(
gtest
_
break
_
on
_
failure
_
unittest
)
py_test
(
g
oogle
test
-
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
(
gtest
_
catch
_
exceptions
_
test
)
py_test
(
g
oogle
test
-
catch
-
exceptions
-
test
)
cxx_executable
(
googletest-color-test_ test gtest
)
py_test
(
gtest
_
color
_
test
)
py_test
(
g
oogle
test
-
color
-
test
)
cxx_executable
(
googletest-env-var-test_ test gtest
)
py_test
(
gtest
_
env
_
var
_
test
)
py_test
(
g
oogle
test
-
env
-
var
-
test
)
cxx_executable
(
googletest-filter-unittest_ test gtest
)
py_test
(
gtest
_
filter
_
unittest
)
py_test
(
g
oogle
test
-
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
(
gtest
_
list
_
tests
_
unittest
)
py_test
(
g
oogle
test
-
list
-
tests
-
unittest
)
cxx_executable
(
googletest-output-test_ test gtest
)
py_test
(
gtest
_
output
_
test --no_stacktrace_support
)
py_test
(
g
oogle
test
-
output
-
test --no_stacktrace_support
)
cxx_executable
(
googletest-shuffle-test_ test gtest
)
py_test
(
gtest
_
shuffle
_
test
)
py_test
(
g
oogle
test
-
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
(
gtest
_
throw
_
on
_
failure
_
test
)
py_test
(
g
oogle
test
-
throw
-
on
-
failure
-
test
)
endif
()
cxx_executable
(
googletest-uninitialized-test_ test gtest
)
py_test
(
gtest
_
uninitialized
_
test
)
py_test
(
g
oogle
test
-
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
(
gtest
_
json
_
outfiles
_
test
)
py_test
(
g
oogle
test
-
json
-
outfiles
-
test
)
cxx_executable
(
gtest_xml_output_unittest_ test gtest
)
py_test
(
gtest_xml_output_unittest --no_stacktrace_support
)
py_test
(
gtest
_
json
_
output
_
unittest
)
py_test
(
g
oogle
test
-
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
/gtest
_
break
_
on
_
failure
_
unittest.py
\
test
/gtest
_
catch
_
exceptions
_
test.py
\
test
/gtest
_
color
_
test.py
\
test
/gtest
_
env
_
var
_
test.py
\
test
/gtest
_
filter
_
unittest.py
\
test
/g
oogle
test
-
break
-
on
-
failure
-
unittest.py
\
test
/g
oogle
test
-
catch
-
exceptions
-
test.py
\
test
/g
oogle
test
-
color
-
test.py
\
test
/g
oogle
test
-
env
-
var
-
test.py
\
test
/g
oogle
test
-
filter
-
unittest.py
\
test
/gtest_help_test.py
\
test
/gtest
_
list
_
tests
_
unittest.py
\
test
/gtest
_
output
_
test.py
\
test
/gtest
_
output
_
test_golden_lin.txt
\
test
/gtest
_
shuffle
_
test.py
\
test
/g
oogle
test
-
list
-
tests
-
unittest.py
\
test
/g
oogle
test
-
output
-
test.py
\
test
/g
oogle
test
-
output
-
test_golden_lin.txt
\
test
/g
oogle
test
-
shuffle
-
test.py
\
test
/gtest_test_utils.py
\
test
/gtest
_
throw
_
on
_
failure
_
test.py
\
test
/gtest
_
uninitialized
_
test.py
\
test
/g
oogle
test
-
throw
-
on
-
failure
-
test.py
\
test
/g
oogle
test
-
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 gtest
_
catch
_
exceptions
_
test_ and
This script invokes g
oogle
test
-
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 gtest
_
catch
_
exceptions
_
test_ binary, compiled with
# Path to the g
oogle
test
-
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 gtest
_
catch
_
exceptions
_
test.py.
// exceptions, and the output is verified by g
oogle
test
-
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
// gtest
_
output
_
test.py to ensure that Google Test generates the
// g
oogle
test
-
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 gtest
_
break
_
on
_
failure
_
unittest.py.
# logic with code in g
oogle
test
-
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