On Thu, 18 Sept 2025 at 12:40, Thomas Huth <th...@redhat.com> wrote: > > From: Thomas Huth <th...@redhat.com> > > 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). > Thus let's define a dummy target for this case, that simply > depends on the quick tests.
Tested-by: Peter Maydell <peter.mayd...@linaro.org> We also have the opposite problem if there are no 'quick' tests, which you can see if you try 'check-functional' on a build configured with the aarch64-linux-user target only: $ make -C build/aarch64-linux/ check-functional make: Entering directory '/mnt/nvmedisk/linaro/qemu-from-laptop/qemu/build/aarch64-linux' /mnt/nvmedisk/linaro/qemu-from-laptop/qemu/build/aarch64-linux/pyvenv/bin/meson introspect --targets --tests --benchmarks | /mnt/nvmedisk/linaro/qemu-from-laptop/qemu/build/aarch64-linux/pyvenv/bin/python3 -B scripts/mtest2make.py > Makefile.mtest [0/1] Running external command precache-functional (wrapped by meson to set env) make[1]: Entering directory '/mnt/nvmedisk/linaro/qemu-from-laptop/qemu/build/aarch64-linux' make[1]: *** No rule to make target 'check-func-quick', needed by 'check-func'. Stop. make[1]: Leaving directory '/mnt/nvmedisk/linaro/qemu-from-laptop/qemu/build/aarch64-linux' make: *** [/mnt/nvmedisk/linaro/qemu-from-laptop/qemu/tests/Makefile.include:114: check-functional] Error 2 make: Leaving directory '/mnt/nvmedisk/linaro/qemu-from-laptop/qemu/build/aarch64-linux' (Those errors are with this patch applied; without it the error is slightly different: make[1]: *** No rule to make target 'check-func'. Stop.) But that can't show up on a system-emulation target, because tests like generic/version are in the "quick" category. thanks -- PMM