aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/CMakeLists.txt21
-rw-r--r--test/dummy.cpp6
-rw-r--r--test/makefile7
3 files changed, 34 insertions, 0 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
new file mode 100644
index 0000000..26aa460
--- /dev/null
+++ b/test/CMakeLists.txt
@@ -0,0 +1,21 @@
+cmake_minimum_required(VERSION 3.28)
+
+set(CMAKE_C_STANDARD 11)
+set(CMAKE_CXX_STANDARD 20)
+set(CMAKE_EXPORT_COMPILE_COMMANDS 1)
+
+set(CMAKE_BUILD_TYPE Debug)
+
+project(test C CXX)
+
+add_subdirectory(../lib/googletest googletest)
+
+add_executable(test
+ dummy.cpp
+)
+
+target_link_libraries(test
+ gtest_main
+ # TODO: add crepe engine
+)
+
diff --git a/test/dummy.cpp b/test/dummy.cpp
new file mode 100644
index 0000000..08850b2
--- /dev/null
+++ b/test/dummy.cpp
@@ -0,0 +1,6 @@
+#include <gtest/gtest.h>
+
+TEST(dummy, foo) {
+ ASSERT_TRUE(1);
+}
+
diff --git a/test/makefile b/test/makefile
new file mode 100644
index 0000000..7aeee34
--- /dev/null
+++ b/test/makefile
@@ -0,0 +1,7 @@
+TARGET = $(BUILD_DIR)/test
+
+include ../lazy.mk
+
+test: $(TARGET) FORCE
+ $(TARGET)
+