Make sure that apps/openssl prefixes its output with '# ' during tests
authorRichard Levitte <levitte@openssl.org>
Sun, 28 Jan 2018 08:49:46 +0000 (09:49 +0100)
committerRichard Levitte <levitte@openssl.org>
Thu, 1 Feb 2018 06:10:48 +0000 (07:10 +0100)
commit71bb86f0dc72c49d9efc098a71a6654004a2035a
tree49c531123f5e7a05775a008390c987478a05389a
parent39556e63ef6c079d144b07d7f492152abf9efe77
Make sure that apps/openssl prefixes its output with '# ' during tests

The reason to do this is that some output might start with an 'ok',
which TAP catches and takes for TAP output.  The TAP compatible way is
to make all output it shouldn't catch look like comments.

We do this by setting the environment variable HARNESS_OSSL_PREFIX
during tests.  When that is set, apps/openssl uses BIO_f_linebuffer
and sets its prefix to the content of that environment variable.

Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5224)
apps/apps.c
apps/apps.h
apps/openssl.c
util/perl/OpenSSL/Test.pm