summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/hsakmt-roct/package.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/var/spack/repos/builtin/packages/hsakmt-roct/package.py b/var/spack/repos/builtin/packages/hsakmt-roct/package.py
index fe256e8625..8ef1d97e1d 100644
--- a/var/spack/repos/builtin/packages/hsakmt-roct/package.py
+++ b/var/spack/repos/builtin/packages/hsakmt-roct/package.py
@@ -89,9 +89,9 @@ class HsakmtRoct(CMakePackage):
@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 @@ class HsakmtRoct(CMakePackage):
"-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")