tests/upcxx: convert to new stand-alone test process (#37832)
Co-authored-by: Dan Bonachea <dobonachea@lbl.gov>
This commit is contained in:
parent
d717b3a33f
commit
752e02e2f2
@ -233,7 +233,7 @@ def install(self, spec, prefix):
|
||||
|
||||
@run_after("install")
|
||||
@on_package_attributes(run_tests=True)
|
||||
def test_install(self):
|
||||
def check_install(self):
|
||||
# enable testing of unofficial conduits (mpi)
|
||||
test_networks = "NETWORKS=$(CONDUITS)"
|
||||
# build hello world against installed tree in all configurations
|
||||
@ -245,16 +245,12 @@ def test_install(self):
|
||||
make("run-tests", "NETWORKS=smp") # runs tests for smp backend
|
||||
make("tests-clean") # cleanup
|
||||
|
||||
def test(self):
|
||||
# run post-install smoke test:
|
||||
def test_upcxx_install(self):
|
||||
"""checking UPC++ compile+link for all installed backends"""
|
||||
test_install = join_path(self.prefix.bin, "test-upcxx-install.sh")
|
||||
self.run_test(
|
||||
test_install,
|
||||
expected=["SUCCESS"],
|
||||
status=0,
|
||||
installed=True,
|
||||
purpose="Checking UPC++ compile+link " + "for all installed backends",
|
||||
)
|
||||
test_upcxx_install = which(test_install)
|
||||
out = test_upcxx_install(output=str.split, error=str.split)
|
||||
assert "SUCCESS" in out
|
||||
|
||||
# `spack external find` support
|
||||
executables = ["^upcxx$"]
|
||||
|
Loading…
Reference in New Issue
Block a user