]> git.sur5r.net Git - bacula/bacula/blob - regress/tests/lzo-test
regress: Add test for bvfs-test with deleted files
[bacula/bacula] / regress / tests / lzo-test
1 #!/bin/sh
2 #
3 # Run a simple backup of the Bacula build directory using the compressed option
4 #   then restore it.
5 #
6 TestName="lzo-test"
7 JobName=lzo
8 . scripts/functions
9
10 scripts/cleanup
11 scripts/copy-test-confs
12 echo "${cwd}/build" >${cwd}/tmp/file-list
13
14 start_test
15       
16 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
17 @$out /dev/null
18 messages
19 @$out ${cwd}/tmp/log1.out
20 status all
21 status all
22 messages
23 label storage=File volume=TestVolume001
24 run job=LZOTest storage=File yes
25 wait
26 messages
27 @# 
28 @# now do a restore
29 @#
30 @$out ${cwd}/tmp/log2.out
31 restore where=${cwd}/tmp/bacula-restores select storage=File
32 unmark *
33 mark *
34 done
35 yes
36 wait
37 messages
38 quit
39 END_OF_DATA
40
41 run_bacula
42 check_for_zombie_jobs storage=File
43 stop_bacula
44
45 check_two_logs
46 check_restore_diff
47 grep " Software Compression" ${cwd}/tmp/log1.out | grep "%" 2>&1 1>/dev/null
48 if [ $? != 0 ] ; then
49    echo "  !!!!! No compression !!!!!"
50    bstat=1
51 fi
52 end_test