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:
parent
067da09b46
commit
a2fd26bbcc
@ -126,8 +126,7 @@ def cmake_args(self):
|
|||||||
args.append(self.define("BUILD_TESTS", "ON"))
|
args.append(self.define("BUILD_TESTS", "ON"))
|
||||||
return args
|
return args
|
||||||
|
|
||||||
def test(self):
|
def test_unit(self):
|
||||||
test_dir = join_path(self.spec["rccl"].prefix, "bin")
|
"""Run unit tests"""
|
||||||
with working_dir(test_dir, create=True):
|
unit_tests = which(join_path(self.prefix.bin, "rccl-UnitTests"))
|
||||||
exe = Executable("rccl-UnitTests")
|
unit_tests()
|
||||||
exe()
|
|
||||||
|
Loading…
Reference in New Issue
Block a user