Skip to content

Commit

Permalink
Update tests to use catch2 v3 split headers
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Niethammer <[email protected]>
  • Loading branch information
cniethammer committed Oct 22, 2024
1 parent aba9ee5 commit 364d655
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,12 @@ jobs:
- name: Install json-c
run: sudo apt-get install libjson-c-dev

- name: Install Catch2
run: sudo apt-get install catch2
- name: Install Catch2 v3 from git repo
run: |
git clone https://github.com/catchorg/Catch2.git
cd Catch2
cmake -B build -S . -DBUILD_TESTING=OFF
sudo cmake --build build/ --target install
- name: Autobuild
uses: github/codeql-action/autobuild@v3
Expand Down
3 changes: 2 additions & 1 deletion tests/MPI_Dims_weighted_create_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@

#define CATCH_CONFIG_RUNNER
#define CATCH_CONFIG_CONSOLE_WIDTH 100
#include <catch2/catch.hpp>
#include <catch2/catch_test_macros.hpp>
#include <catch2/catch_session.hpp>

#include <array>
#include <cstdint>
Expand Down
4 changes: 3 additions & 1 deletion tests/MPI_Info_set_json_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@

#define CATCH_CONFIG_RUNNER
#define CATCH_CONFIG_CONSOLE_WIDTH 100
#include <catch2/catch.hpp>
#include <catch2/catch_test_macros.hpp>
#include <catch2/catch_session.hpp>
#include <catch2/matchers/catch_matchers_string.hpp>

#include <array>
#include <cstdint>
Expand Down

0 comments on commit 364d655

Please sign in to comment.