Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix travis #84

Merged
merged 5 commits into from
Nov 12, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/04-fulltest-fail-tag.lua
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ if mt.eom_check(conn, MT_HDRCHANGE, "Subject") or
string.find(subject, "SPF:fail", 1, true) == nil then
error("incorrect Subject")
else
mt.echo("Fail to find subject tag")
mt.echo("Found subject tag: " .. subject)
end
else
error("missing Subject")
Expand Down
7 changes: 2 additions & 5 deletions tests/bin/run_tests.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
#!/bin/bash

GREEN='\033[0;32m'
RED='\033[0;31m'
NOCOLOR='\033[0m'
./smf-spf -h
for conf in ./tests/fail/* /file/does/not/exists ; do
for conf in tests/fail/smf-spf-tests-faiillogfile.conf tests/fail/does-not-exists.conf; do
echo "#########################################"
echo "Running $conf ..."
echo "#########################################"
Expand All @@ -14,5 +11,5 @@ for testfile in tests/0* ; do
echo "#########################################"
echo "Running $testfile ..."
echo "#########################################"
miltertest -s $testfile && echo -e "$GREEN Test OK $NOCOLOR" || echo -e "$RED Test failed $NOCOLOR"
miltertest -s $testfile && echo -e "Test OK" || echo -e "Test failed"
done