]> git.sur5r.net Git - bacula/bacula/blob - regress/tests/encrypt-bug-test
Change name of db to regress
[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 0
10
11 scripts/cleanup
12 scripts/copy-crypto-confs
13 file="${cwd}/encrypt-bug.jpg"
14 echo "${file}" >/tmp/file-list
15
16 change_jobname NightlySave $JobName
17 start_test
18
19 cat <<END_OF_DATA >tmp/bconcmds
20 @$out /dev/null
21 messages
22 @$out tmp/log1.out
23 label storage=File volume=TestVolume001
24 setdebug level=100 fd
25 run job=$JobName yes
26 wait
27 messages
28 @# 
29 @# now do a restore
30 @#
31 @$out tmp/log2.out
32 setdebug level=100 fd
33 restore where=${cwd}/tmp/bacula-restores storage=File
34 5
35 mark *
36 done
37 yes
38 wait
39 messages
40 @$out
41 quit
42 END_OF_DATA
43
44 run_bacula
45 sleep 2
46 check_for_zombie_jobs storage=File 
47 stop_bacula
48
49 du -s build
50 du -s tmp/bacula-restores/
51
52
53 check_two_logs
54 diff ${file} ${cwd}/tmp/bacula-restores/${file} 2>&1 >/dev/null
55 dstat=$?
56 end_test