GoogleTest hello world.

./build and ./test work automatically when cwd is inside userland/libs/XXX
without --package-all.
This commit is contained in:
Ciro Santilli 六四事件 法轮功
2020-11-25 00:00:00 +00:00
parent 50570326d4
commit 39073519b1
11 changed files with 156 additions and 32 deletions

View File

@@ -0,0 +1,9 @@
#include <gtest/gtest.h>
TEST(FailTest, ThisTestPasses) {
EXPECT_EQ(1, 1);
}
TEST(FailTest, ThisTestFails) {
EXPECT_EQ(1, 2);
}