Add dummy googletest

Uses the built in cmake -Dtest=ON

It should download googletest on the fly if needed.

Adds a new make target, `make test`

Ref #167
This commit is contained in:
Gavin Bisesi 2015-09-27 23:39:02 -04:00 committed by Fabio Bas
parent cd02df78a1
commit 3ebe42c400
6 changed files with 75 additions and 6 deletions

View file

@ -0,0 +1,16 @@
#include "gtest/gtest.h"
namespace {
class FooTest : public ::testing::Test {
};
TEST(DummyTest, Works) {
ASSERT_EQ(1, 1) << "One is not equal to one";
}
}
int main(int argc, char **argv) {
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}