From: Pierangelo Masarati Date: Wed, 5 Feb 2003 14:50:15 +0000 (+0000) Subject: quick hack to check for awk X-Git-Tag: NO_SLAP_OP_BLOCKS~435 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e258f53be28ab34acce2b84b3a8817edf2c0a8d4;p=openldap quick hack to check for awk --- diff --git a/tests/scripts/test011-subtree-repl b/tests/scripts/test011-subtree-repl index 3089ba0779..ed1a9c10a4 100755 --- a/tests/scripts/test011-subtree-repl +++ b/tests/scripts/test011-subtree-repl @@ -41,6 +41,14 @@ if test ! -x $SLURPD ; then exit 0 fi +# quick hack to check for awk +echo "looking for a POSIX compliant awk" +awk -W version >/dev/null 2>&1 +if test $? != 0 ; then + echo "This test requires awk" + exit 0 +fi + echo "Cleaning up in $DBDIR..." rm -f $DBDIR/[!C]* echo "Cleaning up in $REPLDIR..."