From 3baa2c8adaa8ffc07bc904e907d138128ea89078 Mon Sep 17 00:00:00 2001 From: Athmane Madjoudj Date: Sep 10 2011 23:21:46 +0000 Subject: Add mailman test --- diff --git a/tests/p_mailman/0-install_mailman.sh b/tests/p_mailman/0-install_mailman.sh new file mode 100755 index 0000000..5fa849a --- /dev/null +++ b/tests/p_mailman/0-install_mailman.sh @@ -0,0 +1,6 @@ +#!/bin/bash +# Author: Athmane Madjoudj + +t_Log "$0 - Installing mailman" +t_InstallPackage mailman + diff --git a/tests/p_mailman/mailman_test.sh b/tests/p_mailman/mailman_test.sh new file mode 100755 index 0000000..b1d4156 --- /dev/null +++ b/tests/p_mailman/mailman_test.sh @@ -0,0 +1,15 @@ +#!/bin/sh +# Author: Athmane Madjoudj + +t_Log "Running $0 - mailman test." + +# Add mailman list +/usr/lib/mailman/bin/newlist -q mailman root@localhost.localdomain password > /dev/null 2>&1 + +# Restart httpd (started in other tests) and start mailman +service httpd restart +service mailman start + +curl -s http://localhost/mailman/listinfo | grep -q 'localhost Mailing Lists' + +t_CheckExitStatus $?