summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCody Balos <balos1@llnl.gov>2022-02-15 06:03:58 -0800
committerGitHub <noreply@github.com>2022-02-15 15:03:58 +0100
commitcf0c9afffffb294fba3a5742f35cd350267b1d47 (patch)
treea6bfac099b286cdad96a302b4fd299bdf14f446e
parent09a8656f1fb656b8014debb9eb69f4560e9b31de (diff)
downloadspack-cf0c9afffffb294fba3a5742f35cd350267b1d47.tar.gz
spack-cf0c9afffffb294fba3a5742f35cd350267b1d47.tar.bz2
spack-cf0c9afffffb294fba3a5742f35cd350267b1d47.tar.xz
spack-cf0c9afffffb294fba3a5742f35cd350267b1d47.zip
sundials: use make for some of the smoke tests (#28938)
-rw-r--r--var/spack/repos/builtin/packages/sundials/package.py18
1 files changed, 10 insertions, 8 deletions
diff --git a/var/spack/repos/builtin/packages/sundials/package.py b/var/spack/repos/builtin/packages/sundials/package.py
index 66d9044916..463e587a2e 100644
--- a/var/spack/repos/builtin/packages/sundials/package.py
+++ b/var/spack/repos/builtin/packages/sundials/package.py
@@ -688,32 +688,33 @@ class Sundials(CMakePackage, CudaPackage, ROCmPackage):
@property
def _smoke_tests(self):
+ # smoke_tests tuple: exe, args, purpose, use cmake (true/false)
smoke_tests = [('nvector/serial/test_nvector_serial', ['10', '0'],
- 'Test serial N_Vector')]
+ 'Test serial N_Vector', False)]
if '+CVODE' in self.spec:
smoke_tests.append(('cvode/serial/cvAdvDiff_bnd', [],
- 'Test CVODE'))
+ 'Test CVODE', True))
if '+cuda' in self.spec:
smoke_tests.append(('nvector/cuda/test_nvector_cuda', ['10', '0', '0'],
- 'Test CUDA N_Vector'))
+ 'Test CUDA N_Vector', True))
if '+CVODE' in self.spec:
smoke_tests.append(('cvode/cuda/cvAdvDiff_kry_cuda', [],
- 'Test CVODE with CUDA'))
+ 'Test CVODE with CUDA', True))
if '+hip' in self.spec:
smoke_tests.append(('nvector/hip/test_nvector_hip', ['10', '0', '0'],
- 'Test HIP N_Vector'))
+ 'Test HIP N_Vector', True))
if '+CVODE' in self.spec:
smoke_tests.append(('cvode/hip/cvAdvDiff_kry_hip', [],
- 'Test CVODE with HIP'))
+ 'Test CVODE with HIP', True))
if '+sycl' in self.spec:
smoke_tests.append(('nvector/sycl/test_nvector_sycl', ['10', '0', '0'],
'Test SYCL N_Vector'))
if '+CVODE' in self.spec:
smoke_tests.append(('cvode/sycl/cvAdvDiff_kry_sycl', [],
- 'Test CVODE with SYCL'))
+ 'Test CVODE with SYCL', True))
return smoke_tests
@@ -752,7 +753,8 @@ class Sundials(CMakePackage, CudaPackage, ROCmPackage):
for smoke_test in self._smoke_tests:
work_dir = join_path(self._smoke_tests_path, os.path.dirname(smoke_test[0]))
with working_dir(work_dir):
- self.run_test(exe=cmake_bin, options=['.'])
+ if smoke_test[3]: # use cmake
+ self.run_test(exe=cmake_bin, options=['.'])
self.run_test(exe='make')
def run_smoke_tests(self):