From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by gabe.freedesktop.org (Postfix) with ESMTPS id 0CB4F10E163 for ; Thu, 30 Mar 2023 05:42:29 +0000 (UTC) Received: from linux.intel.com (mwrzeszc-mobl1.ger.corp.intel.com [10.252.27.169]) (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 131DD580D9B for ; Wed, 29 Mar 2023 22:42:27 -0700 (PDT) Received: from maurocar by linux.intel.com with local (Exim 4.96) (envelope-from ) id 1phl3I-00B513-2v for igt-dev@lists.freedesktop.org; Thu, 30 Mar 2023 07:42:24 +0200 From: Mauro Carvalho Chehab To: igt-dev@lists.freedesktop.org Date: Thu, 30 Mar 2023 07:42:18 +0200 Message-Id: <20230330054221.2640814-10-mauro.chehab@linux.intel.com> In-Reply-To: <20230330054221.2640814-1-mauro.chehab@linux.intel.com> References: <20230330054221.2640814-1-mauro.chehab@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [igt-dev] [PATCH i-g-t v2 09/12] testplan/meson.build: Validate documentation at build time 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 If the tests are build too, check if the documentation match the name of the tests. Signed-off-by: Mauro Carvalho Chehab Reviewed-by: Kamil Konieczny --- docs/testplan/meson.build | 8 ++++++-- meson.build | 1 + 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/docs/testplan/meson.build b/docs/testplan/meson.build index fee568868167..d1ad6ea0461b 100644 --- a/docs/testplan/meson.build +++ b/docs/testplan/meson.build @@ -8,12 +8,16 @@ stylesheet = join_paths(meson.current_source_dir(), 'testplan.css') xe_test_config = join_paths(source_root, 'tests', 'xe', 'xe_test_config.json') -if not build_tests +check_testlist = '' +if build_tests + # Check if documentation matches the actual tests + check_testlist = [ '--check-testlist', '--igt-build-path', build_root ] +else test_executables = [] endif test_dict = { 'xe_tests': - { 'input': xe_test_config, 'extra_args': [] } + { 'input': xe_test_config, 'extra_args': check_testlist } } foreach testplan, fields: test_dict diff --git a/meson.build b/meson.build index 7360634fe199..bef590f465dc 100644 --- a/meson.build +++ b/meson.build @@ -15,6 +15,7 @@ endif # meson.source_root is marked as a future-deprecated feature source_root = meson.current_source_dir() +build_root = meson.current_build_dir() cc = meson.get_compiler('c') -- 2.39.2