From 159c69e5318e934b5f1d83939191c8756280b758 Mon Sep 17 00:00:00 2001 From: Petri Latvala Date: Fri, 26 Apr 2019 14:05:41 +0300 Subject: runner: Disable building if tests are not built Signed-off-by: Petri Latvala Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=110248 Cc: Eero Tamminen Reviewed-by: Arkadiusz Hiler --- runner/meson.build | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'runner/meson.build') diff --git a/runner/meson.build b/runner/meson.build index de6e6f1c..501352f7 100644 --- a/runner/meson.build +++ b/runner/meson.build @@ -12,7 +12,11 @@ results_sources = [ 'results.c' ] runner_test_sources = [ 'runner_tests.c' ] runner_json_test_sources = [ 'runner_json_tests.c' ] -if _build_runner and jsonc.found() +if not _build_tests and _runner_required + error('Building test runner requires building tests') +endif + +if _build_runner and _build_tests and jsonc.found() subdir('testdata') runnerlib = static_library('igt_runner', runnerlib_sources, -- cgit v1.2.3