Skip to content

Commit

Permalink
options: add custom options for tests
Browse files Browse the repository at this point in the history
OSS-Fuzz allows passing custom options to a fuzzing test, see [1] and
[2]. These options files are specific for OSS-Fuzz. However, it is
convenient to store them out of oss-fuzz repository.

Patch adds three options files for tests luaL_loadbuffer_test,
luaL_addgsub_test and luaL_gsub_test with disabled leaks detection
(`detect_leaks=0`).

1. https://github.com/google/oss-fuzz/blob/4d1f3ec4df81f24605f442fdd42d1769161080ae/infra/base-images/base-runner/parse_options.py#L22
2. https://google.github.io/oss-fuzz/getting-started/new-project-guide/#dictionaries

Related to ligurio/lua-c-api-tests#25
Related to ligurio/lua-c-api-tests#28
  • Loading branch information
ligurio committed Jul 23, 2023
1 parent 223b1ae commit 98db57a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions luaL_addgsub_test.options
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[libfuzzer]
detect_leaks=0
2 changes: 2 additions & 0 deletions luaL_gsub_test.options
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[libfuzzer]
detect_leaks=0
2 changes: 2 additions & 0 deletions luaL_loadbuffer_test.options
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[libfuzzer]
detect_leaks=0

0 comments on commit 98db57a

Please sign in to comment.