From a19b47c2eb1ea4d4199c6356607f06d2280024ba Mon Sep 17 00:00:00 2001 From: Christoph Galuschka Date: May 12 2012 17:47:39 +0000 Subject: new test for exim on C5 --- diff --git a/tests/p_exim/0-install_exim.sh b/tests/p_exim/0-install_exim.sh new file mode 100755 index 0000000..cec2c69 --- /dev/null +++ b/tests/p_exim/0-install_exim.sh @@ -0,0 +1,17 @@ +#!/bin/bash +# Author: Athmane Madjoudj +# Christoph Galuschka + +if (t_GetPkgRel basesystem | grep -q el5) +then + t_InstallPackage exim + # Remove other MTAs + t_ServiceControl postfix stop + t_ServiceControl sendmail stop + sleep 3 + t_RemovePackage postfix exim sendmail + t_ServiceControl exim start +else + t_Log "This seems to be a C6 system - skipping" +fi + diff --git a/tests/p_exim/exim_smtp.sh b/tests/p_exim/exim_smtp.sh new file mode 100755 index 0000000..8a75a36 --- /dev/null +++ b/tests/p_exim/exim_smtp.sh @@ -0,0 +1,16 @@ +#!/bin/sh +# Author: Athmane Madjoudj +# Christoph Galuschka + +t_Log "Running $0 - Exim SMTP test." + +if (t_GetPkgRel basesystem | grep -q el5) +then + echo "helo test" | nc -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 $?