Skip to content

Commit

Permalink
Better coverage. Load all confs
Browse files Browse the repository at this point in the history
  • Loading branch information
José Borges Ferreira committed Nov 8, 2017
1 parent e03d3da commit 3fb2279
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
3 changes: 2 additions & 1 deletion smf-spf-tests-q.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ WhitelistIP 127.0.0.0/8
RefuseFail off # (on|off)
SoftFail off # (on|off)
AcceptTempError off
TagSubject of # (on|off)
AddReceivedHeader on
TagSubject on # (on|off)
AddHeader off # (on|off)
Quarantine on # (on|off)
QuarantineBox postmaster
Expand Down
8 changes: 8 additions & 0 deletions tests/01-loadconfig-q.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
mt.startfilter("./smf-spf", "-f", "-c","./smf-spf-tests-q.conf")
-- try to connect to it
conn = mt.connect("inet:2424@127.0.0.1", 40, 0.25)
if conn == nil then
error("mt.connect() failed")
end

print "Connect to Milter: OK"
8 changes: 8 additions & 0 deletions tests/01-loadconfig-refuse.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
mt.startfilter("./smf-spf", "-f", "-c","./smf-spf-tests-refuse.conf")
-- try to connect to it
conn = mt.connect("inet:2424@127.0.0.1", 40, 0.25)
if conn == nil then
error("mt.connect() failed")
end

print "Connect to Milter: OK"

0 comments on commit 3fb2279

Please sign in to comment.