[igt-dev] [PATCH i-g-t 1/2] testplan/meson.build: don't generate testlist on cross-compilation
Andrzej Hajda
andrzej.hajda at intel.com
Thu Apr 27 12:05:50 UTC 2023
On 27.04.2023 12:41, Mauro Carvalho Chehab wrote:
> From: Mauro Carvalho Chehab <mchehab at kernel.org>
>
> When doing cross-compilation, the binaries won't likely run at
> the builder machine. So, it is not possible to verify if there are
> documentation gaps.
>
> On such cases, skip checking it.
>
> Signed-off-by: Mauro Carvalho Chehab <mchehab at kernel.org>
> ---
> docs/testplan/meson.build | 9 +++++++--
> 1 file changed, 7 insertions(+), 2 deletions(-)
>
> diff --git a/docs/testplan/meson.build b/docs/testplan/meson.build
> index 3347f61876ef..e36713960ccd 100644
> --- a/docs/testplan/meson.build
> +++ b/docs/testplan/meson.build
> @@ -11,8 +11,13 @@ xe_test_config = join_paths(source_root, 'tests', 'xe', 'xe_test_config.json')
> check_testlist = []
> if build_tests
> doc_dependencies = test_executables
> - # Check if documentation matches the actual tests
> - check_testlist = [ '--check-testlist', '--igt-build-path', build_root ]
> + # Check if documentation matches the actual tests and tests can run
> + if not meson.is_cross_build()
> + build_info += 'Will Check if documentation is in sync with testlist'
> + check_testlist = [ '--check-testlist', '--igt-build-path', build_root ]
> + else
> + warning('WARNING: Will not check if documentation is in sync with testlist')
> + endif
Reviewed-by: Andrzej Hajda <andrzej.hajda at intel.com>
Regards
Andrzej
> else
> doc_dependencies = []
> endif
More information about the igt-dev
mailing list