qulogic/gplugin

Make the moonscript tests not interfer with the lua tests at all
feature/fix-lua-tests-die-without-moonscript
2015-06-30, Gary Kramlich
b6c9d19a6bf4
Parents 5613a5995400
Children c2092ae0d02a
Make the moonscript tests not interfer with the lua tests at all
--- a/lua/tests/CMakeLists.txt Tue Jun 30 11:56:06 2015 -0500
+++ b/lua/tests/CMakeLists.txt Tue Jun 30 11:59:29 2015 -0500
@@ -18,6 +18,7 @@
add_definitions(
-DLUA_LOADER_DIR="${CMAKE_BINARY_DIR}/lua"
-DLUA_PLUGIN_DIR="${CMAKE_CURRENT_SOURCE_DIR}/lua-plugins"
+ -DMOONSCRIPT_PLUGIN_DIR="${CMAKE_CURRENT_SOURCE_DIR}/moonscript-plugins"
)
add_lua_gtest(test-lua-loader)
--- a/lua/tests/test-lua-moon-loader.c Tue Jun 30 11:56:06 2015 -0500
+++ b/lua/tests/test-lua-moon-loader.c Tue Jun 30 11:59:29 2015 -0500
@@ -24,7 +24,7 @@
main(gint argc, gchar **argv) {
g_test_init(&argc, &argv, NULL);
- gplugin_loader_tests_main(LUA_LOADER_DIR, LUA_PLUGIN_DIR, "moon");
+ gplugin_loader_tests_main(LUA_LOADER_DIR, MOONSCRIPT_PLUGIN_DIR, "moon");
return g_test_run();
}