]> git.sur5r.net Git - bacula/bacula/blob - regress/tests/encrypt-bug-test
9c9f468b270a3bd9c37fb551a16891cd92a5cfc3
[bacula/bacula] / regress / tests / encrypt-bug-test
1 #!/bin/sh
2 #
3 # Run a simple backup of untitled15.jpg that fails to
4 #  restore properly in bug #763 
5 #
6 TestName="encrypt-bug-test"
7 JobName=Crypto-bug
8 . scripts/functions
9 set_debug 1
10
11 scripts/cleanup
12 scripts/copy-crypto-confs
13 echo "${cwd}/untitled15.jpg" >/tmp/file-list
14
15 change_jobname NightlySave $JobName
16 start_test
17
18 cat <<END_OF_DATA >tmp/bconcmds
19 @$out /dev/null
20 messages
21 @$out tmp/log1.out
22 label storage=File volume=TestVolume001
23 @#setdebug level=10 fd
24 run job=$JobName yes
25 wait
26 messages
27 @# 
28 @# now do a restore
29 @#
30 @$out tmp/log2.out
31 @#setdebug level=10 fd
32 restore where=${cwd}/tmp/bacula-restores storage=File
33 5
34 mark *
35 done
36 yes
37 wait
38 messages
39 @$out
40 quit
41 END_OF_DATA
42
43 run_bacula
44 sleep 2
45 check_for_zombie_jobs storage=File 
46 stop_bacula
47
48 du -s build
49 du -s tmp/bacula-restores/
50
51
52 check_two_logs
53 check_restore_diff
54 end_test