mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
Revert "Remove unused test file for lua-gd"
This reverts commit 4f5d1919c3.
This commit is contained in:
parent
623d68d13b
commit
d8b6d701b1
1 changed files with 24 additions and 0 deletions
24
src/deps/src/lua-gd/test_features.lua
vendored
Normal file
24
src/deps/src/lua-gd/test_features.lua
vendored
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
#!/usr/bin/env lua
|
||||
|
||||
local gd = require("gd")
|
||||
|
||||
function enabled(res, desc)
|
||||
local str = " " .. desc .. " "
|
||||
str = str .. string.rep(".", 37 - string.len(str))
|
||||
if res then
|
||||
print(str .. " Enabled")
|
||||
else
|
||||
print(str .. " Disabled")
|
||||
end
|
||||
end
|
||||
|
||||
print("Lua-GD version: " .. gd.VERSION)
|
||||
print("Lua-GD features:")
|
||||
|
||||
enabled(gd.png, "PNG support")
|
||||
enabled(gd.gif, "GIF support")
|
||||
enabled(gd.jpeg, "JPEG support")
|
||||
enabled(gd.createFromXpm, "XPM/XBM support")
|
||||
enabled(gd.stringFT, "FreeType support")
|
||||
enabled(gd.useFontConfig, "Fontconfig support")
|
||||
|
||||
Loading…
Reference in a new issue