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 $?