openssl/test/testutil
Matt Caswell 8d242823ed 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)
2020-02-03 11:41:56 +00:00
..
apps_mem.c testutil: ensure good treatment of argv on non-Unix platforms 2019-03-05 08:53:19 +01:00
basic_output.c Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
cb.c Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
driver.c Deprecate most of debug-memory 2019-12-14 20:57:35 +01:00
format_output.c Add a format attribute to the format functions and fix the broken format 2018-12-09 22:02:50 -05:00
main.c Updated test command line parsing to support commmon commands 2019-02-11 15:31:51 +01:00
options.c Fix common test framework options 2020-02-03 11:41:56 +00:00
output_helpers.c Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
output.h Fix header file include guard names 2019-09-28 20:26:36 +02:00
random.c Add weak platform independent PRNG to test framework. 2019-07-29 09:11:15 +10:00
stanza.c Explicitly test against NULL; do not use !p or similar 2019-10-09 21:32:15 +02:00
tap_bio.c don't pass const string where a modifyable string is expected 2018-12-09 22:02:49 -05:00
test_cleanup.c Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
test_options.c Updated test command line parsing to support commmon commands 2019-02-11 15:31:51 +01:00
tests.c Test skip option. 2019-05-09 20:21:09 +10:00
testutil_init.c testutil_init.c: fix compilation error with enable-trace 2020-01-10 13:28:48 +10:00
tu_local.h Test skip option. 2019-05-09 20:21:09 +10:00