aboutsummaryrefslogtreecommitdiffstats
path: root/tests/gpgscm/tests.scm
diff options
context:
space:
mode:
authorJustus Winter <[email protected]>2016-11-03 13:37:15 +0000
committerJustus Winter <[email protected]>2016-11-03 13:43:23 +0000
commit1ec07cbc209f247fd85704f5701564e31aa56d0b (patch)
tree305188a94dc0351cb3bf7f08dceef4ef96790c93 /tests/gpgscm/tests.scm
parentgpgconf: Add a new field to the --query-swdb output. (diff)
downloadgnupg-1ec07cbc209f247fd85704f5701564e31aa56d0b.tar.gz
gnupg-1ec07cbc209f247fd85704f5701564e31aa56d0b.zip
gpgscm,tests: Add new functions to the test environment.
* tests/gpgscm/lib.scm (first, last, powerset): New functions. * tests/gpgscm/tests.scm (interactive-shell): New function. * tests/openpgp/Makefile.am (EXTRA_DIST): Add new file. * tests/openpgp/README: Document 'interactive-shell'. * tests/openpgp/shell.scm: New file. Signed-off-by: Justus Winter <[email protected]>
Diffstat (limited to 'tests/gpgscm/tests.scm')
-rw-r--r--tests/gpgscm/tests.scm8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/gpgscm/tests.scm b/tests/gpgscm/tests.scm
index 8986a705a..d89a96f88 100644
--- a/tests/gpgscm/tests.scm
+++ b/tests/gpgscm/tests.scm
@@ -481,3 +481,11 @@
(catch (list tmpfiles source *error*)
(apply function `(,(call-with-input-file source read-all) ,@args)))
(list tmpfiles source #f)))
+
+;;
+;; Developing and debugging tests.
+;;
+
+;; Spawn an os shell.
+(define (interactive-shell)
+ (call-with-fds `(,(getenv "SHELL")) 0 1 2))