]> git.sur5r.net Git - bacula/bacula/blob - regress/tests/tls-test
Make out of freespace non-fatal for removable devices -- i.e. behaves like tape
[bacula/bacula] / regress / tests / tls-test
1 #!/bin/sh
2 #
3 # Copyright (C) 2000-2015 Kern Sibbald
4 # License: BSD 2-Clause; see file LICENSE-FOSS
5 #
6
7 #
8 # Run a simple backup of the Bacula build directory with TLS
9 #   communications code enabled then restore it.
10 #
11 TestName="tls-test"
12 JobName=tls
13 . scripts/functions
14
15 scripts/cleanup
16 scripts/copy-tls-confs
17 echo "${cwd}/build" >${cwd}/tmp/file-list
18
19 change_jobname CompressedTest $JobName
20 start_test
21       
22 cat <<END_OF_DATA >tmp/bconcmds
23 messages
24 @$out tmp/log1.out
25 status all
26 status all
27 messages
28 label storage=File volume=TestVolume001 pool=Default
29 run job=$JobName storage=File yes
30 wait
31 messages
32 @# 
33 @# now do a restore
34 @#
35 @$out tmp/log2.out
36 restore where=${cwd}/tmp/bacula-restores select storage=File
37 unmark *
38 mark *
39 done
40 yes
41 wait
42 messages
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