From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by gabe.freedesktop.org (Postfix) with ESMTPS id 08C6010E361 for ; Thu, 27 Apr 2023 10:41:24 +0000 (UTC) Received: from linux.intel.com (maurocar-mobl2.ger.corp.intel.com [10.252.17.71]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by linux.intel.com (Postfix) with ESMTPS id 29D5A580D37 for ; Thu, 27 Apr 2023 03:41:23 -0700 (PDT) Received: from maurocar by linux.intel.com with local (Exim 4.96) (envelope-from ) id 1prz3w-000pdr-2E for igt-dev@lists.freedesktop.org; Thu, 27 Apr 2023 12:41:20 +0200 From: Mauro Carvalho Chehab To: igt-dev@lists.freedesktop.org Date: Thu, 27 Apr 2023 12:41:18 +0200 Message-Id: <20230427104119.198499-1-mauro.chehab@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [igt-dev] [PATCH i-g-t 1/2] testplan/meson.build: don't generate testlist on cross-compilation List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" List-ID: From: Mauro Carvalho Chehab 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 --- 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..e36713960ccd 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 tests 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