We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
_xxtestfuzz/README.rst
1 parent 1151dd6 commit 446203eCopy full SHA for 446203e
Modules/_xxtestfuzz/README.rst
@@ -20,18 +20,20 @@ Add the test name on a new line in ``fuzz_tests.txt``.
20
21
In ``fuzzer.c``, add a function to be run::
22
23
- int $test_name (const char* data, size_t size) {
+ static int $fuzz_test_name(const char* data, size_t size) {
24
...
25
return 0;
26
}
27
28
29
And invoke it from ``LLVMFuzzerTestOneInput``::
30
31
- #if _Py_FUZZ_YES(fuzz_builtin_float)
32
- rv |= _run_fuzz(data, size, fuzz_builtin_float);
+ #if !defined(_Py_FUZZ_ONE) || defined(_Py_FUZZ_$fuzz_test_name)
+ rv |= _run_fuzz(data, size, $fuzz_test_name);
33
#endif
34
35
+Don't forget to replace ``$fuzz_test_name`` with your actual test name.
36
+
37
``LLVMFuzzerTestOneInput`` will run in oss-fuzz, with each test in
38
``fuzz_tests.txt`` run separately.
39
0 commit comments