public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t] runner: Disable building if tests are not built
@ 2019-04-26 11:05 Petri Latvala
  2019-04-26 12:28 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
  2019-04-26 18:11 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
  0 siblings, 2 replies; 3+ messages in thread
From: Petri Latvala @ 2019-04-26 11:05 UTC (permalink / raw)
  To: igt-dev; +Cc: Eero Tamminen, Petri Latvala

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

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-04-26 18:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-04-26 11:05 [igt-dev] [PATCH i-g-t] runner: Disable building if tests are not built Petri Latvala
2019-04-26 12:28 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2019-04-26 18:11 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox