From 1ce5204e8a2579fcbd309332720a9cc537a9a404 Mon Sep 17 00:00:00 2001 From: Athmane Madjoudj Date: Apr 18 2012 22:08:36 +0000 Subject: Add chkconfig test --- diff --git a/tests/p_chkconfig/chkconfig_list_services.sh b/tests/p_chkconfig/chkconfig_list_services.sh new file mode 100755 index 0000000..895fdb8 --- /dev/null +++ b/tests/p_chkconfig/chkconfig_list_services.sh @@ -0,0 +1,10 @@ +#!/bin/bash +# Author: Athmane Madjoudj + +t_Log "Running $0 - check if chkconfig can list a service status" + +# auditd is used as example because it's standard with minimal install +chkconfig --list auditd | grep -q '3:on' + +t_CheckExitStatus $? +