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