Basic test runner

This commit is contained in:
Eryn Wells 2015-09-17 19:26:59 -07:00
parent a0edcab26d
commit b9a582caf4
3 changed files with 24 additions and 1 deletions

View file

@ -18,8 +18,12 @@ for d in subdirs:
files = [
# TODO: Put files here.
'main.cc',
]
objs = []
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'])

16
test/main.cc Normal file
View file

@ -0,0 +1,16 @@
/* main.cc
* Eryn Wells <eryn@erynwells.me>>
*/
/** Basic driver for unit tests. */
#include "gtest/gtest.h"
int
main(int argc,
char *argv[])
{
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}