Message ID | 20220422115258.63649-2-paul@apatience.com |
---|---|
State | Accepted |
Headers | show |
Series | gnu: python-vedo: Update to 2022.2.0. | expand |
Context | Check | Description |
---|---|---|
cbaines/comparison | success | View comparision |
cbaines/git branch | success | View Git branch |
cbaines/applying patch | success | View Laminar job |
cbaines/issue | success | View issue |
Paul A. Patience schreef op vr 22-04-2022 om 11:53 [+0000]: > - (invoke "ctest" "-R" "demo" "-R" "mpi"))))))) > + (lambda* (#:key tests? #:allow-other-keys) > + (when tests? > + (and (invoke "make" "unittests") > + (invoke "make" "demos") > + (invoke "ctest" "-R" "unittests") > + (invoke "ctest" "-R" "demo" "-R" "serial") > + (invoke "ctest" "-R" "demo" "-R" "mpi")))))))) The 'and' is pointless, it can be removed --- IIUC, 'invoke' throws exceptions, it doesn't return #false. Anyway, honouring #:tests? is nice (for cross-compilation and --without-tests=...). Greetings, Maxime.
diff --git a/gnu/packages/simulation.scm b/gnu/packages/simulation.scm index 3f2d8e136d..aebb6be15e 100644 --- a/gnu/packages/simulation.scm +++ b/gnu/packages/simulation.scm @@ -549,12 +549,13 @@ (define-public fenics-dolfin ")\n") port))) #t)) (replace 'check - (lambda _ - (and (invoke "make" "unittests") - (invoke "make" "demos") - (invoke "ctest" "-R" "unittests") - (invoke "ctest" "-R" "demo" "-R" "serial") - (invoke "ctest" "-R" "demo" "-R" "mpi"))))))) + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (and (invoke "make" "unittests") + (invoke "make" "demos") + (invoke "ctest" "-R" "unittests") + (invoke "ctest" "-R" "demo" "-R" "serial") + (invoke "ctest" "-R" "demo" "-R" "mpi")))))))) (home-page "https://bitbucket.org/fenics-project/dolfin/") (synopsis "Problem solving environment for differential equations") (description