From 0cfeec673459f22fa5964a1bba70a12482a91fa4 Mon Sep 17 00:00:00 2001 From: Christoph Galuschka Date: May 16 2012 15:39:18 +0000 Subject: added tests for link to /usr/sbin/postfix --- diff --git a/tests/p_exim/1-test-sendmail.sh b/tests/p_exim/1-test-sendmail.sh new file mode 100755 index 0000000..1e3fb80 --- /dev/null +++ b/tests/p_exim/1-test-sendmail.sh @@ -0,0 +1,23 @@ +#!/bin/bash +# Author: Christoph Galuschka + +t_Log "Running $0 - testing if /usr/sbin/sendmail for exim is sane." + +if (t_GetPkgRel basesystem | grep -q el5) +then + mta=$(ls -H /usr/sbin/sendmail) + + if [ $mta == '/usr/sbin/sendmail' ] + then + t_Log "link to sendmail seems to be sane" + ret_val=0 + else + t_Log "link to sendmail seems to be wrong" + ret_val=1 + fi +else + t_Log "This seems to be a C6 system - skipping" + ret_val=0 +fi + +t_CheckExitStatus $ret_val diff --git a/tests/p_postfix/1-test-sendmail.sh b/tests/p_postfix/1-test-sendmail.sh new file mode 100755 index 0000000..23c1184 --- /dev/null +++ b/tests/p_postfix/1-test-sendmail.sh @@ -0,0 +1,17 @@ +#!/bin/bash +# Author: Christoph Galuschka + +t_Log "Running $0 - testing if /usr/sbin/sendmail for postfix is sane." + +mta=$(ls -H /usr/sbin/sendmail) + +if [ $mta == '/usr/sbin/sendmail' ] + then + t_Log "link to sendmail seems to be sane" + ret_val=0 +else + t_Log "link to sendmail seems to be wrong" + ret_val=1 +fi + +t_CheckExitStatus $ret_val diff --git a/tests/p_sendmail/1-test-sendmail.sh b/tests/p_sendmail/1-test-sendmail.sh new file mode 100755 index 0000000..142955c --- /dev/null +++ b/tests/p_sendmail/1-test-sendmail.sh @@ -0,0 +1,17 @@ +#!/bin/bash +# Author: Christoph Galuschka + +t_Log "Running $0 - testing if /usr/sbin/sendmail for sendmail is sane." + +mta=$(ls -H /usr/sbin/sendmail) + +if [ $mta == '/usr/sbin/sendmail' ] + then + t_Log "link to sendmail seems to be sane" + ret_val=0 +else + t_Log "link to sendmail seems to be wrong" + ret_val=1 +fi + +t_CheckExitStatus $ret_val