hsakmt-roct: remove use of deprecated run_test method (#45763)
* hsakmt-roct: new test API * hsakmt-roct: minor change to check_install script variable name --------- Co-authored-by: Tamara Dahlgren <35777542+tldahlgren@users.noreply.github.com>
This commit is contained in:
parent
ad6c7380c5
commit
0d668e4e92
@ -89,9 +89,9 @@ def cmake_args(self):
|
||||
@run_after("install")
|
||||
@on_package_attributes(run_tests=True)
|
||||
def check_install(self):
|
||||
test_dir = "tests/kfdtest"
|
||||
"""Check if package is installed correctly"""
|
||||
test_dir = join_path("tests", "kfdtest")
|
||||
with working_dir(test_dir, create=True):
|
||||
cmake_bin = join_path(self.spec["cmake"].prefix.bin, "cmake")
|
||||
prefixes = ";".join(
|
||||
[
|
||||
self.spec["libdrm"].prefix,
|
||||
@ -109,9 +109,12 @@ def check_install(self):
|
||||
"-DLIBHSAKMT_PATH=" + hsakmt_path,
|
||||
".",
|
||||
]
|
||||
self.run_test(cmake_bin, cc_options)
|
||||
cmake = self.spec["cmake"].command
|
||||
cmake(*cc_options)
|
||||
make = which("make")
|
||||
make()
|
||||
os.environ["LD_LIBRARY_PATH"] = hsakmt_path
|
||||
os.environ["BIN_DIR"] = os.getcwd()
|
||||
self.run_test("scripts/run_kfdtest.sh")
|
||||
run_kfdtest = which(join_path("scripts", "run_kfdtest.sh"))
|
||||
run_kfdtest()
|
||||
make("clean")
|
||||
|
Loading…
Reference in New Issue
Block a user