Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(77)

Unified Diff: src/platform/window_manager/SConstruct

Issue 541020: build: Get rid of manually-maintained lists of tests. (Closed)
Patch Set: Created 10 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/platform/window_manager/make_tests.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/platform/window_manager/SConstruct
diff --git a/src/platform/window_manager/SConstruct b/src/platform/window_manager/SConstruct
index d5fb0b9bdecb33965b6e6281971711be59849ab9..1abba1d696a18c489998551850478bb764dcfdf5 100644
--- a/src/platform/window_manager/SConstruct
+++ b/src/platform/window_manager/SConstruct
@@ -159,17 +159,11 @@ test_env = wm_env.Clone()
test_env['LINKFLAGS'].append('-lgtest')
# libtest needs to be listed first since it depends on wm_core and wm_ipc.
test_env['LIBS'].insert(0, libtest)
-test_env.Program('key_bindings_test', 'key_bindings_test.cc')
-test_env.Program('layout_manager_test', 'layout_manager_test.cc')
-test_env.Program('no_clutter_test', 'no_clutter_test.cc')
-test_env.Program('panel_bar_test', 'panel_bar_test.cc')
-test_env.Program('panel_test', 'panel_test.cc')
-test_env.Program('shadow_test', 'shadow_test.cc')
-test_env.Program('stacking_manager_test', 'stacking_manager_test.cc')
-test_env.Program('util_test', 'util_test.cc')
-test_env.Program('window_manager_test', 'window_manager_test.cc')
-test_env.Program('window_test', 'window_test.cc')
-test_env.Program('x_connection_test', 'x_connection_test.cc')
+tests = []
+for test_src in Glob('*_test.cc', strings=True):
+ tests += test_env.Program(test_src)
+# Create a 'tests' target that will build all tests.
+test_env.Alias('tests', tests)
mock_chrome_env = wm_env.Clone()
mock_chrome_env.ParseConfig('pkg-config --cflags --libs gtkmm-2.4')
« no previous file with comments | « no previous file | src/platform/window_manager/make_tests.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698