diff options
author | Justus Winter <[email protected]> | 2016-11-17 10:06:42 +0000 |
---|---|---|
committer | Justus Winter <[email protected]> | 2016-12-13 14:09:26 +0000 |
commit | b1e67a725d17ff1605ba79d8bb61f37c4a48f0a5 (patch) | |
tree | 01dac7d988faf26b79d702e7784e788e538fc2fb | |
parent | gpgscm: Move the test runner to the Scheme library. (diff) | |
download | libgpg-error-b1e67a725d17ff1605ba79d8bb61f37c4a48f0a5.tar.gz libgpg-error-b1e67a725d17ff1605ba79d8bb61f37c4a48f0a5.zip |
gpgscm: Generalize the test runner.
* tests/gpgscm/tests.scm (test::scm) Add explicit name argument.
(test::binary): Likewise. Also, add missing unquote.
* tests/openpgp/run-tests.scm: Adapt accordingly.
Signed-off-by: Justus Winter <[email protected]>
-rw-r--r-- | tests.scm | 17 |
1 files changed, 9 insertions, 8 deletions
@@ -553,18 +553,19 @@ ;; A single test. (define test (package - (define (scm path . args) + (define (scm name path . args) ;; Start the process. - (define (spawn-scm args in out err) + (define (spawn-scm args' in out err) (spawn-process-fd `(,*argv0* ,@(verbosity (*verbose*)) - ,(locate-test path) ,@args) in out err)) - (new (basename path) #f spawn-scm #f #f CLOSED_FD)) + ,(locate-test path) + ,@args' ,@args) in out err)) + (new name #f spawn-scm #f #f CLOSED_FD)) - (define (binary path . args) + (define (binary name path . args) ;; Start the process. - (define (spawn-binary args in out err) - (spawn-process-fd `(path ,@args) in out err)) - (new (basename path) #f spawn-binary #f #f CLOSED_FD)) + (define (spawn-binary args' in out err) + (spawn-process-fd `(,path ,@args' ,@args) in out err)) + (new name #f spawn-binary #f #f CLOSED_FD)) (define (new name directory spawn pid retcode logfd) (package |