dealii: run tests only when self.run_tests=true

This commit is contained in:
Denis Davydov 2016-07-11 10:22:29 +02:00
parent 1cc6e42682
commit 84afaf385f

View File

@ -194,12 +194,12 @@ def install(self, spec, prefix):
])
cmake('.', *options)
make()
make("test")
if self.run_tests: make("test")
make("install")
# run some MPI examples with different solvers from PETSc and Trilinos
if self.run_tests:
env['DEAL_II_DIR'] = prefix
print('=====================================')
print('============ EXAMPLES ===============')
@ -246,9 +246,10 @@ def install(self, spec, prefix):
# change Linear Algebra to Trilinos
# The below filter_file should be different for versions
# before and after 8.4.0
if spec.satisfies('@8.4.0:') or spec.satisfies('@dev'):
if spec.satisfies('@8.4.0:'):
filter_file(r'(\/\/ #define FORCE_USE_OF_TRILINOS.*)',
('#define FORCE_USE_OF_TRILINOS'), 'step-40.cc')
('#define FORCE_USE_OF_TRILINOS'),
'step-40.cc')
else:
filter_file(r'(#define USE_PETSC_LA.*)',
('// #define USE_PETSC_LA'), 'step-40.cc')
@ -258,7 +259,7 @@ def install(self, spec, prefix):
# the rest of the tests on step 40 only works for
# dealii version 8.4.0 and after
if spec.satisfies('@8.4.0:') or spec.satisfies('@dev'):
if spec.satisfies('@8.4.0:'):
print('=====================================')
print('=== Step-40 Trilinos SuperluDist ====')
print('=====================================')