File: smoke.lua

package info (click to toggle)
lua-ldap 1.4.0-1~bpo12%2B1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm-backports
  • size: 448 kB
  • sloc: ansic: 776; sh: 72; makefile: 62
file content (21 lines) | stat: -rw-r--r-- 480 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21

local m = require'lualdap'
assert(type(m) == 'table')
assert(m == package.loaded.lualdap)

assert(m._COPYRIGHT:match'Kepler Project')
assert(m._DESCRIPTION:match'LDAP client')
assert(m._VERSION:match'^LuaLDAP %d%.%d%.%d')

-- luacheck: globals lualdap
if _VERSION == 'Lua 5.1' then
    assert(lualdap == m)
end

if not os.getenv('OS') then
    assert(type(m.initialize) == 'function')
end
assert(type(m.open) == 'function')
assert(type(m.open_simple) == 'function')

print'PASS'