test/unit/SConstruct
raw| 1 | CxxTestBuilder_path = '../../build_tools/SCons/cxxtest.py' |
| 2 | CxxTest_dir = '../..' |
| 3 | |
| 4 | # First a little python magic to pull in CxxTestBuilder |
| 5 | import imp |
| 6 | cxxtest = imp.load_source('cxxtest', CxxTestBuilder_path) |
| 7 | env = Environment() |
| 8 | cxxtest.generate(env, CXXTEST_INSTALL_DIR=CxxTest_dir) |
| 9 | |
| 10 | for test in env.Glob('*.t.h'): |
| 11 | env.CxxTest(test) |
| 12 |