[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 1/8] tests/fuzz/Makefile: Do not link code using unavailable devic
From: |
Stefan Hajnoczi |
Subject: |
[PULL 1/8] tests/fuzz/Makefile: Do not link code using unavailable devices |
Date: |
Tue, 19 May 2020 09:00:47 +0100 |
From: Philippe Mathieu-Daudé <address@hidden>
Some devices availability depends on CONFIG options.
Use these options to only link tests when requested device
is available.
Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
Message-id: address@hidden
Signed-off-by: Stefan Hajnoczi <address@hidden>
---
tests/qtest/fuzz/Makefile.include | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/tests/qtest/fuzz/Makefile.include
b/tests/qtest/fuzz/Makefile.include
index cde3e9636c..f259d866c9 100644
--- a/tests/qtest/fuzz/Makefile.include
+++ b/tests/qtest/fuzz/Makefile.include
@@ -7,9 +7,9 @@ fuzz-obj-y += tests/qtest/fuzz/fork_fuzz.o
fuzz-obj-y += tests/qtest/fuzz/qos_fuzz.o
# Targets
-fuzz-obj-y += tests/qtest/fuzz/i440fx_fuzz.o
-fuzz-obj-y += tests/qtest/fuzz/virtio_net_fuzz.o
-fuzz-obj-y += tests/qtest/fuzz/virtio_scsi_fuzz.o
+fuzz-obj-$(CONFIG_PCI_I440FX) += tests/qtest/fuzz/i440fx_fuzz.o
+fuzz-obj-$(CONFIG_VIRTIO_NET) += tests/qtest/fuzz/virtio_net_fuzz.o
+fuzz-obj-$(CONFIG_SCSI) += tests/qtest/fuzz/virtio_scsi_fuzz.o
FUZZ_CFLAGS += -I$(SRC_PATH)/tests -I$(SRC_PATH)/tests/qtest
--
2.25.3
- [PULL 0/8] Block patches, Stefan Hajnoczi, 2020/05/19
- [PULL 1/8] tests/fuzz/Makefile: Do not link code using unavailable devices,
Stefan Hajnoczi <=
- [PULL 2/8] Makefile: List fuzz targets in 'make help', Stefan Hajnoczi, 2020/05/19
- [PULL 3/8] tests/fuzz: Add missing space in test description, Stefan Hajnoczi, 2020/05/19
- [PULL 4/8] tests/fuzz: Remove unuseful/unused typedefs, Stefan Hajnoczi, 2020/05/19
- [PULL 5/8] tests/fuzz: Extract pciconfig_fuzz_qos() method, Stefan Hajnoczi, 2020/05/19
- [PULL 6/8] tests/fuzz: Extract ioport_fuzz_qtest() method, Stefan Hajnoczi, 2020/05/19
- [PULL 7/8] aio-posix: don't duplicate fd handler deletion in fdmon_io_uring_destroy(), Stefan Hajnoczi, 2020/05/19
- [PULL 8/8] aio-posix: disable fdmon-io_uring when GSource is used, Stefan Hajnoczi, 2020/05/19
- Re: [PULL 0/8] Block patches, Peter Maydell, 2020/05/19