From 26170b378dc4249da4f5bb313a8ae57403ad65a7 Mon Sep 17 00:00:00 2001 From: Athmane Madjoudj Date: Jun 28 2011 08:27:46 +0000 Subject: Install packages required by the tests --- diff --git a/tests/p_dovecot/0-install_dovecot.sh b/tests/p_dovecot/0-install_dovecot.sh index fc56e12..f1b566b 100755 --- a/tests/p_dovecot/0-install_dovecot.sh +++ b/tests/p_dovecot/0-install_dovecot.sh @@ -3,6 +3,9 @@ t_Log "Running $0 - installation and startup of dovecot IMAP/POP3." +# Install some pkgs needed by the tests +t_InstallPackage nc grep + t_InstallPackage dovecot chkconfig dovecot on t_ServiceControl dovecot start diff --git a/tests/p_dovecot/dovecot_imap_login.sh b/tests/p_dovecot/dovecot_imap_login.sh index da3931e..a2bcb4d 100755 --- a/tests/p_dovecot/dovecot_imap_login.sh +++ b/tests/p_dovecot/dovecot_imap_login.sh @@ -5,8 +5,6 @@ t_Log "Running $0 - adding imaptest local user account + attempting IMAP login" { userdel imaptest; useradd imaptest && echo imaptest | passwd --stdin imaptest; } &>/dev/null -t_InstallPackage nc - t_Log "Dovecot IMAP login test" echo -e "01 LOGIN imaptest imaptest\n" | nc localhost 143 | grep "01 OK Logged in." diff --git a/tests/p_httpd/0-install_httpd.sh b/tests/p_httpd/0-install_httpd.sh index f7911a1..e7a75d0 100755 --- a/tests/p_httpd/0-install_httpd.sh +++ b/tests/p_httpd/0-install_httpd.sh @@ -1,6 +1,9 @@ #!/bin/bash # Author: Athmane Madjoudj +# Install tests deps +t_InstallPackage curl + # HTTPD / PHP t_InstallPackage httpd mod_ssl php php-mysql chkconfig httpd on