aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/ChangeLog5
-rw-r--r--tests/gpgsm/t-import.c16
2 files changed, 21 insertions, 0 deletions
diff --git a/tests/ChangeLog b/tests/ChangeLog
index adbcc480..f22e1abe 100644
--- a/tests/ChangeLog
+++ b/tests/ChangeLog
@@ -1,3 +1,8 @@
+2002-06-26 Werner Koch <[email protected]>
+
+ * gpgsm/t-import.c (print_op_info): New.
+ (main): Print operation info.
+
2002-06-25 Werner Koch <[email protected]>
* gpgsm/Makefile.am (DISTCLEANFILES): new.
diff --git a/tests/gpgsm/t-import.c b/tests/gpgsm/t-import.c
index f62ff003..974cdd93 100644
--- a/tests/gpgsm/t-import.c
+++ b/tests/gpgsm/t-import.c
@@ -57,6 +57,20 @@ make_filename (const char *fname)
return buf;
}
+static void
+print_op_info (GpgmeCtx c)
+{
+ char *s = gpgme_get_op_info (c, 0);
+
+ if (!s)
+ puts ("<!-- no operation info available -->");
+ else {
+ puts (s);
+ free (s);
+ }
+}
+
+
int
main (int argc, char **argv)
{
@@ -76,6 +90,7 @@ main (int argc, char **argv)
fail_if_err (err);
err = gpgme_op_import (ctx, in);
+ print_op_info (ctx);
fail_if_err (err);
gpgme_data_release (in);
@@ -84,6 +99,7 @@ main (int argc, char **argv)
fail_if_err (err);
err = gpgme_op_import (ctx, in);
+ print_op_info (ctx);
fail_if_err (err);
gpgme_data_release (in);