From fada18edd8905f3321fd1719b1c0a46c66d214af Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Wed, 27 Mar 2024 06:29:25 +0100 Subject: [PATCH] scilab: Better debugging in compilerDetection.sh. --- .../dynamic_link/src/scripts/compilerDetection.sh | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/scilab/modules/dynamic_link/src/scripts/compilerDetection.sh b/scilab/modules/dynamic_link/src/scripts/compilerDetection.sh index 0a22a695555..ead86eb58ac 100755 --- a/scilab/modules/dynamic_link/src/scripts/compilerDetection.sh +++ b/scilab/modules/dynamic_link/src/scripts/compilerDetection.sh @@ -18,10 +18,16 @@ if test -x "$(which gcc 2>/dev/null)"; then fi # Relaunch configure if files are missing -if test ! -s Makefile.orig -o ! -s libtool; then +if test ! -s Makefile.orig -o ! -s libtool; then echo "Detection of C/C++/Fortran Compilers" ./configure --disable-static --disable-dependency-tracking "$@" - mv Makefile Makefile.orig -else + configure_exit_status=$? + if [ $configure_exit_status -ne 0 ]; then + cat config.log + exit $configure_exit_status + else + mv Makefile Makefile.orig + fi +else echo "Detection of compilers already done" fi -- 2.41.0 ef='/guix/commit/tests/records.scm?id=a7f63acfb7864aaa5dd0779d8296fb575875fb0d'>commitdiff
path: root/tests/records.scm
AgeCommit message (Expand)Author
2022-12-27records: match-record supports specifying a different variable name....An example: (match-record obj <my-type> (field1 (field2 custom-var-name) field3) ...) * guix/records.scm (match-record-inner): Add support for the new syntax. * tests/records.scm ("match-record, simple"): Add a simple test case for the new syntax. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Attila Lendvai
2022-12-02records: 'match-record' checks fields at macro-expansion time....This allows 'match-record' to be more efficient (field offsets are computed at compilation time) and to report unknown fields at macro-expansion time. * guix/records.scm (map-fields): New macro. (define-record-type*)[rtd-identifier]: New procedure. Define TYPE as a macro and use a separate identifier for the RTD. (lookup-field, match-record-inner): New macros. (match-record): Rewrite in terms of 'match-error-inner'. * tests/records.scm ("match-record, simple") ("match-record, unknown field"): New tests. * gnu/services/cuirass.scm (cuirass-shepherd-service): Rename 'log-file' local variable to 'main-log-file'. * gnu/services/getmail.scm (serialize-getmail-configuration-file): Move after <getmail-configuration-file> definition. Ludovic Courtès
2022-07-01tests: Add sanitizer test....* tests/records.scm ("define-record-type* & sanitize without default value"): New test. Ludovic Courtès
2021-08-12records: Support field sanitizers....* guix/records.scm (make-syntactic-constructor): Add #:sanitizers. [field-sanitizer]: New procedure. [wrap-field-value]: Honor F's sanitizer. (define-record-type*)[field-sanitizer]: New procedure. Pass #:sanitizer to 'make-syntactic-constructor'. * tests/records.scm ("define-record-type* & sanitize") ("define-record-type* & sanitize & thunked"): New tests. Ludovic Courtès
2021-04-29diagnostics, ui: Adjust to 'read-error' and 'syntax-error' in Guile 3.0.6....* guix/diagnostics.scm (source-properties->location): Add clause for vectors. * guix/ui.scm (report-load-error): Tweak 'read-error' handling for 3.0.6. * tests/guix-package.sh: Relax regexp for the "unbound variable" diagnostic check. * tests/guix-system.sh: Adjust "missing closing paren" check for 3.0.6. * tests/records.scm (location-alist): New procedure. ("define-record-type* & wrong field specifier") ("define-record-type* & wrong field specifier, identifier") ("define-record-type* & duplicate initializers"): Use it. Ludovic Courtès