bstinson / centos / t_functional

Forked from centos/t_functional 4 years ago
Clone

Blame tests/p_mailman/mailman_test.sh

Athmane Madjoudj 3baa2c
#!/bin/sh
Athmane Madjoudj 3baa2c
# Author: Athmane Madjoudj <athmanem@gmail.com>
Athmane Madjoudj 3baa2c
Athmane Madjoudj 3baa2c
t_Log "Running $0 - mailman test."
Athmane Madjoudj 3baa2c
Athmane Madjoudj 3baa2c
# Add mailman list
Athmane Madjoudj 3baa2c
/usr/lib/mailman/bin/newlist -q mailman root@localhost.localdomain password > /dev/null 2>&1
Athmane Madjoudj 3baa2c
Athmane Madjoudj 3baa2c
# Restart httpd (started in other tests) and start mailman 
Karanbir Singh 90a10d
t_ServiceControl httpd restart
Karanbir Singh 90a10d
t_ServiceControl mailman start
Athmane Madjoudj 3baa2c
Athmane Madjoudj 3baa2c
curl -s http://localhost/mailman/listinfo | grep -q 'localhost Mailing Lists'
Athmane Madjoudj 3baa2c
t_CheckExitStatus $?
Karanbir Singh 90a10d
Karanbir Singh 90a10d
t_ServiceControl httpd stop
Karanbir Singh 90a10d
t_ServiceControl mailman stop