]> git.sur5r.net Git - bacula/bacula/commitdiff
Skip lzo-test if lzo not in Bacula
authorKern Sibbald <kern@sibbald.com>
Sun, 2 Jul 2017 07:47:53 +0000 (09:47 +0200)
committerKern Sibbald <kern@sibbald.com>
Sun, 2 Jul 2017 07:47:53 +0000 (09:47 +0200)
regress/tests/lzo-test

index 2c278485c14c91967f4fa0beb697d3dec388127c..ebaf294fb760a41b6fa93a05c9d60c0ee7df33d9 100755 (executable)
@@ -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