summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAcriusWinter <152348900+AcriusWinter@users.noreply.github.com>2024-08-15 21:03:05 -0700
committerGitHub <noreply@github.com>2024-08-15 22:03:05 -0600
commita2fd26bbcc26b04064c2079c2fa8897fe4893212 (patch)
tree89bf4c881315ff1fd9f7e1738dfd25c12a4f0ce3
parent067da09b464981de33db6149d1d354f9a983095b (diff)
downloadspack-a2fd26bbcc26b04064c2079c2fa8897fe4893212.tar.gz
spack-a2fd26bbcc26b04064c2079c2fa8897fe4893212.tar.bz2
spack-a2fd26bbcc26b04064c2079c2fa8897fe4893212.tar.xz
spack-a2fd26bbcc26b04064c2079c2fa8897fe4893212.zip
rccl: new test API (#45241)
* rccl: new test API * rccl: stand-alone test docstring tweak --------- Co-authored-by: Tamara Dahlgren <35777542+tldahlgren@users.noreply.github.com>
-rw-r--r--var/spack/repos/builtin/packages/rccl/package.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/var/spack/repos/builtin/packages/rccl/package.py b/var/spack/repos/builtin/packages/rccl/package.py
index 9b886e2641..49b9e4081e 100644
--- a/var/spack/repos/builtin/packages/rccl/package.py
+++ b/var/spack/repos/builtin/packages/rccl/package.py
@@ -126,8 +126,7 @@ class Rccl(CMakePackage):
args.append(self.define("BUILD_TESTS", "ON"))
return args
- def test(self):
- test_dir = join_path(self.spec["rccl"].prefix, "bin")
- with working_dir(test_dir, create=True):
- exe = Executable("rccl-UnitTests")
- exe()
+ def test_unit(self):
+ """Run unit tests"""
+ unit_tests = which(join_path(self.prefix.bin, "rccl-UnitTests"))
+ unit_tests()