bstinson / centos / t_functional

Forked from centos/t_functional 4 years ago
Clone

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
Athmane Madjoudj 628063
VERSION=`t_GetPkgVer spamassassin`
Athmane Madjoudj 628063
spamassassin --lint &&\
Athmane Madjoudj 628063
spamassassin < /usr/share/doc/spamassassin-${VERSION}/sample-spam.txt | grep -q 'X-Spam-Flag: YES'
Athmane Madjoudj 628063
Athmane Madjoudj 628063
t_CheckExitStatus $?