diff --git a/tests/p_mod_wsgi/0-install_mod_wsgi.sh b/tests/p_mod_wsgi/0-install_mod_wsgi.sh new file mode 100755 index 0000000..0f9de2f --- /dev/null +++ b/tests/p_mod_wsgi/0-install_mod_wsgi.sh @@ -0,0 +1,12 @@ +#!/bin/bash +# Author: Athmane Madjoudj + +if (t_GetPkgRel basesystem | grep -q el6) +then + t_InstallPackage mod_wsgi + service httpd restart +else + echo "Skipped on CentOS 5" +fi + + diff --git a/tests/p_mod_wsgi/mod_wsgi_test.sh b/tests/p_mod_wsgi/mod_wsgi_test.sh new file mode 100755 index 0000000..30d4cf1 --- /dev/null +++ b/tests/p_mod_wsgi/mod_wsgi_test.sh @@ -0,0 +1,35 @@ +#!/bin/sh +# Author: Athmane Madjoudj + +t_Log "Running $0 - Apache httpd mod_wsgi is functional" +if (t_GetPkgRel basesystem | grep -q el6) +then + + +cat > /etc/httpd/conf.d/tf_app.conf < /var/www/html/tf_app.wsgi <