mirror of https://github.com/xemu-project/xemu.git
build: fix "make check" without earlier "make"
"make check", if not preceded by "make", will not build the tools needed by qemu-iotests. This happens because qemu-iotests, aka "make check-block", is not yet part of meson.build. While at it, remove the reference to the now-dead QEMU_IOTESTS_HELPERS-y variable. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
8009806ec8
commit
097a5f19a3
|
@ -150,14 +150,21 @@ check:
|
||||||
ifeq ($(CONFIG_TOOLS)$(CONFIG_POSIX),yy)
|
ifeq ($(CONFIG_TOOLS)$(CONFIG_POSIX),yy)
|
||||||
check: check-block
|
check: check-block
|
||||||
export PYTHON
|
export PYTHON
|
||||||
check-block: $(SRC_PATH)/tests/check-block.sh qemu-img$(EXESUF) \
|
|
||||||
|
ifneq ($(filter check check-block check-build, $(MAKECMDGOALS)),)
|
||||||
|
ninja-cmd-goals += \
|
||||||
|
qemu-img$(EXESUF) \
|
||||||
|
qemu-io$(EXESUF) \
|
||||||
|
qemu-nbd$(EXESUF) \
|
||||||
storage-daemon/qemu-storage-daemon$(EXESUF) \
|
storage-daemon/qemu-storage-daemon$(EXESUF) \
|
||||||
qemu-io$(EXESUF) qemu-nbd$(EXESUF) $(QEMU_IOTESTS_HELPERS-y) \
|
|
||||||
$(filter qemu-system-%, $(ninja-targets))
|
$(filter qemu-system-%, $(ninja-targets))
|
||||||
|
endif
|
||||||
|
|
||||||
|
check-block: $(SRC_PATH)/tests/check-block.sh run-ninja
|
||||||
@$<
|
@$<
|
||||||
endif
|
endif
|
||||||
|
|
||||||
check-build: $(QEMU_IOTESTS_HELPERS-y)
|
check-build: run-ninja
|
||||||
|
|
||||||
check-clean:
|
check-clean:
|
||||||
rm -rf $(TESTS_VENV_DIR) $(TESTS_RESULTS_DIR)
|
rm -rf $(TESTS_VENV_DIR) $(TESTS_RESULTS_DIR)
|
||||||
|
|
Loading…
Reference in New Issue