summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorTamara Dahlgren <35777542+tldahlgren@users.noreply.github.com>2023-05-28 01:44:04 -0700
committerGitHub <noreply@github.com>2023-05-28 10:44:04 +0200
commit752e02e2f272ce9727daf43ce1a0869e59d720cc (patch)
tree4562d29c0578777ba8af58d63c4be9e38d95a6dd /var
parentd717b3a33f2607bde5b77518d4da37aab1b95096 (diff)
downloadspack-752e02e2f272ce9727daf43ce1a0869e59d720cc.tar.gz
spack-752e02e2f272ce9727daf43ce1a0869e59d720cc.tar.bz2
spack-752e02e2f272ce9727daf43ce1a0869e59d720cc.tar.xz
spack-752e02e2f272ce9727daf43ce1a0869e59d720cc.zip
tests/upcxx: convert to new stand-alone test process (#37832)
Co-authored-by: Dan Bonachea <dobonachea@lbl.gov>
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/upcxx/package.py16
1 files changed, 6 insertions, 10 deletions
diff --git a/var/spack/repos/builtin/packages/upcxx/package.py b/var/spack/repos/builtin/packages/upcxx/package.py
index 80dfa66d83..96f9426082 100644
--- a/var/spack/repos/builtin/packages/upcxx/package.py
+++ b/var/spack/repos/builtin/packages/upcxx/package.py
@@ -233,7 +233,7 @@ class Upcxx(Package, CudaPackage, ROCmPackage):
@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 @@ class Upcxx(Package, CudaPackage, ROCmPackage):
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$"]