From: Fabian Castelli <50630942+gfcas@users.noreply.github.com> Date: Thu, 27 May 2021 10:33:39 +0000 (+0200) Subject: Add option to run tests after installation (#179) X-Git-Tag: v9.3.0-r3~16 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2ae03a72954d3817e1cc968124999e71c9c56859;p=candi.git Add option to run tests after installation (#179) * Add option to run tests after installation * Change default value to OFF --- 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