From 32deca2a4ce0f05b44d67a09887434fc8057a5fa Mon Sep 17 00:00:00 2001 From: afzpatel <122491982+afzpatel@users.noreply.github.com> Date: Wed, 27 Mar 2024 16:06:55 -0400 Subject: initial commit to add check function to rocthrust (#43405) --- var/spack/repos/builtin/packages/rocthrust/package.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/var/spack/repos/builtin/packages/rocthrust/package.py b/var/spack/repos/builtin/packages/rocthrust/package.py index 229724dc88..1a198d61eb 100644 --- a/var/spack/repos/builtin/packages/rocthrust/package.py +++ b/var/spack/repos/builtin/packages/rocthrust/package.py @@ -74,6 +74,10 @@ class Rocthrust(CMakePackage): depends_on(f"rocprim@{ver}", when=f"@{ver}") depends_on(f"rocm-cmake@{ver}:", type="build", when=f"@{ver}") + def check(self): + with working_dir(self.builder.build_directory): + make("test") + def setup_build_environment(self, env): env.set("CXX", self.spec["hip"].hipcc) -- cgit v1.2.3-70-g09d2