From 90d50448e9306863c58d2406fade0d9681ca5abc Mon Sep 17 00:00:00 2001 From: Jonah Miller Date: Thu, 30 Nov 2023 11:36:09 -0700 Subject: [PATCH] Revert "update catch2 v2 to catch2 v3" This reverts commit 132b17c4094549ec9d72bf4843f5a2a3ec6f6e34. --- spack-repo/packages/spiner/package.py | 3 +-- test/CMakeLists.txt | 3 +-- test/test.cpp | 4 ++-- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/spack-repo/packages/spiner/package.py b/spack-repo/packages/spiner/package.py index 96e396f22..e34fd43fb 100644 --- a/spack-repo/packages/spiner/package.py +++ b/spack-repo/packages/spiner/package.py @@ -53,8 +53,7 @@ class Spiner(CMakePackage, CudaPackage): depends_on("cmake@3.12:", when="@:1.5.1") depends_on("cmake@3.19:", when="@1.6.0:") - depends_on("catch2@v3.0.1:") - depends_on("catch2@2.13.4:2.13.9", when="@:1.6.2") + depends_on("catch2@2.13.4:2.13.9") depends_on("ports-of-call@1.2.0:", when="@:1.5.1") depends_on("ports-of-call@1.5.1:", when="@1.6.0:") depends_on("ports-of-call@main", when="@main") diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index efb63dd6e..bb84c5c5e 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -12,8 +12,7 @@ spiner_content_declare(Catch2 GIT_REPO https://github.com/catchorg/Catch2.git - GIT_TAG v3.0.1 # or any later release - EXPECTED_TARGETS Catch2::Catch2 + GIT_TAG v2.13.7 NAMESPACE spinerTest ) diff --git a/test/test.cpp b/test/test.cpp index d6c28a990..f6b8edb62 100644 --- a/test/test.cpp +++ b/test/test.cpp @@ -29,8 +29,8 @@ #include "hdf5_hl.h" #endif -#include -#include +#define CATCH_CONFIG_RUNNER +#include "catch2/catch.hpp" using DataBox = Spiner::DataBox; using Spiner::IndexType;