]> git.sur5r.net Git - bacula/bacula/blob - regress/tests/tls-authenticate-test
regress: tweak the message in the update_win32()
[bacula/bacula] / regress / tests / tls-authenticate-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-authenticate-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 @$out /dev/null
19 messages
20 @$out tmp/log1.out
21 setdebug level=100 dir
22 setdebug level=100 storage=File
23 setdebug level=100 client=$CLIENT
24 status all
25 status all
26 messages
27 label storage=File volume=TestVolume001 pool=Default
28 run job=$JobName storage=File yes
29 wait
30 messages
31 @# 
32 @# now do a restore
33 @#
34 @$out tmp/log2.out
35 restore where=${cwd}/tmp/bacula-restores select storage=File
36 unmark *
37 mark *
38 done
39 yes
40 wait
41 messages
42 quit
43 END_OF_DATA
44
45 run_bacula
46 check_for_zombie_jobs storage=File
47 stop_bacula
48
49 check_two_logs
50 check_restore_diff
51 end_test