migraphx: Old to new test API (#44988)
* migraphx: Old to new test API * migraphx: tweak name and docstring to be more descriptive --------- Co-authored-by: Tamara Dahlgren <35777542+tldahlgren@users.noreply.github.com>
This commit is contained in:
parent
063b987ceb
commit
6b73f00310
@ -136,10 +136,10 @@ def cmake_args(self):
|
|||||||
)
|
)
|
||||||
return args
|
return args
|
||||||
|
|
||||||
def test(self):
|
def test_unit_tests(self):
|
||||||
|
"""Run installed UnitTests"""
|
||||||
if self.spec.satisfies("@:5.5.0"):
|
if self.spec.satisfies("@:5.5.0"):
|
||||||
print("Skipping: stand-alone tests")
|
raise SkipTest("Package must be installed as version @5.5.1 or later")
|
||||||
return
|
unit_tests = which(self.prefix.bin.UnitTests)
|
||||||
test_dir = join_path(self.spec["migraphx"].prefix, "bin")
|
assert unit_tests is not None, "UnitTests is not installed!"
|
||||||
with working_dir(test_dir, create=True):
|
unit_tests()
|
||||||
self.run_test("UnitTests")
|
|
||||||
|
Loading…
Reference in New Issue
Block a user