dealii: run tests only when self.run_tests=true
This commit is contained in:
parent
1cc6e42682
commit
84afaf385f
@ -194,12 +194,12 @@ def install(self, spec, prefix):
|
|||||||
])
|
])
|
||||||
|
|
||||||
cmake('.', *options)
|
cmake('.', *options)
|
||||||
|
|
||||||
make()
|
make()
|
||||||
make("test")
|
if self.run_tests: make("test")
|
||||||
make("install")
|
make("install")
|
||||||
|
|
||||||
# run some MPI examples with different solvers from PETSc and Trilinos
|
# run some MPI examples with different solvers from PETSc and Trilinos
|
||||||
|
if self.run_tests:
|
||||||
env['DEAL_II_DIR'] = prefix
|
env['DEAL_II_DIR'] = prefix
|
||||||
print('=====================================')
|
print('=====================================')
|
||||||
print('============ EXAMPLES ===============')
|
print('============ EXAMPLES ===============')
|
||||||
@ -246,9 +246,10 @@ def install(self, spec, prefix):
|
|||||||
# change Linear Algebra to Trilinos
|
# change Linear Algebra to Trilinos
|
||||||
# The below filter_file should be different for versions
|
# The below filter_file should be different for versions
|
||||||
# before and after 8.4.0
|
# 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.*)',
|
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:
|
else:
|
||||||
filter_file(r'(#define USE_PETSC_LA.*)',
|
filter_file(r'(#define USE_PETSC_LA.*)',
|
||||||
('// #define USE_PETSC_LA'), 'step-40.cc')
|
('// #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
|
# the rest of the tests on step 40 only works for
|
||||||
# dealii version 8.4.0 and after
|
# 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('=====================================')
|
||||||
print('=== Step-40 Trilinos SuperluDist ====')
|
print('=== Step-40 Trilinos SuperluDist ====')
|
||||||
print('=====================================')
|
print('=====================================')
|
||||||
|
Loading…
Reference in New Issue
Block a user