summaryrefslogtreecommitdiff
path: root/test/test-gall.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/test-gall.lua')
-rw-r--r--test/test-gall.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/test-gall.lua b/test/test-gall.lua
index 3f0558d..5287ce9 100644
--- a/test/test-gall.lua
+++ b/test/test-gall.lua
@@ -51,6 +51,16 @@ for _, ent in ipairs {
end
end
+function suite.test_that_git2_present_if_wanted()
+ local want_git2 = not(os.getenv "GALL_DISABLE_GIT2")
+ local have_git2 = io.open("lib/gall/ll/git2.so", "r") ~= nil
+ if want_git2 and have_git2 then
+ assert(gall.ll.git2)
+ else
+ assert(not gall.ll.git2)
+ end
+end
+
local count_ok = 0
for _, testname in ipairs(testnames) do
-- print("Run: " .. testname)