gplugin/gplugin

Added an option that defaults to off to toggle whether or not we run the moonscript tests
feature/51-need-a-way-to-disable-moonscript-tests
2015-05-31, Gary Kramlich
d79352da846e
Parents b395815fee26
Children be03665583c8
Added an option that defaults to off to toggle whether or not we run the moonscript tests
--- a/lua/CMakeLists.txt Sun May 31 14:08:51 2015 -0500
+++ b/lua/CMakeLists.txt Sun May 31 14:12:42 2015 -0500
@@ -62,6 +62,11 @@
message(FATAL_ERROR " failed to find the 'lgi' lua module")
endif(${LUA_LGI_FOUND} EQUAL 0)
+ option(
+ MOONSCRIPT_TESTS
+ "Whether or not to run the moonscript tests"
+ "Off"
+ )
# now add the library
add_library(gplugin-lua MODULE
--- a/lua/tests/CMakeLists.txt Sun May 31 14:08:51 2015 -0500
+++ b/lua/tests/CMakeLists.txt Sun May 31 14:12:42 2015 -0500
@@ -23,8 +23,10 @@
add_lua_gtest(test-lua-loader)
target_link_libraries(test-lua-loader gplugin-loader-tests)
-add_lua_gtest(test-lua-moon-loader)
-target_link_libraries(test-lua-moon-loader gplugin-loader-tests)
+if(${MOONSCRIPT_TESTS})
+ add_lua_gtest(test-lua-moon-loader)
+ target_link_libraries(test-lua-moon-loader gplugin-loader-tests)
+endif(${MOONSCRIPT_TESTS})
set(GTESTER_LUA_TESTS "${LUA_TESTS}")
set(GTESTER_LUA_LOG "test-gplugin-lua.xml")