Blame tests/p_spamassassin/spamassassin_test.sh

Athmane Madjoudj 628063
#!/bin/sh
Athmane Madjoudj 628063
# Author: Athmane Madjoudj <athmanem@gmail.com>
Athmane Madjoudj 628063
Athmane Madjoudj 628063
t_Log "Running $0 - check that spamassassin can detect spam."
Athmane Madjoudj 628063
Pablo Greco 95afe3
if [ "$centos_ver" -lt 8 ] ; then
Pablo Greco 95afe3
VERSION=-`t_GetPkgVer spamassassin`
Pablo Greco 95afe3
fi
Athmane Madjoudj 628063
spamassassin --lint &&\
Pablo Greco 95afe3
spamassassin < /usr/share/doc/spamassassin${VERSION}/sample-spam.txt | grep -q 'X-Spam-Flag: YES'
Athmane Madjoudj 628063
Athmane Madjoudj 628063
t_CheckExitStatus $?