Skip to content

[Better Tests] Add tests for coverage-guided fuzz targets - #5527

Draft
IvanBM18 wants to merge 1 commit into
masterfrom
better-tests/06b-coverage-guided-fuzzer-tests
Draft

IvanBM18 wants to merge 1 commit into
masterfrom
better-tests/06b-coverage-guided-fuzzer-tests

Conversation

@IvanBM18

@IvanBM18 IvanBM18 commented Oct 5, 2026 •

Copy link
Copy Markdown
Collaborator

WIP: Created just in case im asked to add unit tests for the fake blackbox fuzzer, else this one will be closed

Bug: b/555386435

Overview

Before wiring the coverage-guided fuzz targets into full end-to-end fuzz_task integration suites, we want fast standalone tests confirming each binary's exit code, AddressSanitizer crash signature, crash-* artifact generation, and alignment with ClusterFuzz's constants.RUNS_TO_REPRODUCE threshold.

To run the tests use:

pytest test_suites/data/fuzzer/coverage_guided/coverage_guided_test.py

Note: this ones doesn't require to import src/third_party since they are not testing CF code :D

Changes

  • Add test_suites/data/fuzzer/coverage_guided/coverage_guided_test.py (TestCoverageGuidedFuzzers) to verify the behavior of the coverage-guided fuzz targets:
  • Add test_suites/data/fuzzer/coverage_guided/__init__.py for test discovery and lint compliance.

@IvanBM18
IvanBM18 added this pull request to stack #5528 October 6, 2026 00:05
@IvanBM18
IvanBM18 requested a review from dylanjew October 6, 2026 00:22
@IvanBM18 IvanBM18 added the Tests PRs focused merely on tests suite changes label Oct 6, 2026
Base automatically changed from better-tests/06a-coverage-guided-fuzzers to master October 13, 2026 21:58
@IvanBM18
IvanBM18 force-pushed the better-tests/06b-coverage-guided-fuzzer-tests branch from bddca97 to 129e729 Compare October 13, 2026 21:58

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Tests PRs focused merely on tests suite changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant