[LTP] [PATCH v2 1/8] Makefile: Skip test-metadata on cross compile
Petr Vorel
pvorel@suse.cz
Fri Jul 10 07:55:49 CEST 2026
Fixes: 73245ef992 ("make: Add test-metadata target")
Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
* New in v2
Makefile | 3 +++
1 file changed, 3 insertions(+)
diff --git a/Makefile b/Makefile
index 2a7cf54caa..f1b59609a5 100644
--- a/Makefile
+++ b/Makefile
@@ -210,6 +210,9 @@ endif
$(top_srcdir)/testcases/lib/run_tests.sh -b $(abs_builddir)
test-metadata: metadata-all
+ifneq ($(build),$(host))
+ $(error running tests on cross-compile build not supported)
+endif
$(MAKE) -C $(abs_srcdir)/metadata test
MODULE_DIRS := $(shell \
--
2.54.0
More information about the ltp
mailing list