From cb9bb7350d4192553683e61e64894e8ed197b44c Mon Sep 17 00:00:00 2001 From: "Dr. David von Oheimb" Date: Fri, 3 Jul 2020 14:19:43 +0200 Subject: 99-test_fuzz.t: Clean up and re-organize such that sub-tests could be split easily Reviewed-by: Richard Levitte (Merged from https://github.com/openssl/openssl/pull/12359) --- fuzz/README.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'fuzz') diff --git a/fuzz/README.md b/fuzz/README.md index a713f85325..deb7a43168 100644 --- a/fuzz/README.md +++ b/fuzz/README.md @@ -99,7 +99,7 @@ Reproducing issues If a fuzzer generates a reproducible error, you can reproduce the problem using the fuzz/*-test binaries and the file generated by the fuzzer. They binaries -don't need to be build for fuzzing, there is no need to set CC or the call +don't need to be built for fuzzing, there is no need to set CC or the call config with enable-fuzz-* or -fsanitize-coverage, but some of the other options above might be needed. For instance the enable-asan or enable-ubsan option might be useful to show you when the problem happens. For the client and server fuzzer @@ -110,6 +110,20 @@ To reproduce the crash you can run: fuzz/$FUZZER-test $file +To do all the tests of a specific fuzzer such as asn1 you can run + + fuzz/asn1-test fuzz/corpora/asn1 +or + make test TESTS=fuzz_test FUZZ_TESTS=asn1 + +To run several fuzz tests you can use for instance: + + make test TESTS=test_fuzz FUZZ_TESTS="cmp cms" + +To run all fuzz tests you can use: + + make test TESTS=test_fuzz + Random numbers -------------- -- cgit v1.2.1