tests: skip block layer tests if !CONFIG_TOOLS
PATCH 1/1 tests: skip block layer tests if !CONFIG_TOOLS
From: Marc-André Lureau <[email protected]>
The block tests, as well as ahci-test needs qemu-img. Do not run them if it wasn't built.
Signed-off-by Marc-André Lureau <[email protected]>
Signed-off-by Paolo Bonzini <[email protected]>
--- tests/Makefile.include | 4 ++++ 1 file changed, 4 insertions(+)
tests/Makefile.include +4 -0
@@ -169,7 +169,9 @@ check-qtest-pci-$(CONFIG_IVSHMEM_DEVICE) += tests/ivshmem-test$(EXESUF) check-qtest-i386-$(CONFIG_ISA_TESTDEV) = tests/endianness-test$(EXESUF) check-qtest-i386-y += tests/fdc-test$(EXESUF) check-qtest-i386-y += tests/ide-test$(EXESUF) +ifeq ($(CONFIG_TOOLS),y) check-qtest-i386-y += tests/ahci-test$(EXESUF) +endif check-qtest-i386-y += tests/hd-geo-test$(EXESUF) check-qtest-i386-y += tests/boot-order-test$(EXESUF) check-qtest-i386-y += tests/bios-tables-test$(EXESUF)
@@ -1193,7 +1195,9 @@ check-acceptance: check-venv $(TESTS_RESULTS_DIR) .PHONY: check-block check-qapi-schema check-qtest check-unit check check-clean check-qapi-schema: check-tests/qapi-schema/frontend check-tests/qapi-schema/doc-good.texi check-qtest: $(patsubst %,check-qtest-%, $(QTEST_TARGETS)) +ifeq ($(CONFIG_TOOLS),y) check-block: $(patsubst %,check-%, $(check-block-y)) +endif check: check-block check-qapi-schema check-unit check-softfloat check-qtest check-decodetree check-clean: rm -rf $(check-unit-y) tests/*.o $(QEMU_IOTESTS_HELPERS-y)
Signature · 1 line
1.8.3.1
Quoted 16 lines · Paolo Bonzini
From: Marc-André Lureau <[email protected]>
The block tests, as well as ahci-test needs qemu-img. Do not run them if it wasn't built.
Signed-off-by Marc-André Lureau <[email protected]>Signed-off-by Paolo Bonzini <[email protected]>--- tests/Makefile.include | 4 ++++ 1 file changed, 4 insertions(+)tests/Makefile.include +0
-0
tests/Makefile.include check-qtest-pci-$(CONFIG_IVSHMEM_DEVICE) += tests/ivshmem-test$(EXESUF) · line 174
Quoted 6 lines
tests/Makefile.include +2
-0@@ -169,7 +169,9 @@ check-qtest-pci-$(CONFIG_IVSHMEM_DEVICE) += tests/ivshmem-test$(EXESUF) check-qtest-i386-$(CONFIG_ISA_TESTDEV) = tests/endianness-test$(EXESUF) check-qtest-i386-y += tests/fdc-test$(EXESUF) check-qtest-i386-y += tests/ide-test$(EXESUF) +ifeq ($(CONFIG_TOOLS),y) check-qtest-i386-y += tests/ahci-test$(EXESUF) +endif
Please use "check-qtest-i386-$(CONFIG_TOOLS) += ..." instead.
Thomas