aboutsummaryrefslogtreecommitdiff
path: root/BUILD.bazel
AgeCommit message (Collapse)Author
2021-04-26Googletest exportAbseil Team
Fix iOS logging issues in tests PiperOrigin-RevId: 370484087
2021-03-22Googletest exportAbseil Team
Print std::u8string, std::u16string, and std::u32string as string literals Previously, these types were printed as "{ U+123, U+456, U+789 }". However, printed output in that form is difficult to compare against any literals that might be defined in code. Instead, just treat these types like std::string and std::wstring, escaping non-ASCII characters with a hexadecimal escape sequence. The tests have also been updated to cover the new functionality: as a bonus, the tests now also pass with the MSVC toolchain. Internally, the code has been reorganized to primarily operate in terms of char32_t, under the assumption that char32_t will always be at least as big as wchar_t. While that assumption is currently true, perhaps it won't be in the future... PiperOrigin-RevId: 364033132
2021-03-14Use @platforms instead of @bazel_tools for windows constraintstudio-2024.1.3-alpha01studio-2024.1.2-canary1studio-2024.1.2-beta01studio-2024.1.2studio-2024.1.1-patch01studio-2024.1.1-canary8studio-2024.1.1-canary6studio-2024.1.1-beta2studio-2024.1.1studio-2023.3.1-rc2studio-2023.3.1-patch2studio-2023.3.1-canary8studio-2023.3.1-canary03studio-2023.3.1studio-2023.2.1-rc1studio-2023.2.1-canary05studio-2023.2.1-beta02studio-2023.2.1studio-2023.1.1-patch2studio-2023.1.1-patch1studio-2023.1.1-canary3studio-2023.1.1-canary11studio-2023.1.1-beta05studio-2023.1.1studio-ladybug-releasestudio-koala-releasestudio-koala-feature-releasestudio-2024.1.2Ezekiel Warren
2020-08-12Export LICENSERob Earhart
This makes it easier to include the license in redistributions, as required by the license.
2020-05-29specialize UniversalPrinter<> for std::any (without support for RTTI)Krystian Kuzniarek
2019-08-07Prepare for Bazel incompatible changesYannic Bonenberger
Fixes googletest for upcoming `--incompatible_load_cc_rules_from_bzl` (https://github.com/bazelbuild/bazel/issues/8743) and `--incompatible_load_python_rules_from_bzl` (https://github.com/bazelbuild/bazel/issues/9006). This change was automatically generated with `buildifier -lint=fix -warnings=all $(find . -name "BUILD" -o -name "BUILD.bazel" -o -name "*.bzl")`.
2019-04-29Googletest exportmisterg
Internal Change PiperOrigin-RevId: 245788057
2019-01-22Enable CI on Windows (appveyor) with BazelPavel Samolysov
Signed-off-by: Pavel Samolysov <samolisov@gmail.com>
2019-01-14Enable building as a shared library (dll) on Windows with BazelPavel Samolysov
While the google test library is being built as a shared library using Bazel, so that there is a rule like cc_test( name = "iterator_traits_test", linkstatic = 0, deps = ["@gtest//:gtest_main"], ... ) in a BUILD file, the following error appears on Windows: INFO: Found 1 test target... ERROR: C:/../external/gtest/BUILD.bazel:55:1: output 'external/gtest/gtest.if.lib' was not created ERROR: C:/../external/gtest/BUILD.bazel:55:1: not all outputs were created or valid Target //test:iterator_traits_test failed to build The reason is a missing "win_def_file" attribute of the "gtest" and "gtest_main" rules in the BUILD.bazel inside the google test library package. The "windows_export_all_symbols" feature is added to the rules, this feature forces Bazel to export all symbols from the google test library to linker. I believe exporting all symbols from a testing library makes no problem for the application from a point of view on encapsulation. Signed-off-by: Pavel Samolysov <samolisov@gmail.com>
2018-12-03Googletest exportmisterg
Fix bazel issue PiperOrigin-RevId: 223829127
2018-12-03Googletest exportmisterg
Fix bazel issue PiperOrigin-RevId: 223823930
2018-11-07Googletest exportkrzysio
Improve Bazel build files. New target gtest_prod allows access to the FRIEND_TEST macro without depending on the entirety of GTest in production executables. Additionally, duplicate config_setting rules were removed and formatting was adjusted. PiperOrigin-RevId: 220279205
2018-10-01Googletest exportmisterg
Internal Change PiperOrigin-RevId: 215236414
2018-10-01Googletest exportdurandal
Add myself to the authors table. PiperOrigin-RevId: 214822035
2018-07-12Merge branch 'master' into stacktraceDerek Mauro
2018-07-12Adds the UniversalPrinter for absl::variant.Derek Mauro
2018-07-10Adds stacktrace support from Abseil to Google TestDerek Mauro
This change adds the ability to generate stacktraces in Google Test on both failures of assertions/expectations and on crashes. The stacktrace support is conditionally available only when using Abseil with Google Test. To use this support, run the test under Bazel with a command like this: bazel test --define absl=1 --test_env=GTEST_INSTALL_FAILURE_SIGNAL_HANDLER=1 //path/to/your:test The "--define absl=1" part enables stacktraces on assertion/expectation failures. The "--test_env=GTEST_INSTALL_FAILURE_SIGNAL_HANDLER=1" part enables the signal handler that logs a stacktrace in the event of a crash (this also requires the "--define absl=1" part). This is not the default since it may interfere with existing tests.
2018-01-31Merges and also adding new bazel build modeGennadiy Civil
2018-01-30Ability to optionally depend on Abseil plus upstream of 183716547Gennadiy Civil
2018-01-09[Bazel] Detect Windows with cpu value x64_windows and x64_windows_msvcLoo Rong Jie
and x64_windows_msvc
2017-08-18Also can build when included in source.Zhongming Qu
2017-08-18Remove trailing whitespaces in BUILD.bazelZhongming Qu
2017-08-10Addressing commentsmisterg
2017-08-10Added Copyrightmisterg
2017-08-10Initial Revision, review 164634031misterg
2017-08-09WIPmisterg
2017-08-09WIPmisterg
2017-08-08WIP, win testingmisterg
2017-08-08WIPmisterg
2017-08-02WIPmisterg
2017-08-02WIPmisterg
2017-08-01WIPmisterg
2017-08-01WIPmisterg