1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-06-01 22:28:02 +02:00
gnupg/tests
Justus Winter 404e8a4136 gpgscm: Keep a history of calls for error messages.
* tests/gpgscm/init.scm (vm-history-print): New function.
* tests/gpgscm/opdefines.h: New opcodes 'CALLSTACK_POP', 'APPLY_CODE',
and 'VM_HISTORY'.
* tests/gpgscm/scheme-private.h (struct history): New definition.
(struct scheme): New field 'history'.
* tests/gpgscm/scheme.c (gc): Mark objects in the history.
(history_free): New function.
(history_init): Likewise.
(history_mark): Likewise.
(add_mod): New macro.
(sub_mod): Likewise.
(tailstack_clear): New function.
(callstack_pop): Likewise.
(callstack_push): Likewise.
(tailstack_push): Likewise.
(tailstack_flatten): Likewise.
(callstack_flatten): Likewise.
(history_flatten): Likewise.
(opexe_0): New variable 'callsite', keep track of the expression if it
is a call, implement the new opcodes, record function applications in
the history.
(opexe_6): Implement new opcode.
(scheme_init_custom_alloc): Initialize history.
(scheme_deinit): Free history.
* tests/gpgscm/scheme.h (USE_HISTORY): New macro.
--

This patch makes TinySCHEME keep a history of function calls.  This
history can be used to produce helpful error messages.  The history
data structure is inspired by MIT/GNU Scheme.

Signed-off-by: Justus Winter <justus@g10code.com>

fu history
2016-12-08 17:15:20 +01:00
..
extrasamples Added sample certificates. 2006-05-16 09:54:41 +00:00
fake-pinentries doc: Update license information. 2016-09-19 10:03:26 +02:00
gpgscm gpgscm: Keep a history of calls for error messages. 2016-12-08 17:15:20 +01:00
migrations Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00
openpgp tests: Add test for '--quick-set-expire'. 2016-12-07 15:12:19 +01:00
pkits Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00
samplekeys Add the STEED Self-Signing Nonthority certificate. 2011-12-20 15:35:42 +01:00
samplemsgs More samples 2004-02-17 15:07:27 +00:00
567064FE6D14A17B2D811ABB407728BC558AA455 added test certificate and secret key 2001-12-06 20:19:52 +00:00
asschk.c Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00
cert_cci_sphinx_ca.pem A few test certificates 2002-01-29 15:46:55 +00:00
cert_cci_test_wzs.pem A few test certificates 2002-01-29 15:46:55 +00:00
cert_cci_test_zs.pem A few test certificates 2002-01-29 15:46:55 +00:00
cert_cci_user02.pem A few test certificates 2002-01-29 15:46:55 +00:00
cert_cci_user03.pem A few test certificates 2002-01-29 15:46:55 +00:00
cert_cci_user04.pem A few test certificates 2002-01-29 15:46:55 +00:00
cert_cci_user06.pem A few test certificates 2002-01-29 15:46:55 +00:00
cert_cci_user07.pem A few test certificates 2002-01-29 15:46:55 +00:00
cert_testpki_testpca.pem A few test certificates 2002-01-29 15:46:55 +00:00
ChangeLog-2011 Generate the ChangeLog from commit logs. 2011-12-01 11:09:02 +01:00
crl_testpki_testpca.pem A few test certificates 2002-01-29 15:46:55 +00:00
inittests Fix bug 1001. 2009-02-19 16:19:16 +00:00
key_g10code_pete1.pem released 0.3.5 2002-04-15 17:15:21 +00:00
key_g10code_theo1.pem yet another test certificate 2002-03-28 17:25:28 +00:00
Makefile.am Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00
runtest Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
skey_g10code_test1.pem added test certificate and secret key 2001-12-06 20:19:52 +00:00
sm-sign+verify Tweaked the build system so that make distcheck finanly said Well 2002-08-09 18:16:02 +00:00
sm-verify Tweaked the build system so that make distcheck finanly said Well 2002-08-09 18:16:02 +00:00
text-1.dsig.pem * asschk.c: Added some new features. 2002-08-08 16:32:01 +00:00
text-1.osig-bad.pem * asschk.c: Added some new features. 2002-08-08 16:32:01 +00:00
text-1.osig-badusage.pem new test certs and messages 2002-09-03 14:54:18 +00:00
text-1.osig.pem * asschk.c: Added some new features. 2002-08-08 16:32:01 +00:00
text-1.txt * asschk.c: Added some new features. 2002-08-08 16:32:01 +00:00
text-2.osig-bad.pem * asschk.c: Added some new features. 2002-08-08 16:32:01 +00:00
text-2.osig.pem * asschk.c: Added some new features. 2002-08-08 16:32:01 +00:00
text-2.txt * asschk.c: Added some new features. 2002-08-08 16:32:01 +00:00
text-3.txt * asschk.c: Added some new features. 2002-08-08 16:32:01 +00:00