bstinson / centos / t_functional

Forked from centos/t_functional 4 years ago
Clone

Blame tests/p_exim/exim_smtp.sh

Christoph Galuschka a19b47
#!/bin/sh
Christoph Galuschka a19b47
# Author: Athmane Madjoudj <athmanem@gmail.com>
Christoph Galuschka a19b47
#	  Christoph Galuschka <christoph.galuschka@chello.at>
Christoph Galuschka a19b47
Christoph Galuschka a19b47
t_Log "Running $0 - Exim SMTP test."
Christoph Galuschka a19b47
Christoph Galuschka a19b47
if (t_GetPkgRel basesystem | grep -q el5)
Christoph Galuschka a19b47
then
Christoph Galuschka 5b1d14
  echo "helo test" | nc -i 1 -w 3 localhost 25 | grep -q '250'
Christoph Galuschka a19b47
  ret_val=$?
Christoph Galuschka a19b47
else
Christoph Galuschka a19b47
  t_Log "This seems to be A C6 system - skipping"
Christoph Galuschka a19b47
  ret_val=0
Christoph Galuschka a19b47
fi
Christoph Galuschka a19b47
Christoph Galuschka 5b1d14
t_CheckExitStatus $ret_val