diff options
author | Mauro Carvalho Chehab <mchehab@kernel.org> | 2023-03-27 15:31:53 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@kernel.org> | 2023-04-03 09:54:25 +0200 |
commit | a16672d13cbd25fba1d16306eb00013fa85f08b4 (patch) | |
tree | baa8717d24f5226fdcf8907053a3878f37b24f52 /docs | |
parent | f3b1c8ba975c8b4c0115e680548e970216df1f9d (diff) |
testplan/meson.build: Validate documentation at build time
If the tests are build too, check if the documentation match
the name of the tests.
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.build | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/docs/testplan/meson.build b/docs/testplan/meson.build index fee568868..4c67ec42f 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 |