summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2012-09-08 20:09:33 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2012-09-08 20:09:33 +0100
commitf0613b4cc5763d3de7dd65b89e6b4f9d3c6e6190 (patch)
treea5843b2cc60ead660dd2dd424c07600737b20eed /test
parent8d03cfc784b8b168d9910df456d6794df53b561f (diff)
downloadgall-f0613b4cc5763d3de7dd65b89e6b4f9d3c6e6190.tar.gz
GALL: Allow for optional git2 support
Diffstat (limited to 'test')
-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)