]> https://gitweb.dealii.org/ - candi.git/commitdiff
Add option to run tests after installation (#179)
authorFabian Castelli <50630942+gfcas@users.noreply.github.com>
Thu, 27 May 2021 10:33:39 +0000 (12:33 +0200)
committerGitHub <noreply@github.com>
Thu, 27 May 2021 10:33:39 +0000 (12:33 +0200)
* Add option to run tests after installation

* Change default value to OFF

candi.cfg
deal.II-toolchain/packages/dealii.package

index dd29da66a736ea2dd03e7e730389d6a16a6b7f2e..b9e9dabb00c584bf638fc5cefb3935e14f4e7069 100644 (file)
--- 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:
index 0ef317c2ecb35822efcac42f9b448efa28e714a3..2f24ef5f3d99ad44d7df131d6d00d8b5ce731864 100644 (file)
@@ -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

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.