3 # Copyright (C) 2000-2017 Kern Sibbald
4 # License: BSD 2-Clause; see file LICENSE-FOSS
8 # Run a simple backup of the Bacula build directory using the compressed option
15 grep "LZO support:.*yes" ${cwd}/build/config.out >/dev/null
17 echo "LZO support not enabled in Bacula. Skipping lzo-test"
22 scripts/copy-test-confs
23 echo "${cwd}/build" >${cwd}/tmp/file-list
27 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
30 @$out ${cwd}/tmp/log1.out
34 label storage=File volume=TestVolume001
35 run job=LZOTest storage=File yes
41 @$out ${cwd}/tmp/log2.out
42 restore where=${cwd}/tmp/bacula-restores select storage=File
53 check_for_zombie_jobs storage=File
58 grep " Software Compression" ${cwd}/tmp/log1.out | grep "%" 2>&1 1>/dev/null
60 echo " !!!!! No compression !!!!!"