Skip to contentSkip to conversation

tests: Fix "make check-functional" for targets without thorough tests

PATCH New Thomas Huth 1 participant 1 message Sep 18, 2025

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 tests: Fix "make check-functional" for targets without thorough tests

From: Thomas Huth <[email protected]>

If QEMU gets configured for a single target that does not have any thorough functional tests, "make check-functional" currently fails with the error message "No rule to make target 'check-func'". This happens because "check-func" only gets defined for thorough tests (quick ones get added to "check-func-quick" instead). The same problem can happen with the quick tests for targets that do not have any functional test at all. To fix it, simply make sure that the targets are always available in the Makefile.

---
 tests/Makefile.include | 3 +++
 1 file changed, 3 insertions(+)
tests/Makefile.include +3 -0
index 23fb722d426..9a3d137283e 100644
@@ -112,6 +112,9 @@ check-functional:
 	@$(NINJA) precache-functional
 	@QEMU_TEST_NO_DOWNLOAD=1 $(MAKE) SPEED=thorough check-func check-func-quick
 
+.PHONY: check-func check-func-quick
+check-func check-func-quick:
+
 # Consolidated targets
 
 .PHONY: check check-clean
Signature · 1 line
2.51.0