Return-Path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8237110E117 for ; Tue, 4 Apr 2023 11:19:54 +0000 (UTC) Received: from linux.intel.com (maurocar-mobl2.ger.corp.intel.com [10.252.28.218]) (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 4710E580377 for ; Tue, 4 Apr 2023 04:19:53 -0700 (PDT) Received: from maurocar by linux.intel.com with local (Exim 4.96) (envelope-from ) id 1pjehb-000toC-1B for igt-dev@lists.freedesktop.org; Tue, 04 Apr 2023 13:19:51 +0200 From: Mauro Carvalho Chehab To: igt-dev@lists.freedesktop.org Date: Tue, 4 Apr 2023 13:19:43 +0200 Message-Id: <20230404111942.214516-1-mauro.chehab@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [igt-dev] [PATCH i-g-t v3] testplan/meson.build: only run igt_runner if it is compiled 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 While the runner is built by default, if jsonc is not found, it won't be build. This will cause the documentation validation test to cause the build to fail. Prevent that by adding an extra check if jsonc is found, as this is the same condition that it is used to build igt_runner. While here, also ensure that igt_doc.py will depend on having the igt_runner already compiled, when the --check option is used. Signed-off-by: Mauro Carvalho Chehab --- v3: - don't bail out if tests aren't built v2: - add a dependency for the runner binary when --check option is used. --- docs/testplan/meson.build | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/docs/testplan/meson.build b/docs/testplan/meson.build index 4c67ec42fc69..ea9f6eeb7038 100644 --- a/docs/testplan/meson.build +++ b/docs/testplan/meson.build @@ -10,10 +10,14 @@ xe_test_config = join_paths(source_root, 'tests', 'xe', 'xe_test_config.json') check_testlist = [] if build_tests - # Check if documentation matches the actual tests - check_testlist = [ '--check-testlist', '--igt-build-path', build_root ] + doc_dependencies = test_executables + if jsonc.found() + # Check if documentation matches the actual tests + check_testlist = [ '--check-testlist', '--igt-build-path', build_root ] + doc_dependencies += runner + endif else - test_executables = [] + doc_dependencies = [] endif test_dict = { 'xe_tests': @@ -24,7 +28,7 @@ foreach testplan, fields: test_dict rst = custom_target(testplan + '.rst', build_by_default : true, command : [ igt_doc_script, '--config', '@INPUT@', '--rest', '@OUTPUT@' ] + fields['extra_args'], - depends : test_executables, + depends : doc_dependencies, input : fields['input'], output : testplan + '.rst' ) -- 2.39.2