]> git.ipfire.org Git - thirdparty/openssl.git/commit - test/ssl_test_ctx_test.c
Fix common test framework options
authorMatt Caswell <matt@openssl.org>
Thu, 30 Jan 2020 15:30:17 +0000 (15:30 +0000)
committerMatt Caswell <matt@openssl.org>
Mon, 3 Feb 2020 11:41:56 +0000 (11:41 +0000)
commit8d242823ed2270e2907914fb09004ae30263fb00
treebbcfc0f2c0b01536b3dd2018ff4244c6e5331ccb
parentef071222020be2096fb9f3aaef8bfe18ae9a40c9
Fix common test framework options

PR#6975 added the ability to our test framework to have common options to
all tests. For example providing the option "-test 5" to one of our test
programs will just run test number 5. This can be useful when debugging
tests.

Unforuntately this does not work well for a number of tests. In particular
those tests that call test_get_argument() without first skipping over these
common test options will not get the expected value. Some tests did this
correctly but a large number did not.

A helper function is introduced, test_skip_common_options(), to make this
easier for those tests which do not have their own specialised test option
handling, but yet still need to call test_get_argument(). This function
call is then added to all those tests that need it.

Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/10975)
28 files changed:
test/asynciotest.c
test/clienthellotest.c
test/cmp_msg_test.c
test/cmp_protect_test.c
test/cmsapitest.c
test/d2i_test.c
test/danetest.c
test/dtlstest.c
test/evp_test.c
test/fatalerrtest.c
test/gosttest.c
test/ocspapitest.c
test/params_conversion_test.c
test/recordlentest.c
test/servername_test.c
test/ssl_test.c
test/ssl_test_ctx_test.c
test/sslapitest.c
test/sslbuffertest.c
test/sslcorrupttest.c
test/testutil.h
test/testutil/options.c
test/tls13ccstest.c
test/v3ext.c
test/verify_extra_test.c
test/x509_check_cert_pkey_test.c
test/x509_dup_cert_test.c
test/x509aux.c