Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot specify cache-dir to run fuzz tests using zig test -ffuzz #21986

Open
dimdin opened this issue Nov 14, 2024 · 0 comments
Open

Cannot specify cache-dir to run fuzz tests using zig test -ffuzz #21986

dimdin opened this issue Nov 14, 2024 · 0 comments
Labels
bug Observed behavior contradicts documented or intended behavior

Comments

@dimdin
Copy link

dimdin commented Nov 14, 2024

Zig Version

0.14.0-dev.2243+9ebce51e1

Steps to Reproduce and Observed Behavior

❯ zig-dev test -ffuzz test.zig
thread 16123 panic: missing --cache-dir=[path] argument
/home/din/zig/master/lib/compiler/test_runner.zig:50:48: 0x1122918 in main (test)
        const cache_dir = opt_cache_dir orelse @panic("missing --cache-dir=[path] argument");
 
❯ zig-dev test -ffuzz test.zig --cache-dir=/home/din/.cache/zig/
error: unrecognized parameter: '--cache-dir=/home/din/.cache/zig/'

❯ zig-dev test -ffuzz test.zig --cache-dir /home/din/.cache/zig/
thread 16032 panic: missing --cache-dir=[path] argument
/home/din/zig/master/lib/compiler/test_runner.zig:50:48: 0x1122918 in main (test)
        const cache_dir = opt_cache_dir orelse @panic("missing --cache-dir=[path] argument");

Expected Behavior

I am expecting zig test to accept --cache-dir=/home/din/.cache/zig as a parameter
or -ffuzz to not require a cache-dir parameter for fuzzing.

@dimdin dimdin added the bug Observed behavior contradicts documented or intended behavior label Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Observed behavior contradicts documented or intended behavior
Projects
None yet
Development

No branches or pull requests

1 participant