[PATCH] KVM: selftests: add empty install and run_tests targets for unsupported ARCHs

From: Sasha Levin

Date: Wed Nov 04 2026 - 16:51:52 EST


Commit 43fbd8cd389f ("KVM: selftests: Provide empty 'all' and 'clean'
targets for unsupported ARCHs") gave the KVM selftests empty all and
clean targets on architectures without KVM selftests, such as 32-bit
arm and i386. The selftests Makefile also runs install and run_tests
in each suite, and those still fail there:

make[1]: *** No rule to make target 'install'. Stop.

Add empty install and run_tests targets as well.

Fixes: 43fbd8cd389f ("KVM: selftests: Provide empty 'all' and 'clean' targets for unsupported ARCHs")
Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>
---
Found with KernelCI-style TuxMake builds that record per-suite results
with KSFT_BUILD_REPORT. 32-bit arm builds now succeed without installing
anything.

tools/testing/selftests/kvm/Makefile | 2 ++
1 file changed, 2 insertions(+)

diff --git a/tools/testing/selftests/kvm/Makefile b/tools/testing/selftests/kvm/Makefile
index 03d91f00092f4..3881df8d5b2b8 100644
--- a/tools/testing/selftests/kvm/Makefile
+++ b/tools/testing/selftests/kvm/Makefile
@@ -13,4 +13,6 @@ else
# Empty targets for unsupported architectures
all:
clean:
+install:
+run_tests:
endif
--
2.53.0