aboutsummaryrefslogtreecommitdiffstats
path: root/tests/openpgp
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2022-11-02 16:03:05 +0000
committerWerner Koch <[email protected]>2022-11-02 16:03:05 +0000
commit9b24d8ab5018c20dc6c917b5a89b3b1fcda3e6f9 (patch)
tree842569e5c197bf3221d11e07b0837af7437d0fac /tests/openpgp
parentagent: Avoid blanks in the ssh key's comment. (diff)
downloadgnupg-9b24d8ab5018c20dc6c917b5a89b3b1fcda3e6f9.tar.gz
gnupg-9b24d8ab5018c20dc6c917b5a89b3b1fcda3e6f9.zip
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.
Diffstat (limited to 'tests/openpgp')
-rw-r--r--tests/openpgp/README4
-rw-r--r--tests/openpgp/shell.scm8
2 files changed, 7 insertions, 5 deletions
diff --git a/tests/openpgp/README b/tests/openpgp/README
index 63f1886c5..1225d4aad 100644
--- a/tests/openpgp/README
+++ b/tests/openpgp/README
@@ -218,8 +218,8 @@ There is one source function, tr:open. To describe a transformation
using some process, use tr:spawn, tr:gpg, or tr:pipe-do. There are
several sinks, although sink is not quite the right term, because the
data is not consumed, and hence one can use them at any position. The
-"sinks" are tr:write-to, tr:call-with-content, tr:assert-identity, and
-tr:assert-weak-identity.
+"sinks" are tr:write-to, tr:call-with-content, tr:assert-identity,
+tr:assert-weak-identity, and tr:assert-same.
A somewhat contrived example demonstrating many functions is:
diff --git a/tests/openpgp/shell.scm b/tests/openpgp/shell.scm
index 347b3a08c..af4f25498 100644
--- a/tests/openpgp/shell.scm
+++ b/tests/openpgp/shell.scm
@@ -47,7 +47,9 @@
(pathsep-split (getenv "PATH"))))
#t)
-(echo "\nEnjoy your test environment. "
+(if (prompt-yes-no? "Run system shell" #t)
+ ((echo "\nEnjoy your test environment. "
"Type 'exit' to exit it, it will be cleaned up after you.\n")
-
-(interactive-shell)
+ (interactive-shell))
+ ((echo "\nEnjoy the REPL.")
+ (interactive-repl (current-environment))))