Skip to content

Commit

Permalink
Merge pull request #83 from lanl/jmm/catch2-v3
Browse files Browse the repository at this point in the history
update spack2 v2 to spack2 v3
  • Loading branch information
Yurlungur authored Nov 30, 2023
2 parents 90d5044 + 1b2976e commit 33862f8
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ variables:
GIT_SUBMODULE_STRATEGY: recursive
SPINER_GCC_VERSION: "9.3.0"
SPINER_CUDA_VERSION: "11.6.0"
SPINER_SPACK_SPEC: "spiner@main+python%gcc@${SPINER_GCC_VERSION}"
SPINER_SPACK_SPEC: "spiner@main+python+test%gcc@${SPINER_GCC_VERSION}"
COLOR_CYAN: "\e[1;36m"
COLOR_PLAIN: "\e[0m"
# set to different spack upstream for testing
Expand Down
5 changes: 4 additions & 1 deletion spack-repo/packages/spiner/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,12 @@ class Spiner(CMakePackage, CudaPackage):

variant("python", default=False, description="Python, Numpy & Matplotlib Support")

variant("test", default=False, description="Build tests")

depends_on("[email protected]:", when="@:1.5.1")
depends_on("[email protected]:", when="@1.6.0:")
depends_on("[email protected]:2.13.9")
depends_on("[email protected]:", when="@main +test")
depends_on("[email protected]:2.13.9", when="@:1.6.2 +test")
depends_on("[email protected]:", when="@:1.5.1")
depends_on("[email protected]:", when="@1.6.0:")
depends_on("ports-of-call@main", when="@main")
Expand Down
3 changes: 2 additions & 1 deletion test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@

spiner_content_declare(Catch2
GIT_REPO https://github.com/catchorg/Catch2.git
GIT_TAG v2.13.7
GIT_TAG v3.0.1 # or any later release
EXPECTED_TARGETS Catch2::Catch2
NAMESPACE spinerTest
)

Expand Down
4 changes: 2 additions & 2 deletions test/test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
#include "hdf5_hl.h"
#endif

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

using DataBox = Spiner::DataBox<Real>;
using Spiner::IndexType;
Expand Down

0 comments on commit 33862f8

Please sign in to comment.