bstinson / centos / t_functional

Forked from centos/t_functional 4 years ago
Clone
Blob Blame History Raw
#!/bin/sh
# Author: Athmane Madjoudj <athmanem@gmail.com>

t_Log "Running $0 - check that spamassassin can detect spam."

VERSION=`t_GetPkgVer spamassassin`
spamassassin --lint &&\
spamassassin < /usr/share/doc/spamassassin-${VERSION}/sample-spam.txt | grep -q 'X-Spam-Flag: YES'

t_CheckExitStatus $?