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>
This commit is contained in:
AcriusWinter 2024-08-15 21:03:05 -07:00 committed by GitHub
parent 067da09b46
commit a2fd26bbcc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -126,8 +126,7 @@ def cmake_args(self):
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()