diff options
author | Petri Latvala <petri.latvala@intel.com> | 2019-04-26 14:05:41 +0300 |
---|---|---|
committer | Petri Latvala <petri.latvala@intel.com> | 2019-05-10 13:54:08 +0300 |
commit | 159c69e5318e934b5f1d83939191c8756280b758 (patch) | |
tree | b6ec3adc6095c43f3a3a54084178850c642c221e | |
parent | 5b51f9e11eda3aeb3a13f50dcbf73320d085f349 (diff) |
runner: Disable building if tests are not built
Signed-off-by: Petri Latvala <petri.latvala@intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=110248
Cc: Eero Tamminen <eero.t.tamminen@intel.com>
Reviewed-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
-rw-r--r-- | runner/meson.build | 6 |
1 files changed, 5 insertions, 1 deletions
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, |