Install test root update: old to new API (#45491)
* convert install_test_root from old to new API
This commit is contained in:
parent
546e0925b0
commit
7bec524dd5
@ -129,7 +129,7 @@ def setup_smoke_test(self):
|
|||||||
if self.spec.satisfies("@:2.2.0"):
|
if self.spec.satisfies("@:2.2.0"):
|
||||||
return
|
return
|
||||||
install_tree(
|
install_tree(
|
||||||
self.prefix.share.heffte.testing, join_path(self.install_test_root, "testing")
|
self.prefix.share.heffte.testing, join_path(install_test_root(self), "testing")
|
||||||
)
|
)
|
||||||
|
|
||||||
def test_make_test(self):
|
def test_make_test(self):
|
||||||
|
@ -392,7 +392,7 @@ def setup_build_tests(self):
|
|||||||
cmake_source_path,
|
cmake_source_path,
|
||||||
"-DSPACK_PACKAGE_SOURCE_DIR:PATH={0}".format(self.stage.source_path),
|
"-DSPACK_PACKAGE_SOURCE_DIR:PATH={0}".format(self.stage.source_path),
|
||||||
"-DSPACK_PACKAGE_TEST_ROOT_DIR:PATH={0}".format(
|
"-DSPACK_PACKAGE_TEST_ROOT_DIR:PATH={0}".format(
|
||||||
join_path(self.install_test_root, cmake_out_path)
|
join_path(install_test_root(self), cmake_out_path)
|
||||||
),
|
),
|
||||||
"-DSPACK_PACKAGE_INSTALL_DIR:PATH={0}".format(self.prefix),
|
"-DSPACK_PACKAGE_INSTALL_DIR:PATH={0}".format(self.prefix),
|
||||||
]
|
]
|
||||||
|
@ -59,7 +59,7 @@ def test_chainermn(self):
|
|||||||
if "+mn" not in self.spec:
|
if "+mn" not in self.spec:
|
||||||
raise SkipTest("Test only supported when built with +mn")
|
raise SkipTest("Test only supported when built with +mn")
|
||||||
|
|
||||||
mnist_file = join_path(self.install_test_root.examples.chainermn.mnist, "train_mnist.py")
|
mnist_file = join_path(install_test_root(self).examples.chainermn.mnist, "train_mnist.py")
|
||||||
mpirun = which(self.spec["mpi"].prefix.bin.mpirun)
|
mpirun = which(self.spec["mpi"].prefix.bin.mpirun)
|
||||||
opts = ["-n", "4", python.path, mnist_file, "-o", "."]
|
opts = ["-n", "4", python.path, mnist_file, "-o", "."]
|
||||||
env["OMP_NUM_THREADS"] = "4"
|
env["OMP_NUM_THREADS"] = "4"
|
||||||
|
@ -122,7 +122,7 @@ def cmake_args(self):
|
|||||||
@run_after("install")
|
@run_after("install")
|
||||||
def setup_smoke_test(self):
|
def setup_smoke_test(self):
|
||||||
install_tree(
|
install_tree(
|
||||||
self.prefix.share.Tasmanian.testing, join_path(self.install_test_root, "testing")
|
self.prefix.share.Tasmanian.testing, join_path(install_test_root(self), "testing")
|
||||||
)
|
)
|
||||||
|
|
||||||
def test_make_test(self):
|
def test_make_test(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user