fuzz: Move fuzzers to standard cargo fuzz location

This simplifies `cargo fuzz` usage. Fuzzers can be built with
`cargo fuzz build` without any other arguments.

BUG=b:279217867
TEST=`cargo fuzz build`

Change-Id: I11b8a8ba4c2b3e2d1a42973699e4d9c3920635b6
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4540001
Commit-Queue: Dennis Kempin <denniskempin@google.com>
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
This commit is contained in:
Dennis Kempin 2023-05-16 10:19:30 -07:00 committed by crosvm LUCI
parent 92dfea4131
commit 981f304f84
13 changed files with 31 additions and 17 deletions

View file

@ -53,11 +53,11 @@ members = [
"crosvm_cli",
"crosvm_control",
"crosvm_plugin",
"crosvm-fuzz",
"devices",
"disk",
"e2e_tests",
"fuse",
"fuzz",
"gpu_display",
"hypervisor",
"io_uring",

View file

@ -1 +0,0 @@
denniskempin@chromium.org

View file

@ -1,3 +1,4 @@
target
corpus
artifacts
coverage

View file

@ -1,7 +1,7 @@
[package]
name = "crosvm-fuzz"
version = "0.0.1"
authors = ["The ChromiumOS Authors"]
publish = false
edition = "2021"
[package.metadata]
@ -31,30 +31,44 @@ libfuzzer-sys = "=0.4.4"
default = ["disk/qcow"]
[[bin]]
name = "crosvm_block_fuzzer"
path = "block_fuzzer.rs"
name = "block_fuzzer"
path = "fuzz_targets/block_fuzzer.rs"
test = false
doc = false
[[bin]]
name = "crosvm_fs_server_fuzzer"
path = "fs_server_fuzzer.rs"
name = "fs_server_fuzzer"
path = "fuzz_targets/fs_server_fuzzer.rs"
test = false
doc = false
[[bin]]
name = "crosvm_qcow_fuzzer"
path = "qcow_fuzzer.rs"
name = "p9_tframe_fuzzer"
path = "fuzz_targets/p9_tframe_fuzzer.rs"
test = false
doc = false
[[bin]]
name = "crosvm_usb_descriptor_fuzzer"
path = "usb_descriptor_fuzzer.rs"
name = "qcow_fuzzer"
path = "fuzz_targets/qcow_fuzzer.rs"
test = false
doc = false
[[bin]]
name = "crosvm_virtqueue_fuzzer"
path = "virtqueue_fuzzer.rs"
name = "usb_descriptor_fuzzer"
path = "fuzz_targets/usb_descriptor_fuzzer.rs"
test = false
doc = false
[[bin]]
name = "crosvm_zimage_fuzzer"
path = "zimage_fuzzer.rs"
name = "virtqueue_fuzzer"
path = "fuzz_targets/virtqueue_fuzzer.rs"
test = false
doc = false
[[bin]]
name = "crosvm_p9_tframe_fuzzer"
path = "p9_tframe_fuzzer.rs"
name = "zimage_fuzzer"
path = "fuzz_targets/zimage_fuzzer.rs"
test = false
doc = false