]> git.sur5r.net Git - bacula/bacula/blob - regress/tests/lzo-encrypt-test
Make out of freespace non-fatal for removable devices -- i.e. behaves like tape
[bacula/bacula] / regress / tests / lzo-encrypt-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 with encryption and compression of the Bacula build directory
9 #   then verify the signatures.
10 #
11 TestName="lzo-encrypt-test"
12 JobName=LZOTest
13 . scripts/functions
14
15 scripts/cleanup
16 scripts/copy-crypto-confs
17 echo "${cwd}/build" >${cwd}/tmp/file-list
18
19 start_test
20
21 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
22 @output /dev/null
23 messages
24 @$out ${cwd}/tmp/log1.out
25 label storage=File volume=TestVolume001
26 run job=$JobName yes
27 wait
28 messages
29 list volumes
30 @# 
31 @# now do a restore
32 @#
33 @$out ${cwd}/tmp/log2.out
34 @# setdebug level=0 fd
35 restore where=${cwd}/tmp/bacula-restores storage=File
36 5
37 mark *
38 done
39 yes
40 wait
41 messages
42 quit
43 END_OF_DATA
44
45 run_bacula
46 sleep 2
47 check_for_zombie_jobs storage=File 
48 stop_bacula
49
50 check_two_logs
51 check_restore_diff
52 end_test