From e0f3f0a2b4855747125083f8576752ab83507e13 Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Fri, 16 Oct 2015 23:51:14 -0700 Subject: [PATCH] Run all tests as part of the test target --- site_scons/site_init.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/site_scons/site_init.py b/site_scons/site_init.py index 881bd6d..085f671 100644 --- a/site_scons/site_init.py +++ b/site_scons/site_init.py @@ -183,10 +183,12 @@ class Environment(SCons.Environment.Environment): self['TESTS'][name]['program'] = prog def process_tests(self): + tests = [] for test, struct in self['TESTS'].iteritems(): if not struct['program']: continue - self.TestRun(test) + tests.append(self.TestRun(test)) + self.Alias('test', tests) def _ensure_test_structure(self, name): self['TESTS'].setdefault(name, {'program': None, 'objects': []})