[igt-dev] [PATCH i-g-t] runner: Disable building if tests are not built

Petri Latvala petri.latvala at intel.com
Fri Apr 26 11:05:41 UTC 2019


Signed-off-by: Petri Latvala <petri.latvala at intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=110248
Cc: Eero Tamminen <eero.t.tamminen at intel.com>
---
 runner/meson.build | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

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,
-- 
2.19.1



More information about the igt-dev mailing list