From 2ae03a72954d3817e1cc968124999e71c9c56859 Mon Sep 17 00:00:00 2001 From: Fabian Castelli <50630942+gfcas@users.noreply.github.com> Date: Thu, 27 May 2021 12:33:39 +0200 Subject: [PATCH] Add option to run tests after installation (#179) * Add option to run tests after installation * Change default value to OFF --- candi.cfg | 3 +++ deal.II-toolchain/packages/dealii.package | 8 ++++++++ 2 files changed, 11 insertions(+) diff --git a/candi.cfg b/candi.cfg index dd29da6..b9e9dab 100644 --- a/candi.cfg +++ b/candi.cfg @@ -36,6 +36,9 @@ NATIVE_OPTIMIZATIONS=OFF # Option {ON|OFF}: Enable building of dealii examples? BUILD_EXAMPLES=ON +# Option {ON|OFF}: Run tests after installation? +RUN_DEAL_II_TESTS=OFF + # Choose the python interpreter to use. We pick python2, python3, # python in that order by default. If you want to override this # choice, uncomment the following: diff --git a/deal.II-toolchain/packages/dealii.package b/deal.II-toolchain/packages/dealii.package index 0ef317c..2f24ef5 100644 --- a/deal.II-toolchain/packages/dealii.package +++ b/deal.II-toolchain/packages/dealii.package @@ -222,6 +222,14 @@ fi ################################################################################ +package_specific_install() { + if [ ${RUN_DEAL_II_TESTS} = ON ]; then + make test 2>&1 | tee candi_test.log + fi +} + + + package_specific_conf() { ############################################################################ # Generate modulefile -- 2.39.5