summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@kernel.org>2024-01-26 11:22:14 +0100
committerMauro Carvalho Chehab <mchehab@kernel.org>2024-01-29 11:28:25 +0100
commit5059fc75bcdd10c466a707e35d38833b1fdf33d4 (patch)
treea2455cdedb0de84bc175fb92c8025863646121e8 /docs
parent0318fd49e624318c268a36e8b77a7268ecb6f847 (diff)
testplan/meson.build: add a ninja PHONY target for Intel CI testlists
Add custom phony targets to create testlists to be used by Intel-CI. Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org> Reviewed-by: Kamil Konieczny <kamil.konieczny@linux.intel.com>
Diffstat (limited to 'docs')
-rw-r--r--docs/testplan/meson.build17
1 files changed, 17 insertions, 0 deletions
diff --git a/docs/testplan/meson.build b/docs/testplan/meson.build
index 9e0c3aee0..5560347f1 100644
--- a/docs/testplan/meson.build
+++ b/docs/testplan/meson.build
@@ -1,5 +1,7 @@
testplan_title = 'IGT test plans'
+intel_testlist_dir = 'intel-ci-tests'
+
sphinx = find_program('sphinx-build', required: build_sphinx)
rst2html = find_program('rst2html-3', 'rst2html', required : false)
rst2pdf = find_program('rst2pdf', required: false)
@@ -44,6 +46,8 @@ else
}
endif
+testplans = []
+
foreach testplan, fields: test_dict
rst = custom_target(testplan + '.rst',
build_by_default : true,
@@ -53,6 +57,8 @@ foreach testplan, fields: test_dict
output : testplan + '.rst'
)
+ testplans += fields['input']
+
if rst2html.found()
custom_target(testplan + '.html',
build_by_default : true,
@@ -63,6 +69,17 @@ foreach testplan, fields: test_dict
endif
endforeach
+custom_target(intel_testlist_dir,
+ build_by_default : true,
+ build_always_stale : true,
+ command : [ igt_doc_script, '--config', '@INPUT@', '--intelci-testlist', '@OUTPUT@' ],
+ depends : doc_dependencies,
+ input : testplans,
+ output : intel_testlist_dir,
+ install : true,
+ install_dir : libexecdir
+ )
+
if sphinx.found()
if gen_rst_index.found()
sphinx_out_dir = meson.current_build_dir()+ '/indexed_html'