From d2d805646490505033731b93b53870f62985302a Mon Sep 17 00:00:00 2001 From: Athmane Madjoudj Date: Jun 24 2011 00:24:00 +0000 Subject: Added sendmail test, removed arch (i386) from install nfs test otherwise the test will not work on x86_64 --- diff --git a/tests/p_nfs/0-install_nfs.sh b/tests/p_nfs/0-install_nfs.sh index e40fb57..461d2ed 100755 --- a/tests/p_nfs/0-install_nfs.sh +++ b/tests/p_nfs/0-install_nfs.sh @@ -2,7 +2,7 @@ # Author: Athmane Madjoudj # NFS -t_InstallPackage nfs-utils.i686 +t_InstallPackage nfs-utils # Restart because usualy NFS is enabled by default on CentOS-5 t_ServiceControl nfs restart diff --git a/tests/p_sendmail/0-install_sendmail.sh b/tests/p_sendmail/0-install_sendmail.sh new file mode 100755 index 0000000..fffbd86 --- /dev/null +++ b/tests/p_sendmail/0-install_sendmail.sh @@ -0,0 +1,11 @@ +#!/bin/bash +# Author: Athmane Madjoudj + +t_InstallPackage sendmail + +# Remove other MTAs +t_RemovePackage postfix exim +t_ServiceControl postfix stop +t_ServiceControl exim stop + +t_ServiceControl sendmail start diff --git a/tests/p_sendmail/sendmail_smtp.sh b/tests/p_sendmail/sendmail_smtp.sh new file mode 100755 index 0000000..108fb3e --- /dev/null +++ b/tests/p_sendmail/sendmail_smtp.sh @@ -0,0 +1,8 @@ +#!/bin/sh +# Author: Athmane Madjoudj + +t_Log "Running $0 - Sendmail SMTP test." + +echo "helo test" | nc localhost 25 | grep '250' + +t_CheckExitStatus $?