Patchwork [V2,1/2] tests: build the helper program by default

mail settings
Submitter Wayne Xia
Date Sept. 26, 2013, 12:42 a.m.
Message ID <>
Download mbox | patch
Permalink /patch/278052/
State New
Headers show


Wayne Xia - Sept. 26, 2013, 12:42 a.m.
Usually we may configure and make, then goto ./tests/qemu-iotest,
check. In this case an error will happen since helper program
was not built. This patch simply build it by default. A better way
may be introducing Makefile in ./tests/qemu-iotest, but it is more
complicate to handle out of tree case, and a bit overkill
for a single file now, we can do that when more files come.

Signed-off-by: Wenchao Xia <>
 tests/Makefile |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)


diff --git a/tests/Makefile b/tests/Makefile
index 994fef1..5f2894f 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -252,8 +252,10 @@  check-report.html: check-report.xml
 # Other tests
+QEMU_IOTESTS_HELPERS-$(CONFIG_LINUX) = tests/qemu-iotests/socket_scm_helper$(EXESUF)
 .PHONY: check-tests/
-check-tests/ tests/ qemu-img$(EXESUF) qemu-io$(EXESUF) tests/qemu-iotests/socket_scm_helper$(EXESUF)
+check-tests/ tests/ qemu-img$(EXESUF) qemu-io$(EXESUF) $(QEMU_IOTESTS_HELPERS-y)
 .PHONY: check-tests/
@@ -275,5 +277,9 @@  check-unit: $(patsubst %,check-%, $(check-unit-y))
 check-block: $(patsubst %,check-%, $(check-block-y))
 check: check-qapi-schema check-unit check-qtest
+# Build the help program automatically
 -include $(wildcard tests/*.d)
 -include $(wildcard tests/libqos/*.d)