[PATCH i-g-t 2/3] testplan/meson.build: add a ninja PHONY target for Intel CI testlists

Mauro Carvalho Chehab mauro.chehab at linux.intel.com
Fri Jan 26 12:37:28 UTC 2024


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

Add custom phony targets to create testlists to be used by Intel-CI.

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

diff --git a/docs/testplan/meson.build b/docs/testplan/meson.build
index 9e0c3aee06af..5560347f1337 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'
-- 
2.43.0



More information about the igt-dev mailing list