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 
Athmane Madjoudj 3baa2c
service httpd restart
Athmane Madjoudj 3baa2c
service mailman start
Athmane Madjoudj 3baa2c
Athmane Madjoudj 3baa2c
curl -s http://localhost/mailman/listinfo | grep -q 'localhost Mailing Lists'
Athmane Madjoudj 3baa2c
Athmane Madjoudj 3baa2c
t_CheckExitStatus $?