bstinson / centos / t_functional

Forked from centos/t_functional 3 years ago
Clone
Blob Blame History Raw
#!/bin/sh
# Author: Athmane Madjoudj <athmanem@gmail.com>
#	  Christoph Galuschka <christoph.galuschka@chello.at>

t_Log "Running $0 - Exim SMTP test."

if (t_GetPkgRel basesystem | grep -q el5)
then
  echo "helo test" | nc -i 1 -w 3 localhost 25 | grep -q '250'
  ret_val=$?
else
  t_Log "This seems to be a C6 system - skipping"
  ret_val=0
fi

t_CheckExitStatus $ret_val