Reproduce, fix and commit script Fuzzing failures. Use when requesting to fix the test cases in the Flecs script Fuzzing test suite that have been generated by the fuzzer.
Run the full reproducer suite in Docker, isolate failing Fuzzing.* tests, fix one case at a time in flecs/, and commit each case separately with existing project commit style.
docker build -f Dockerfile.repro -t flecs-repro .
docker run --rm flecs-repro bash -lc "cd /work/flecs && bake rebuild -D FLECS_SCRIPT_MATH -D FLECS_USE_OS_ALLOC; bake test/script -D FLECS_SCRIPT_MATH -D FLECS_USE_OS_ALLOC; bake run test/script -- Fuzzing -j 12"
Implement a fix for each failure, create a separate commit message for each fix.
To run a single test, use the following command:
docker run --rm flecs-repro bash -lc "cd /work/flecs && bake rebuild -D FLECS_SCRIPT_MATH -D FLECS_USE_OS_ALLOC; bake test/script -D FLECS_SCRIPT_MATH -D FLECS_USE_OS_ALLOC; bake run test/script -- Fuzzing.55"
This will only run test 55 in the test/script Fuzzing test suite.
docker run --rm flecs-repro bash -lc "cd /work/flecs && bake rebuild -D FLECS_SCRIPT_MATH -D FLECS_USE_OS_ALLOC --cfg sanitize; bake test/script -D FLECS_SCRIPT_MATH -D FLECS_USE_OS_ALLOC --cfg sanitize; bake run test/script --cfg sanitize -- Fuzzing -j 12"