]> git.sur5r.net Git - bacula/bacula/blob - regress/tests/tls-test
regress: tweak the message in the update_win32()
[bacula/bacula] / regress / tests / tls-test
1 #!/bin/sh
2 #
3 # Run a simple backup of the Bacula build directory with TLS
4 #   communications code enabled then restore it.
5 #
6 TestName="tls-test"
7 JobName=tls
8 . scripts/functions
9
10 scripts/cleanup
11 scripts/copy-tls-confs
12 echo "${cwd}/build" >${cwd}/tmp/file-list
13
14 change_jobname CompressedTest $JobName
15 start_test
16       
17 cat <<END_OF_DATA >tmp/bconcmds
18 messages
19 @$out tmp/log1.out
20 status all
21 status all
22 messages
23 label storage=File volume=TestVolume001 pool=Default
24 run job=$JobName storage=File yes
25 wait
26 messages
27 @# 
28 @# now do a restore
29 @#
30 @$out 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 end_test