oss-fuzz icon indicating copy to clipboard operation
oss-fuzz copied to clipboard

CIFuzz does not handle fuzztest scripts

Open vrabaud opened this issue 1 year ago • 3 comments

When creating fuzztest scripts with the usual convention (bash script with @ in the name, calling the fuzztest binary), no test is found in CIFuzz:

2024-02-12 21:57:14,894 - root - INFO - ClusterFuzzDeployment: <clusterfuzz_deployment.OSSFuzz object at 0x7f26548f72b0>.
2024-02-12 21:57:14,894 - root - INFO - run fuzzers MODE is: code-change. Runner: <run_fuzzers.CiFuzzTargetRunner object at 0x7f26551f3c70>.
2024-02-12 21:57:14,895 - root - INFO - Using address sanitizer.
2024-02-12 21:57:14,898 - root - INFO - Fuzz targets: []
2024-02-12 21:57:14,898 - root - ERROR - No fuzz targets were found in out directory: /github/workspace/build-out.
2024-02-12 21:57:14,898 - root - ERROR - Error occurred while running in workspace /github/workspace.

Probably due to https://github.com/google/oss-fuzz/blob/2fded4446bdd6e89f5f685d3bc66dab8e1fc6afc/infra/utils.py#L145

(For reference, this is where our project, libavif, creates its tests: https://github.com/AOMediaCodec/libavif/blob/b10d2697e9ed2fb09cb722335ff4342c353612b8/tests/oss-fuzz/build.sh#L84)

vrabaud avatar Feb 13 '24 14:02 vrabaud

Hmmm...I'll try to take a look today.

jonathanmetzman avatar Feb 26 '24 13:02 jonathanmetzman

Sorry, I'm putting out some fires and will need to get back to this, later this week.

jonathanmetzman avatar Feb 27 '24 00:02 jonathanmetzman

Hi, any progress on that? Thx!

vrabaud avatar Mar 25 '24 08:03 vrabaud