3 # Copyright (C) 2000-2015 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
11 TestName="compressed-test"
16 scripts/copy-test-confs
17 echo "${cwd}/build" >${cwd}/tmp/file-list
19 change_jobname CompressedTest $JobName
22 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
25 @$out ${cwd}/tmp/log1.out
29 label storage=File volume=TestVolume001
30 run job=$JobName storage=File yes
36 @$out ${cwd}/tmp/log2.out
37 restore where=${cwd}/tmp/bacula-restores select storage=File
48 check_for_zombie_jobs storage=File
53 grep " Software Compression" ${cwd}/tmp/log1.out | grep "%" 2>&1 1>/dev/null
55 echo " !!!!! No compression !!!!!"