]> git.sur5r.net Git - bacula/bacula/blob - regress/tests/tls-authenticate-test
ebl Add Runscript tests for restore jobs
[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 @output
19 messages
20 @$out tmp/log1.out
21 setdebug level=100 dir
22 setdebug level=100 storage=File
23 setdebug level=100 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 @output
43 quit
44 END_OF_DATA
45
46 run_bacula
47 check_for_zombie_jobs storage=File
48 stop_bacula
49
50 check_two_logs
51 check_restore_diff
52 end_test