From 376560e1ce6d553399102c0e12fbad9ee7e38647 Mon Sep 17 00:00:00 2001 From: Christoph Galuschka Date: Oct 27 2013 09:02:02 +0000 Subject: changed php-mysql test to reflect mysql55 from CentOS5.10 --- diff --git a/tests/p_php/20-php-mysql-test.sh b/tests/p_php/20-php-mysql-test.sh index 9437799..458cfb7 100755 --- a/tests/p_php/20-php-mysql-test.sh +++ b/tests/p_php/20-php-mysql-test.sh @@ -1,6 +1,6 @@ #!/bin/sh # Author: Athmane Madjoudj -# Author: Christoph Galuschka +# Author: Christoph Galuschka # reusing the script from LAMP-Tests t_Log "Running $0 - php-cli basic interaction with mysql test." @@ -9,8 +9,15 @@ t_Log "Running $0 - php-cli basic interaction with mysql test." t_InstallPackage php-mysql # we need a working and running mysql server -t_InstallPackage mysql-server -t_ServiceControl mysqld start >/dev/null 2>&1 +#starting with 5.10 we need to reflect mysql55 +if [ $centos_ver = 5 ] +then + t_InstallPackage mysql55-mysql-server nc + t_ServiceControl mysql55-mysqld start >/dev/null 2>&1 +else + t_InstallPackage mysql-server nc + t_ServiceControl mysqld start >/dev/null 2>&1 +fi #create a little DB to use CREATE='/var/tmp/mysql-php-QA.sql'