Return and run tests after building

This commit is contained in:
Eryn Wells 2015-10-03 19:30:44 -07:00
parent 6087354bc8
commit a472d5aae5
2 changed files with 5 additions and 2 deletions

View file

@ -59,4 +59,6 @@ for mode in (MODE.split(',') if MODE else ['debug']):
CPPPATH=[SRC_DIR])
# Get test binaries.
do_sconscript(env, TEST_DIR, out_dir.Dir('test'))
test = do_sconscript(env, TEST_DIR, out_dir.Dir('test'))
run_tests = env.Alias('test', [test], test[0].path)
env.AlwaysBuild(run_tests)

View file

@ -26,4 +26,5 @@ for f in files:
objs.append(env.Object(f))
# TODO: Add the library target for the package to test to LIBS.
env.Program('test', objs, LIBS=['gtest'])
test = env.Program('test', objs, LIBS=['gtest'])
Return('test')