From 8846d46a40960380abc267b906e05268c488c12f Mon Sep 17 00:00:00 2001 From: Athmane Madjoudj Date: Sep 10 2011 13:16:15 +0000 Subject: Add logwatch test --- diff --git a/tests/p_logwatch/0-install_logwatch.sh b/tests/p_logwatch/0-install_logwatch.sh new file mode 100755 index 0000000..7fa7223 --- /dev/null +++ b/tests/p_logwatch/0-install_logwatch.sh @@ -0,0 +1,6 @@ +#!/bin/bash +# Author: Athmane Madjoudj + +t_Log "$0 - Installing logwatch" +t_InstallPackage logwatch + diff --git a/tests/p_logwatch/logwatch_test.sh b/tests/p_logwatch/logwatch_test.sh new file mode 100755 index 0000000..95a487a --- /dev/null +++ b/tests/p_logwatch/logwatch_test.sh @@ -0,0 +1,8 @@ +#!/bin/sh +# Author: Athmane Madjoudj + +t_Log "Running $0 - logwatch test." + +logwatch --print | grep -q 'Logwatch End' + +t_CheckExitStatus $?