Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t] testplan/meson.build: don't generate testlist on cross-compilation
@ 2023-04-27 10:34 Mauro Carvalho Chehab
  2023-04-27 11:11 ` [igt-dev] ✗ GitLab.Pipeline: warning for " Patchwork
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Mauro Carvalho Chehab @ 2023-04-27 10:34 UTC (permalink / raw)
  To: igt-dev

From: Mauro Carvalho Chehab <mchehab@kernel.org>

When doing cross-compilation, the binaries won't likely run at
the builder machine. So, it is not possible to verify if there are
documentation gaps.

On such cases, skip checking it.

Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
---
 docs/testplan/meson.build | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/docs/testplan/meson.build b/docs/testplan/meson.build
index 3347f61876ef..cc37917bc804 100644
--- a/docs/testplan/meson.build
+++ b/docs/testplan/meson.build
@@ -11,8 +11,13 @@ xe_test_config = join_paths(source_root, 'tests', 'xe', 'xe_test_config.json')
 check_testlist = []
 if build_tests
 	doc_dependencies = test_executables
-	# Check if documentation matches the actual tests
-	check_testlist = [ '--check-testlist', '--igt-build-path', build_root ]
+	# Check if documentation matches the actual tests and IGT runner can run
+	if not meson.is_cross_build()
+		build_info += 'Will Check if documentation is in sync with testlist'
+		check_testlist = [ '--check-testlist', '--igt-build-path', build_root ]
+	else
+		warning('WARNING: Will not check if documentation is in sync with testlist')
+	endif
 else
 	doc_dependencies = []
 endif
-- 
2.40.0

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-04-27 13:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-27 10:34 [igt-dev] [PATCH i-g-t] testplan/meson.build: don't generate testlist on cross-compilation Mauro Carvalho Chehab
2023-04-27 11:11 ` [igt-dev] ✗ GitLab.Pipeline: warning for " Patchwork
2023-04-27 11:35 ` [igt-dev] ✓ Fi.CI.BAT: success " Patchwork
2023-04-27 13:51 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox