From 23a58bbb1c91cd61a474c081551a63461bc39aae Mon Sep 17 00:00:00 2001 From: Christoph Niethammer Date: Tue, 22 Oct 2024 14:05:15 +0200 Subject: [PATCH] Update tests to use catch2 v3 split headers Signed-off-by: Christoph Niethammer --- .github/workflows/codeql.yml | 8 ++++++-- tests/MPI_Dims_weighted_create_test.cpp | 3 ++- tests/MPI_Info_set_json_test.cpp | 4 +++- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 83af77b..50440f8 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -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 diff --git a/tests/MPI_Dims_weighted_create_test.cpp b/tests/MPI_Dims_weighted_create_test.cpp index 9cdc2eb..23d4250 100644 --- a/tests/MPI_Dims_weighted_create_test.cpp +++ b/tests/MPI_Dims_weighted_create_test.cpp @@ -28,7 +28,8 @@ #define CATCH_CONFIG_RUNNER #define CATCH_CONFIG_CONSOLE_WIDTH 100 -#include +#include +#include #include #include diff --git a/tests/MPI_Info_set_json_test.cpp b/tests/MPI_Info_set_json_test.cpp index d9f1e92..b42304a 100644 --- a/tests/MPI_Info_set_json_test.cpp +++ b/tests/MPI_Info_set_json_test.cpp @@ -28,7 +28,9 @@ #define CATCH_CONFIG_RUNNER #define CATCH_CONFIG_CONSOLE_WIDTH 100 -#include +#include +#include +#include #include #include