Basic test runner
This commit is contained in:
parent
a0edcab26d
commit
b9a582caf4
3 changed files with 24 additions and 1 deletions
|
@ -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
16
test/main.cc
Normal 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();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue