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")) 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()