From 23f3494985cca3f8fdffc81cea5929731899983b Mon Sep 17 00:00:00 2001 From: Athmane Madjoudj Date: Jan 09 2012 20:35:59 +0000 Subject: Add mod_python tests (c5 only) --- diff --git a/tests/p_mod_python/0-install_mod_python.sh b/tests/p_mod_python/0-install_mod_python.sh new file mode 100755 index 0000000..3117d66 --- /dev/null +++ b/tests/p_mod_python/0-install_mod_python.sh @@ -0,0 +1,12 @@ +#!/bin/bash +# Author: Athmane Madjoudj + +if (t_GetPkgRel basesystem | grep -q el5) +then + t_InstallPackage mod_python + service httpd restart +else + echo "Skipped on CentOS 6" +fi + + diff --git a/tests/p_mod_python/mod_python_test.sh b/tests/p_mod_python/mod_python_test.sh new file mode 100755 index 0000000..c12bcd3 --- /dev/null +++ b/tests/p_mod_python/mod_python_test.sh @@ -0,0 +1,37 @@ +#!/bin/sh +# Author: Athmane Madjoudj + +t_Log "Running $0 - Apache httpd mod_python is functional" +if (t_GetPkgRel basesystem | grep -q el5) +then + + +cat > /etc/httpd/conf.d/tf_mptest.conf < + AddHandler mod_python .py + PythonHandler mptest + PythonDebug On + +EOF + +mkdir -p /var/www/html/mptest/ + +cat > /var/www/html/mptest/mptest.py <