[aimc] r308 committed - Build carfac and sai tests as independent programs.

2 views
Skip to first unread message

ai...@googlecode.com

unread,
Jul 1, 2013, 3:03:47 PM7/1/13
to aimc...@googlegroups.com
Revision: 308
Author: ro...@google.com
Date: Mon Jul 1 12:02:28 2013
Log: Build carfac and sai tests as independent programs.
http://code.google.com/p/aimc/source/detail?r=308

Modified:
/trunk/carfac/SConstruct

=======================================
--- /trunk/carfac/SConstruct Tue Jun 11 08:04:55 2013
+++ /trunk/carfac/SConstruct Mon Jul 1 12:02:28 2013
@@ -70,13 +70,15 @@
'cd tmp && cmake . && make',
])

-test_sources = [
- 'carfac_test.cc',
- 'sai_test.cc',
+test_targets = [
+ 'carfac_test',
+ 'sai_test',
]
-test_program = env.Program(target = 'test',
- source = test_sources,
- LIBS =
['carfac', 'gtest', 'gtest_main', 'pthread'],
- LIBPATH = ['.', 'tmp'])
-test_alias = Alias('test', [test_program], test_program[0].abspath)
-AlwaysBuild(test_alias)
+test_programs = [env.Program(target = test_target,
+ source = ['%s.cc' % test_target],
+ LIBS =
['carfac', 'gtest', 'gtest_main', 'pthread'],
+ LIBPATH = ['.', 'tmp'])
+ for test_target in test_targets]
+run_all_tests = env.Command('test',
+ test_programs,
+ ['./%s' % x for x in test_targets])
Reply all
Reply to author
Forward
0 new messages