summaryrefslogtreecommitdiff
path: root/tests/Test_indefinite.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Test_indefinite.c')
-rw-r--r--tests/Test_indefinite.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/tests/Test_indefinite.c b/tests/Test_indefinite.c
index 3387a11..e951b46 100644
--- a/tests/Test_indefinite.c
+++ b/tests/Test_indefinite.c
@@ -48,6 +48,10 @@ main (int argc, char *argv[])
ssize_t size;
const char *treefile = getenv ("ASN1PKIX");
const char *indeffile = getenv ("ASN1INDEF");
+ int verbose = 0;
+
+ if (argc > 1)
+ verbose = 1;
if (!treefile)
treefile = "pkix.asn";
@@ -55,10 +59,13 @@ main (int argc, char *argv[])
if (!indeffile)
indeffile = "TestIndef.p12";
- printf ("\n\n/****************************************/\n");
- printf ("/* Test sequence : Test_indefinite */\n");
- printf ("/****************************************/\n\n");
- printf ("ASN1TREE: %s\n", treefile);
+ if (verbose)
+ {
+ printf ("\n\n/****************************************/\n");
+ printf ("/* Test sequence : Test_indefinite */\n");
+ printf ("/****************************************/\n\n");
+ printf ("ASN1TREE: %s\n", treefile);
+ }
/* Check version */
if (asn1_check_version ("0.2.11") == NULL)