[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/15: gnu: scilab: Activate tests and disable failing tests.
|
From: |
guix-commits |
|
Subject: |
03/15: gnu: scilab: Activate tests and disable failing tests. |
|
Date: |
Thu, 23 Nov 2023 06:58:15 -0500 (EST) |
civodul pushed a commit to branch master
in repository guix.
commit d2a4beaf04d90fd26495ac6e05ddc2cae1a96524
Author: Nicolas Graves <ngraves@ngraves.fr>
AuthorDate: Mon Nov 6 00:51:45 2023 +0100
gnu: scilab: Activate tests and disable failing tests.
* gnu/packages/maths.scm (scilab): Activate tests and disable failing tests.
[arguments]:
(tests?): Activate tests.
(phases):
[remove-desktop-files]: Extend and rename to restrain-to-scilab-cli.
[disable-failing-tests]: Add phase.
Change-Id: Icfec349c6efe14e7787ba8d385e5d51f82be82ea
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
gnu/packages/maths.scm | 33 +++++++++++++++++++++++++--------
1 file changed, 25 insertions(+), 8 deletions(-)
diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index 750de949b7..6b208d188a 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -9627,8 +9627,6 @@ computation is supported via MPI.")
tk))
(arguments
(list
- ;; The tests require java code.
- #:tests? #f
#:configure-flags
#~(list
"--enable-relocatable"
@@ -9668,12 +9666,31 @@ computation is supported via MPI.")
"modules/scicos/src/translator/makefile.mak"
"modules/scicos/src/modelica_compiler/makefile.mak")
(("nums\\.cmx?a") ""))))
- ;; Install only scilab-cli.desktop
- (add-after 'unpack 'remove-desktop-files
- (lambda _
- (substitute* "desktop/Makefile.am"
- (("desktop_DATA =")
- "desktop_DATA = scilab-cli.desktop\nDUMMY ="))))
+ (add-after 'unpack 'restrain-to-scilab-cli
+ (lambda _
+ ;; Install only scilab-cli.desktop
+ (substitute* "desktop/Makefile.am"
+ (("desktop_DATA =")
+ "desktop_DATA = scilab-cli.desktop\nDUMMY ="))
+ ;; Replace scilab with scilab-cli for tests.
+ (substitute* "Makefile.incl.am"
+ (("scilab-bin") "scilab-cli-bin")
+ (("scilab -nwni") "scilab-cli")
+ ;; Do not install tests, demos and examples.
+ ;; This saves up to 140 Mo in the final output.
+ (("(TESTS|DEMOS|EXAMPLES)_DIR=.*" all kind)
+ (string-append kind "_DIR=")))))
+ (add-before 'check 'disable-failing-tests
+ (lambda _
+ (substitute* "Makefile"
+ (("TESTS = .*")
+ "TESTS =\n"))
+ (substitute* "modules/functions_manager/Makefile"
+ (("check:.*")
+ "check:\n"))
+ (substitute* "modules/types/Makefile"
+ (("\\$\\(MAKE\\) \\$\\(AM_MAKEFLAGS\\) check-am")
+ ""))))
;; These generated files are assumed to be present during
;; the build.
(add-after 'bootstrap 'bootstrap-dynamic_link-scripts
- branch master updated (5023424f16 -> 8d596af2c9), guix-commits, 2023/11/23
- 01/15: services: Add oci-container-service-type., guix-commits, 2023/11/23
- 02/15: gnu: scilab: Remove uneeded code., guix-commits, 2023/11/23
- 04/15: gnu: scilab: Use gexp for tcl and tk libraries., guix-commits, 2023/11/23
- 09/15: gnu: scilab: Set default SCIHOME value., guix-commits, 2023/11/23
- 11/15: gnu: Add coq-for-coqtail., guix-commits, 2023/11/23
- 15/15: gnu: folly: Update to 2023.11.06.00., guix-commits, 2023/11/23
- 03/15: gnu: scilab: Activate tests and disable failing tests.,
guix-commits <=
- 05/15: gnu: scilab: Add phase rewrap-scilab-cli., guix-commits, 2023/11/23
- 06/15: gnu: scilab: Reindent., guix-commits, 2023/11/23
- 08/15: gnu: scilab: Add phase set-version., guix-commits, 2023/11/23
- 07/15: gnu: scilab: Update to 2024.0.0., guix-commits, 2023/11/23
- 10/15: gnu: Add vim-vader., guix-commits, 2023/11/23
- 13/15: gnu: guile-ts: Update to 0.2.0., guix-commits, 2023/11/23
- 14/15: gnu: mpd: Update to 0.23.14., guix-commits, 2023/11/23
- 12/15: gnu: Add vim-coqtail., guix-commits, 2023/11/23