Skip to content

[Better Tests] Add tests for fake blackbox fuzzer - #5506

Draft
IvanBM18 wants to merge 2 commits into
masterfrom
better-tests/fake-blackbox-fuzzer-tests
Draft

IvanBM18 wants to merge 2 commits into
masterfrom
better-tests/fake-blackbox-fuzzer-tests

Conversation

@IvanBM18

@IvanBM18 IvanBM18 commented Sep 29, 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

Overview

  • Add test_suites/data/fuzzer/blackbox/run_test.py (12 pytest cases) for the fake blackbox fuzzer.
  • Runs run.py as a subprocess with --flag=value args, the same way fuzz_task.py invokes blackbox fuzzers.
  • Covers: fuzz- prefix, non-empty and executable testcases, exit codes, the Python crash signature the stack analyzer keys on (the marker as a standalone line, plus .py", line), --failing_cases vs FAILING_CASES (CLI wins), clamping, --distinct_crashes / DISTINCT_CRASHES (only with failing_cases, env must be exactly True).

Background

Stacked on top of the fake blackbox fuzzer PR. Kept as a draft for now since the new test suites don't have a runner or CI step yet (butler py_unittest doesn't discover test_suites/).

Run locally with:

pipenv run pytest test_suites/data/fuzzer/blackbox/run_test.py

@IvanBM18
IvanBM18 added this pull request to stack #5507 September 29, 2026 02:07
@IvanBM18
IvanBM18 force-pushed the better-tests/fake-blackbox-fuzzer-tests branch 2 times, most recently from d3680c8 to 0f0d8c8 Compare October 1, 2026 19:13
Base automatically changed from better-tests/fake-blackbox-fuzzer to master October 7, 2026 20:27
Adds run_test.py, which runs run.py as a subprocess the same way fuzz_task.py does and checks the generated testcases: prefix, executable bit, exit codes, the Python crash signature the stack analyzer keys on, --failing_cases / FAILING_CASES, and --distinct_crashes / DISTINCT_CRASHES.
@IvanBM18
IvanBM18 force-pushed the better-tests/fake-blackbox-fuzzer-tests branch from 0f0d8c8 to 262672d Compare October 7, 2026 20:27

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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant