1
0
Эх сурвалжийг харах

test: prepare tests for views across boundaries

Michele Caini 1 жил өмнө
parent
commit
626a8cfb50

+ 3 - 0
test/CMakeLists.txt

@@ -169,6 +169,9 @@ if(ENTT_BUILD_LIB)
 
     SETUP_LIB_SHARED_TEST(registry shared)
     SETUP_LIB_PLUGIN_TEST(registry plugin)
+
+    SETUP_LIB_SHARED_TEST(view shared)
+    SETUP_LIB_PLUGIN_TEST(view plugin)
 endif()
 
 # Test snapshot

+ 8 - 0
test/lib/view/plugin/main.cpp

@@ -0,0 +1,8 @@
+#define CR_HOST
+
+#include <gtest/gtest.h>
+#include <cr.h>
+
+TEST(Lib, View) {
+	// TODO
+}

+ 6 - 0
test/lib/view/plugin/plugin.cpp

@@ -0,0 +1,6 @@
+#include <cr.h>
+
+CR_EXPORT int cr_main(cr_plugin *ctx, cr_op operation) {
+    // TODO
+    return 0;
+}

+ 3 - 0
test/lib/view/shared/lib.cpp

@@ -0,0 +1,3 @@
+#include <entt/core/attribute.h>
+
+ENTT_API void do_nothing() {}

+ 9 - 0
test/lib/view/shared/main.cpp

@@ -0,0 +1,9 @@
+#include <gtest/gtest.h>
+#include <entt/core/attribute.h>
+
+ENTT_API void do_nothing();
+
+TEST(Lib, View) {
+    do_nothing();
+	// TODO
+}