From a3e79face19a39fb1ab614eeab70c9830e6b304b Mon Sep 17 00:00:00 2001 From: Athmane Madjoudj Date: Sep 17 2011 22:22:32 +0000 Subject: Add networking related tests --- diff --git a/tests/p_network/network_device_test.sh b/tests/p_network/network_device_test.sh new file mode 100755 index 0000000..0235fea --- /dev/null +++ b/tests/p_network/network_device_test.sh @@ -0,0 +1,8 @@ +#!/bin/sh +# Author: Athmane Madjoudj + +t_Log "Running $0 - Check if a least one network device is available." + +ifconfig | grep -q eth0 + +t_CheckExitStatus $? diff --git a/tests/p_network/networking_enabled_test.sh b/tests/p_network/networking_enabled_test.sh new file mode 100755 index 0000000..fbc1c1c --- /dev/null +++ b/tests/p_network/networking_enabled_test.sh @@ -0,0 +1,9 @@ +#!/bin/sh +# Author: Athmane Madjoudj + +t_Log "Running $0 - Check if networking is enabled." + +grep -q 'NETWORKING=yes' /etc/sysconfig/network + + +t_CheckExitStatus $?