-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Project import generated by Copybara.
GitOrigin-RevId: 9302e60a8d31ff453018c0b898c4e6836d51f560
- Loading branch information
1 parent
8fae0a8
commit 93345c5
Showing
40 changed files
with
742 additions
and
8,763 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
# | ||
# SPDX-FileCopyrightText: Copyright 2022-2023 Julian Amann <[email protected]> | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
|
||
# GCC9 on Ubuntu 20.04 | ||
# Make sure we can build with GCC 9 in all different compilation modes | ||
|
||
steps: | ||
- script: | | ||
df | ||
displayName: 'Show disk space' | ||
- checkout: self | ||
clean: true | ||
fetchDepth: 1 | ||
lfs: false | ||
submodules: false | ||
|
||
|
||
- script: | | ||
lsb_release -a | ||
displayName: 'Show OS version' | ||
- script: | | ||
df | ||
displayName: 'Show disk space' | ||
- script: | | ||
cd devertexwahn | ||
bazel version | ||
displayName: 'Show Bazel version' | ||
- script: | | ||
gcc --version | ||
displayName: 'Show GCC version' | ||
- script: | | ||
df | ||
displayName: 'Show disk space' | ||
- script: | | ||
cd devertexwahn | ||
bazel run --config=gcc9 --compilation_mode=dbg -- //tools/compiler_information | ||
displayName: "Show compiler information" | ||
- script: | | ||
df | ||
displayName: 'Show disk space' | ||
- script: | | ||
cd devertexwahn | ||
bazel build --config=gcc9 --compilation_mode=dbg -- //... -//okapi/... | ||
displayName: 'Bazel build gcc9-dbg - Part 1' | ||
- script: | | ||
df | ||
displayName: 'Show disk space' | ||
- script: | | ||
cd devertexwahn | ||
bazel clean # free some space | ||
displayName: 'Bazel clean' | ||
#- script: | | ||
# df | ||
# displayName: 'Show disk space' | ||
|
||
#- script: | | ||
# cd devertexwahn | ||
# bazel build --config=gcc9 --compilation_mode=dbg -- //okapi/... | ||
# displayName: 'Bazel build gcc9-dbg - Part 2' | ||
|
||
- script: | | ||
df | ||
displayName: 'Show disk space' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
# | ||
# SPDX-FileCopyrightText: Copyright 2022-2023 Julian Amann <[email protected]> | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
|
||
# GCC9 on Ubuntu 20.04 | ||
# Make sure we can build with GCC 9 in all different compilation modes | ||
|
||
steps: | ||
- script: | | ||
df | ||
displayName: 'Show disk space' | ||
- checkout: self | ||
clean: true | ||
fetchDepth: 1 | ||
lfs: false | ||
submodules: false | ||
|
||
|
||
- script: | | ||
lsb_release -a | ||
displayName: 'Show OS version' | ||
- script: | | ||
df | ||
displayName: 'Show disk space' | ||
- script: | | ||
cd devertexwahn | ||
bazel version | ||
displayName: 'Show Bazel version' | ||
- script: | | ||
gcc --version | ||
displayName: 'Show GCC version' | ||
- script: | | ||
df | ||
displayName: 'Show disk space' | ||
- script: | | ||
cd devertexwahn | ||
bazel run --config=gcc9 --compilation_mode=dbg -- //tools/compiler_information | ||
displayName: "Show compiler information" | ||
#- script: | | ||
# df | ||
# displayName: 'Show disk space' | ||
|
||
#- script: | | ||
# cd devertexwahn | ||
# bazel build --config=gcc9 --compilation_mode=dbg -- //... -//okapi/... | ||
# displayName: 'Bazel build gcc9-dbg - Part 1' | ||
|
||
#- script: | | ||
# df | ||
# displayName: 'Show disk space' | ||
|
||
#- script: | | ||
# cd devertexwahn | ||
# bazel clean # free some space | ||
# displayName: 'Bazel clean' | ||
|
||
- script: | | ||
df | ||
displayName: 'Show disk space' | ||
- script: | | ||
cd devertexwahn | ||
bazel build --config=gcc9 --compilation_mode=dbg -- //okapi/... | ||
displayName: 'Bazel build gcc9-dbg - Part 2' | ||
- script: | | ||
df | ||
displayName: 'Show disk space' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
load("@rules_cc//cc:defs.bzl", "cc_library", "cc_test") | ||
|
||
package(default_visibility = ["//visibility:public"]) | ||
|
||
cc_library( | ||
name = "catch2_self_test_helper", | ||
srcs = ["SelfTest/helpers/parse_test_spec.cpp"], | ||
hdrs = [ | ||
"SelfTest/helpers/parse_test_spec.hpp", | ||
"SelfTest/helpers/range_test_helpers.hpp", | ||
"SelfTest/helpers/type_with_lit_0_comparisons.hpp", | ||
], | ||
includes = ["SelfTest"], | ||
deps = [ | ||
"//:catch2", | ||
], | ||
) | ||
|
||
cc_test( | ||
name = "catch2_self_test", | ||
size = "small", | ||
srcs = [ | ||
"SelfTest/IntrospectiveTests/Algorithms.tests.cpp", | ||
"SelfTest/IntrospectiveTests/Clara.tests.cpp", | ||
"SelfTest/IntrospectiveTests/CmdLine.tests.cpp", | ||
"SelfTest/IntrospectiveTests/CmdLineHelpers.tests.cpp", | ||
"SelfTest/IntrospectiveTests/ColourImpl.tests.cpp", | ||
"SelfTest/IntrospectiveTests/Details.tests.cpp", | ||
"SelfTest/IntrospectiveTests/FloatingPoint.tests.cpp", | ||
"SelfTest/IntrospectiveTests/GeneratorsImpl.tests.cpp", | ||
"SelfTest/IntrospectiveTests/Integer.tests.cpp", | ||
"SelfTest/IntrospectiveTests/InternalBenchmark.tests.cpp", | ||
"SelfTest/IntrospectiveTests/Parse.tests.cpp", | ||
"SelfTest/IntrospectiveTests/PartTracker.tests.cpp", | ||
"SelfTest/IntrospectiveTests/RandomNumberGeneration.tests.cpp", | ||
"SelfTest/IntrospectiveTests/Reporters.tests.cpp", | ||
"SelfTest/IntrospectiveTests/Sharding.tests.cpp", | ||
"SelfTest/IntrospectiveTests/Stream.tests.cpp", | ||
"SelfTest/IntrospectiveTests/String.tests.cpp", | ||
"SelfTest/IntrospectiveTests/StringManip.tests.cpp", | ||
"SelfTest/IntrospectiveTests/Tag.tests.cpp", | ||
"SelfTest/IntrospectiveTests/TestCaseInfoHasher.tests.cpp", | ||
"SelfTest/IntrospectiveTests/TestSpec.tests.cpp", | ||
"SelfTest/IntrospectiveTests/TestSpecParser.tests.cpp", | ||
"SelfTest/IntrospectiveTests/TextFlow.tests.cpp", | ||
"SelfTest/IntrospectiveTests/ToString.tests.cpp", | ||
"SelfTest/IntrospectiveTests/Traits.tests.cpp", | ||
"SelfTest/IntrospectiveTests/UniquePtr.tests.cpp", | ||
"SelfTest/IntrospectiveTests/Xml.tests.cpp", | ||
"SelfTest/TestRegistrations.cpp", | ||
"SelfTest/TimingTests/Sleep.tests.cpp", | ||
"SelfTest/UsageTests/Approx.tests.cpp", | ||
"SelfTest/UsageTests/BDD.tests.cpp", | ||
"SelfTest/UsageTests/Benchmark.tests.cpp", | ||
"SelfTest/UsageTests/Class.tests.cpp", | ||
"SelfTest/UsageTests/Compilation.tests.cpp", | ||
"SelfTest/UsageTests/Condition.tests.cpp", | ||
"SelfTest/UsageTests/Decomposition.tests.cpp", | ||
"SelfTest/UsageTests/EnumToString.tests.cpp", | ||
"SelfTest/UsageTests/Exception.tests.cpp", | ||
"SelfTest/UsageTests/Generators.tests.cpp", | ||
"SelfTest/UsageTests/Matchers.tests.cpp", | ||
"SelfTest/UsageTests/MatchersRanges.tests.cpp", | ||
"SelfTest/UsageTests/Message.tests.cpp", | ||
"SelfTest/UsageTests/Misc.tests.cpp", | ||
"SelfTest/UsageTests/ToStringByte.tests.cpp", | ||
"SelfTest/UsageTests/ToStringChrono.tests.cpp", | ||
"SelfTest/UsageTests/ToStringGeneral.tests.cpp", | ||
"SelfTest/UsageTests/ToStringOptional.tests.cpp", | ||
"SelfTest/UsageTests/ToStringPair.tests.cpp", | ||
"SelfTest/UsageTests/ToStringTuple.tests.cpp", | ||
"SelfTest/UsageTests/ToStringVariant.tests.cpp", | ||
"SelfTest/UsageTests/ToStringVector.tests.cpp", | ||
"SelfTest/UsageTests/ToStringWhich.tests.cpp", | ||
"SelfTest/UsageTests/Tricky.tests.cpp", | ||
"SelfTest/UsageTests/VariadicMacros.tests.cpp", | ||
], | ||
deps = [ | ||
":catch2_self_test_helper", | ||
"//:catch2", | ||
"//:catch2_main", | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
third_party/Catch2/tests/ExtraTests/X36-ReportingCrashWithJunitReporter.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
|
||
// Copyright Catch2 Authors | ||
// Distributed under the Boost Software License, Version 1.0. | ||
// (See accompanying file LICENSE.txt or copy at | ||
// https://www.boost.org/LICENSE_1_0.txt) | ||
|
||
// SPDX-License-Identifier: BSL-1.0 | ||
|
||
/**\file | ||
* Checks that signals/SEH within open section does not hard crash JUnit | ||
* (or similar reporter) while we are trying to report fatal error. | ||
*/ | ||
|
||
#include <catch2/catch_test_macros.hpp> | ||
|
||
#include <csignal> | ||
|
||
// On Windows we need to send SEH and not signal to test the | ||
// RunContext::handleFatalErrorCondition code path | ||
#if defined( _MSC_VER ) | ||
# include <windows.h> | ||
#endif | ||
|
||
TEST_CASE( "raises signal" ) { | ||
SECTION( "section" ) { | ||
#if defined( _MSC_VER ) | ||
RaiseException( 0xC0000005, 0, 0, NULL ); | ||
#else | ||
std::raise( SIGILL ); | ||
#endif | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.