]> git.sur5r.net Git - bacula/bacula/blob - regress/tests/compress-encrypt-test
regress: fix delete-test
[bacula/bacula] / regress / tests / compress-encrypt-test
1 #!/bin/sh
2 #
3 # Run a simple backup with encryption and compression of the Bacula build directory
4 #   then verify the signatures.
5 #
6 TestName="compressed-encrypt-test"
7 JobName=CompressedTest
8 . scripts/functions
9
10 scripts/cleanup
11 scripts/copy-crypto-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 label storage=File volume=TestVolume001
21 setdebug level=10 fd
22 run job=$JobName yes
23 wait
24 messages
25 list volumes
26 @# 
27 @# now do a restore
28 @#
29 @$out ${cwd}/tmp/log2.out
30 @# setdebug level=0 fd
31 restore where=${cwd}/tmp/bacula-restores storage=File
32 5
33 mark *
34 done
35 yes
36 wait
37 messages
38 quit
39 END_OF_DATA
40
41 run_bacula
42 sleep 2
43 check_for_zombie_jobs storage=File 
44 stop_bacula
45
46 check_two_logs
47 check_restore_diff
48 end_test