mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
tests: Add tr:assert-same function.
* tests/gpgscm/tests.scm (tr:assert-same-string): New. * tests/openpgp/shell.scm: Option to drop into a REPL.
This commit is contained in:
parent
bd612f2360
commit
9b24d8ab50
3 changed files with 13 additions and 5 deletions
|
@ -493,6 +493,12 @@
|
|||
(fail "mismatch"))
|
||||
(list tmpfiles source #f)))
|
||||
|
||||
(define (tr:assert-same reference)
|
||||
(lambda (tmpfiles source)
|
||||
(if (not (string=? (call-with-input-file source read-all) reference))
|
||||
(fail "mismatch"))
|
||||
(list tmpfiles source #f)))
|
||||
|
||||
(define (tr:call-with-content function . args)
|
||||
(lambda (tmpfiles source)
|
||||
(catch (list tmpfiles source *error*)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue