From 6417b7f7c4dffbb9969c306736b8744121cd6e1f Mon Sep 17 00:00:00 2001 From: Athmane Madjoudj Date: Sep 20 2011 16:54:14 +0000 Subject: Add bind/named test --- diff --git a/tests/p_bind/0-install_bind.sh b/tests/p_bind/0-install_bind.sh new file mode 100755 index 0000000..f1affb6 --- /dev/null +++ b/tests/p_bind/0-install_bind.sh @@ -0,0 +1,6 @@ +#!/bin/bash +# Author: Athmane Madjoudj + +t_InstallPackage bind bind-utils + +t_ServiceControl named start diff --git a/tests/p_bind/bind_test.sh b/tests/p_bind/bind_test.sh new file mode 100755 index 0000000..2c82266 --- /dev/null +++ b/tests/p_bind/bind_test.sh @@ -0,0 +1,8 @@ +#!/bin/sh +# Author: Athmane Madjoudj + +t_Log "Running $0 - bind test." + +dig +timeout=1 +short @127.0.0.1 localhost | grep -q '127.0.0.1' + +t_CheckExitStatus $?