tests/upcxx: convert to new stand-alone test process (#37832)

Co-authored-by: Dan Bonachea <dobonachea@lbl.gov>
This commit is contained in:
Tamara Dahlgren 2023-05-28 01:44:04 -07:00 committed by GitHub
parent d717b3a33f
commit 752e02e2f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -233,7 +233,7 @@ def install(self, spec, prefix):
@run_after("install") @run_after("install")
@on_package_attributes(run_tests=True) @on_package_attributes(run_tests=True)
def test_install(self): def check_install(self):
# enable testing of unofficial conduits (mpi) # enable testing of unofficial conduits (mpi)
test_networks = "NETWORKS=$(CONDUITS)" test_networks = "NETWORKS=$(CONDUITS)"
# build hello world against installed tree in all configurations # 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("run-tests", "NETWORKS=smp") # runs tests for smp backend
make("tests-clean") # cleanup make("tests-clean") # cleanup
def test(self): def test_upcxx_install(self):
# run post-install smoke test: """checking UPC++ compile+link for all installed backends"""
test_install = join_path(self.prefix.bin, "test-upcxx-install.sh") test_install = join_path(self.prefix.bin, "test-upcxx-install.sh")
self.run_test( test_upcxx_install = which(test_install)
test_install, out = test_upcxx_install(output=str.split, error=str.split)
expected=["SUCCESS"], assert "SUCCESS" in out
status=0,
installed=True,
purpose="Checking UPC++ compile+link " + "for all installed backends",
)
# `spack external find` support # `spack external find` support
executables = ["^upcxx$"] executables = ["^upcxx$"]