mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 13:28:12 -05:00
build: test-driver.scm: Allow running as a standalone script.
* build-aux/test-driver.scm: Add an exec-based shebang and set the script executable bit. (main): Insert a newline after the version string is printed with --version.
This commit is contained in:
parent
93a628c4e4
commit
26a66d0fea
1 changed files with 4 additions and 1 deletions
5
build-aux/test-driver.scm
Normal file → Executable file
5
build-aux/test-driver.scm
Normal file → Executable file
|
@ -1,3 +1,6 @@
|
|||
#!/bin/sh
|
||||
exec guile --no-auto-compile -e main -s "$0" "$@"
|
||||
!#
|
||||
;;;; test-driver.scm - Guile test driver for Automake testsuite harness
|
||||
|
||||
(define script-version "2021-01-26.20") ;UTC
|
||||
|
@ -211,7 +214,7 @@ (define (main . args)
|
|||
(option (cut option-ref opts <> <>)))
|
||||
(cond
|
||||
((option 'help #f) (show-help))
|
||||
((option 'version #f) (format #t "test-driver.scm ~A" script-version))
|
||||
((option 'version #f) (format #t "test-driver.scm ~A~%" script-version))
|
||||
(else
|
||||
(let* ((log (and=> (option 'log-file #f) (cut open-file <> "w0")))
|
||||
(trs (and=> (option 'trs-file #f) (cut open-file <> "wl")))
|
||||
|
|
Loading…
Reference in a new issue