sundials: use make for some of the smoke tests (#28938)

This commit is contained in:
Cody Balos 2022-02-15 06:03:58 -08:00 committed by GitHub
parent 09a8656f1f
commit cf0c9affff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -688,32 +688,33 @@ def test_install(self):
@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 @@ def build_smoke_tests(self):
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):