]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
tests: Fix "make check-functional" for targets without thorough tests
authorThomas Huth <thuth@redhat.com>
Thu, 18 Sep 2025 12:51:54 +0000 (14:51 +0200)
committerMichael Tokarev <mjt@tls.msk.ru>
Fri, 26 Sep 2025 06:58:36 +0000 (09:58 +0300)
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.

Reported-by: Peter Maydell <peter.maydell@linaro.org>
Closes: https://gitlab.com/qemu-project/qemu/-/issues/3119
Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-ID: <20250918125154.126072-1-thuth@redhat.com>
(cherry picked from commit 4f1ebc7712a7db61155080164f2169320d033559)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
tests/Makefile.include

index 23fb722d4260f8019ad99ea552023482d77001ae..9a3d137283ea7b16f107ad39aea2eaa38b742a4f 100644 (file)
@@ -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