vtk-m: Changed test method names and skipping non-applicable tests from old to new approach (#44705)
* vtk-m: Changed test method names and skipping non-applicable tests from old to new approach ----- Co-authored-by: Tamara Dahlgren <35777542+tldahlgren@users.noreply.github.com>
This commit is contained in:
parent
d911b9c48d
commit
e6ae42b1eb
@ -230,14 +230,12 @@ def cmake_args(self):
|
|||||||
|
|
||||||
return options
|
return options
|
||||||
|
|
||||||
# Delegate in the vtk-m built smoke test
|
def test_smoke_test(self):
|
||||||
def smoke_test(self):
|
"""Build and run ctests"""
|
||||||
spec = self.spec
|
spec = self.spec
|
||||||
|
|
||||||
if "+examples" not in spec:
|
if "+examples" not in spec:
|
||||||
raise RuntimeError(
|
raise SkipTest("Package must be installed with +examples")
|
||||||
"Examples needed for smoke test missing", "reinstall with `+examples` variant"
|
|
||||||
)
|
|
||||||
|
|
||||||
testdir = "smoke_test_build"
|
testdir = "smoke_test_build"
|
||||||
with working_dir(testdir, create=True):
|
with working_dir(testdir, create=True):
|
||||||
@ -252,7 +250,4 @@ def smoke_test(self):
|
|||||||
@run_after("install")
|
@run_after("install")
|
||||||
@on_package_attributes(run_tests=True)
|
@on_package_attributes(run_tests=True)
|
||||||
def build_test(self):
|
def build_test(self):
|
||||||
self.smoke_test()
|
self.test_smoke_test()
|
||||||
|
|
||||||
def test(self):
|
|
||||||
self.smoke_test()
|
|
||||||
|
Loading…
Reference in New Issue
Block a user