diff options
| author | Alexander Bulekov | 2020-02-20 05:11:08 +0100 |
|---|---|---|
| committer | Stefan Hajnoczi | 2020-02-22 09:26:48 +0100 |
| commit | 5f6fd09a9729d31225b6eaec5df05d19a5bdfda4 (patch) | |
| tree | a436e26c445ff6c9f225782700fef99db097e751 /tests/qtest/fuzz/Makefile.include | |
| parent | libqos: move useful qos-test funcs to qos_external (diff) | |
| download | qemu-5f6fd09a9729d31225b6eaec5df05d19a5bdfda4.tar.gz qemu-5f6fd09a9729d31225b6eaec5df05d19a5bdfda4.tar.xz qemu-5f6fd09a9729d31225b6eaec5df05d19a5bdfda4.zip | |
fuzz: add fuzzer skeleton
tests/fuzz/fuzz.c serves as the entry point for the virtual-device
fuzzer. Namely, libfuzzer invokes the LLVMFuzzerInitialize and
LLVMFuzzerTestOneInput functions, both of which are defined in this
file. This change adds a "FuzzTarget" struct, along with the
fuzz_add_target function, which should be used to define new fuzz
targets.
Signed-off-by: Alexander Bulekov <alxndr@bu.edu>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Darren Kenny <darren.kenny@oracle.com>
Message-id: 20200220041118.23264-13-alxndr@bu.edu
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'tests/qtest/fuzz/Makefile.include')
| -rw-r--r-- | tests/qtest/fuzz/Makefile.include | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/qtest/fuzz/Makefile.include b/tests/qtest/fuzz/Makefile.include new file mode 100644 index 0000000000..8632bb89f4 --- /dev/null +++ b/tests/qtest/fuzz/Makefile.include @@ -0,0 +1,6 @@ +QEMU_PROG_FUZZ=qemu-fuzz-$(TARGET_NAME)$(EXESUF) + +fuzz-obj-y += tests/qtest/libqtest.o +fuzz-obj-y += tests/qtest/fuzz/fuzz.o # Fuzzer skeleton + +FUZZ_CFLAGS += -I$(SRC_PATH)/tests -I$(SRC_PATH)/tests/qtest |
