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 <