Files
dkimpy-milter-smtputf8/tests/01_connect.miltertest
T
Daniel Kahn Gillmor 72ed000ccf simple testing framework
2019-02-21 19:21:38 -05:00

15 lines
365 B
Lua
Executable File

-- -*- lua -*-
mt.echo("beginning test")
conn = mt.connect("unix:signing.sock")
if conn == nil then
error "mt.connect() failed"
end
if mt.conninfo(conn, "localhost", "127.0.0.1") ~= nil then
error "mt.conninfo() failed"
end
if mt.getreply(conn) ~= SMFIR_CONTINUE then
error "mt.conninfo() unexpected reply"
end
mt.disconnect(conn)
mt.echo("test complete")