From: Kern Sibbald Date: Sun, 2 Jul 2017 07:47:53 +0000 (+0200) Subject: Skip lzo-test if lzo not in Bacula X-Git-Tag: Release-9.0.0~4 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=40ab534b4b5ae2a417bd2f0df5f94746e85d4adc;p=bacula%2Fbacula Skip lzo-test if lzo not in Bacula --- diff --git a/regress/tests/lzo-test b/regress/tests/lzo-test index 2c278485c1..ebaf294fb7 100755 --- a/regress/tests/lzo-test +++ b/regress/tests/lzo-test @@ -1,6 +1,6 @@ #!/bin/sh # -# Copyright (C) 2000-2015 Kern Sibbald +# Copyright (C) 2000-2017 Kern Sibbald # License: BSD 2-Clause; see file LICENSE-FOSS # @@ -12,6 +12,12 @@ TestName="lzo-test" JobName=lzo . scripts/functions +grep "LZO support:.*yes" ${cwd}/build/config.out >/dev/null +if [ $? != 0 ] ; then + echo "LZO support not enabled in Bacula. Skipping lzo-test" + exit 0 +fi + scripts/cleanup scripts/copy-test-confs echo "${cwd}/build" >${cwd}/tmp/file-list