feat(fuzz): add gen-fuzz-corpus nix app
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
58f1e8b471
commit
32daaa5e2f
1 changed files with 12 additions and 0 deletions
12
flake.nix
12
flake.nix
|
|
@ -151,6 +151,14 @@
|
|||
echo ""
|
||||
echo "Done: removed $removed fixed, kept $kept still-crashing."
|
||||
'';
|
||||
gen-fuzz-corpus = pkgs.writeShellScriptBin "gen-fuzz-corpus" ''
|
||||
set -euo pipefail
|
||||
export PATH="${pkgs.stdenv.cc}/bin:$PATH"
|
||||
root="$(${pkgs.git}/bin/git rev-parse --show-toplevel)"
|
||||
${pkgs.rustc}/bin/rustc "$root/lib/fuzz/gen_corpus.rs" -o /tmp/gen-fuzz-corpus
|
||||
cd "$root/lib/fuzz"
|
||||
/tmp/gen-fuzz-corpus
|
||||
'';
|
||||
in {
|
||||
fuzz-usbip = {
|
||||
type = "app";
|
||||
|
|
@ -160,6 +168,10 @@
|
|||
type = "app";
|
||||
program = "${fuzz-clean-usbip}/bin/fuzz-clean-usbip";
|
||||
};
|
||||
gen-fuzz-corpus = {
|
||||
type = "app";
|
||||
program = "${gen-fuzz-corpus}/bin/gen-fuzz-corpus";
|
||||
};
|
||||
};
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue