Skip to content

Commit

Permalink
Project import generated by Copybara.
Browse files Browse the repository at this point in the history
GitOrigin-RevId: 69e7e6e0528237a73091bf98f611e8485274ec47
  • Loading branch information
Vertexwahn committed Oct 13, 2024
1 parent 534fc4a commit b6482c4
Show file tree
Hide file tree
Showing 299 changed files with 11,589 additions and 34,720 deletions.
15 changes: 7 additions & 8 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,6 @@


jobs:
- job: MacOSAppleClang14Monterey
displayName: "Apple Clang14 on macOS 12 (Monterey)"
pool:
vmImage: 'macOS-12'
steps:
- template: devertexwahn/ci/macOS-12-apple-clang14.yaml


- job: MacOSAppleClang14Ventura
displayName: "Apple Clang14 on macOS 13 (Ventura)"
pool:
Expand Down Expand Up @@ -109,6 +101,13 @@ jobs:
steps:
- template: devertexwahn/ci/ubuntu-22.04-gcc11-fast-opt.yaml

- job: Ubuntu24GCC13
displayName: "GCC13 fastbuild opt on Ubuntu 24.04"
pool:
vmImage: 'ubuntu-24.04'
steps:
- template: devertexwahn/ci/ubuntu-24.04-gcc13-fast-opt.yaml

- job: Ubuntu22GCC11DebugPart1
displayName: "GCC11 dbg on Ubuntu 22.04 (Part 1)"
pool:
Expand Down
2 changes: 1 addition & 1 deletion devertexwahn/.bazelversion
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.3.1
7.3.2
74 changes: 0 additions & 74 deletions devertexwahn/ci/macOS-12-apple-clang14.yaml

This file was deleted.

File renamed without changes.
5 changes: 3 additions & 2 deletions devertexwahn/ci/ubuntu-22.04-cppcheck.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,10 @@ steps:
# displayName: "Install Cppcheck"

- script: |
curl -L -o cppcheck.tar.gz https://github.com/danmar/cppcheck/archive/refs/tags/2.15.0.tar.gz
CPP_CHECK_VERSION=2.14.0
curl -L -o cppcheck.tar.gz https://github.com/danmar/cppcheck/archive/refs/tags/${CPP_CHECK_VERSION}.tar.gz
tar xzf cppcheck.tar.gz
cd cppcheck-2.15.0
cd cppcheck-${CPP_CHECK_VERSION}
cmake -S . -B build
cmake --build build
sudo cmake --install build
Expand Down
2 changes: 1 addition & 1 deletion third_party/Catch2/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ if (CMAKE_BINARY_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
endif()

project(Catch2
VERSION 3.7.0 # CML version placeholder, don't delete
VERSION 3.7.1 # CML version placeholder, don't delete
LANGUAGES CXX
# HOMEPAGE_URL is not supported until CMake version 3.12, which
# we do not target yet.
Expand Down
3 changes: 1 addition & 2 deletions third_party/Catch2/docs/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,7 @@ cmake -B debug-build -S . -DCMAKE_BUILD_TYPE=Debug --preset all-tests
cmake --build debug-build

# 4. Run the tests using CTest
cd debug-build
ctest -j 4 --output-on-failure -C Debug
ctest -j 4 --output-on-failure -C Debug --test-dir debug-build
```
<sup><a href='/tools/scripts/buildAndTest.sh#L6-L19' title='File snippet `catch2-build-and-test` was extracted from'>snippet source</a> | <a href='#snippet-catch2-build-and-test' title='Navigate to start of snippet `catch2-build-and-test`'>anchor</a></sup>
<!-- endSnippet -->
Expand Down
21 changes: 21 additions & 0 deletions third_party/Catch2/docs/release-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

# Release notes
**Contents**<br>
[3.7.1](#371)<br>
[3.7.0](#370)<br>
[3.6.0](#360)<br>
[3.5.4](#354)<br>
Expand Down Expand Up @@ -64,6 +65,26 @@
[Even Older versions](#even-older-versions)<br>


## 3.7.1

### Improvements
* Applied the JUnit reporter's optimization from last release to the SonarQube reporter
* Suppressed `-Wuseless-cast` in `CHECK_THROWS_MATCHES` (#2904)
* Standardize exit codes for various failures
* Running no tests is now guaranteed to exit with 2 (without the `--allow-running-no-tests` flag)
* All tests skipped is now always 4 (...)
* Assertion failures are now always 42
* and so on

### Fixes
* Fixed out-of-bounds access when the arg parser encounters single `-` as an argument (#2905)

### Miscellaneous
* Added `catch_config_prefix_messages.hpp` to meson build (#2903)
* `catch_discover_tests` now supports skipped tests (#2873)
* You can get the old behaviour by calling `catch_discover_tests` with `SKIP_IS_FAILURE` option.


## 3.7.0

### Improvements
Expand Down
11 changes: 9 additions & 2 deletions third_party/Catch2/extras/Catch.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ same as the Catch name; see also ``TEST_PREFIX`` and ``TEST_SUFFIX``.
[OUTPUT_PREFIX prefix]
[OUTPUT_SUFFIX suffix]
[DISCOVERY_MODE <POST_BUILD|PRE_TEST>]
[SKIP_IS_FAILURE]
)
``catch_discover_tests`` sets up a post-build command on the test executable
Expand Down Expand Up @@ -131,7 +132,7 @@ same as the Catch name; see also ``TEST_PREFIX`` and ``TEST_SUFFIX``.
of test cases from the test executable and when the tests are executed themselves.
This requires cmake/ctest >= 3.22.
`DISCOVERY_MODE mode``
``DISCOVERY_MODE mode``
Provides control over when ``catch_discover_tests`` performs test discovery.
By default, ``POST_BUILD`` sets up a post-build command to perform test discovery
at build time. In certain scenarios, like cross-compiling, this ``POST_BUILD``
Expand All @@ -143,6 +144,9 @@ same as the Catch name; see also ``TEST_PREFIX`` and ``TEST_SUFFIX``.
``CMAKE_CATCH_DISCOVER_TESTS_DISCOVERY_MODE`` variable if it is not passed when
calling ``catch_discover_tests``. This provides a mechanism for globally selecting
a preferred test discovery behavior without having to modify each call site.
``SKIP_IS_FAILURE``
Disables skipped test detection.
#]=======================================================================]

Expand All @@ -151,7 +155,7 @@ function(catch_discover_tests TARGET)

cmake_parse_arguments(
""
""
"SKIP_IS_FAILURE"
"TEST_PREFIX;TEST_SUFFIX;WORKING_DIRECTORY;TEST_LIST;REPORTER;OUTPUT_DIR;OUTPUT_PREFIX;OUTPUT_SUFFIX;DISCOVERY_MODE"
"TEST_SPEC;EXTRA_ARGS;PROPERTIES;DL_PATHS;DL_FRAMEWORK_PATHS"
${ARGN}
Expand Down Expand Up @@ -192,6 +196,9 @@ function(catch_discover_tests TARGET)
TARGET ${TARGET}
PROPERTY CROSSCOMPILING_EMULATOR
)
if (NOT _SKIP_IS_FAILURE)
set(_PROPERTIES ${_PROPERTIES} SKIP_RETURN_CODE 4)
endif()

if(_DISCOVERY_MODE STREQUAL "POST_BUILD")
add_custom_command(
Expand Down
Loading

0 comments on commit b6482c4

Please sign in to comment.