diff --git a/example/plugin/simple_stellar_plugin.so b/example/plugin/simple_stellar_plugin.so deleted file mode 100755 index a374a82..0000000 Binary files a/example/plugin/simple_stellar_plugin.so and /dev/null differ diff --git a/example/Makefile b/test/Makefile similarity index 100% rename from example/Makefile rename to test/Makefile diff --git a/example/conf/lua_plugin_manage.toml b/test/conf/lua_plugin_manage.toml similarity index 100% rename from example/conf/lua_plugin_manage.toml rename to test/conf/lua_plugin_manage.toml diff --git a/example/conf/plugin_manage.toml b/test/conf/plugin_manage.toml similarity index 100% rename from example/conf/plugin_manage.toml rename to test/conf/plugin_manage.toml diff --git a/example/example.c b/test/example.c similarity index 100% rename from example/example.c rename to test/example.c diff --git a/example/example_plugin_manage.c b/test/example_plugin_manage.c similarity index 100% rename from example/example_plugin_manage.c rename to test/example_plugin_manage.c diff --git a/example/include/plugin_manager.h b/test/include/plugin_manager.h similarity index 100% rename from example/include/plugin_manager.h rename to test/include/plugin_manager.h diff --git a/example/include/plugin_manager_gtest_mock.h b/test/include/plugin_manager_gtest_mock.h similarity index 92% rename from example/include/plugin_manager_gtest_mock.h rename to test/include/plugin_manager_gtest_mock.h index f00866e..da994c9 100644 --- a/example/include/plugin_manager_gtest_mock.h +++ b/test/include/plugin_manager_gtest_mock.h @@ -13,7 +13,7 @@ extern "C" struct stellar { struct plugin_manager_schema *plug_mgr; - struct lua_plugin_manage_schema * lua_plug_mgr; + struct lua_plugin_manage * lua_plug_mgr; int thread_num; }; @@ -59,11 +59,6 @@ int stellar_plugin_manager_schema_set(struct stellar *st, struct plugin_manager_ #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wunused-parameter" -int session_get_current_thread_id(struct session *sess) -{ - return 0; -} - int stellar_get_worker_thread_num(struct stellar *st) { return st->thread_num; @@ -71,7 +66,7 @@ int stellar_get_worker_thread_num(struct stellar *st) int stellar_get_current_thread_id(struct stellar *st) { - return 0; + return 3; } #pragma GCC diagnostic pop diff --git a/example/include/plugin_manager_interna.h b/test/include/plugin_manager_interna.h similarity index 100% rename from example/include/plugin_manager_interna.h rename to test/include/plugin_manager_interna.h diff --git a/example/include/stellar_internal.h b/test/include/stellar_internal.h similarity index 100% rename from example/include/stellar_internal.h rename to test/include/stellar_internal.h diff --git a/example/plugin/example_plugin_load.lua b/test/plugin/example_plugin_load.lua similarity index 100% rename from example/plugin/example_plugin_load.lua rename to test/plugin/example_plugin_load.lua diff --git a/example/plugin/example_plugin_message.lua b/test/plugin/example_plugin_message.lua similarity index 100% rename from example/plugin/example_plugin_message.lua rename to test/plugin/example_plugin_message.lua diff --git a/example/plugin/example_plugin_regist.lua b/test/plugin/example_plugin_regist.lua similarity index 100% rename from example/plugin/example_plugin_regist.lua rename to test/plugin/example_plugin_regist.lua diff --git a/example/plugin/example_plugin_topic.lua b/test/plugin/example_plugin_topic.lua similarity index 100% rename from example/plugin/example_plugin_topic.lua rename to test/plugin/example_plugin_topic.lua diff --git a/example/simple_example_plugin.c b/test/simple_example_plugin.c similarity index 100% rename from example/simple_example_plugin.c rename to test/simple_example_plugin.c