]> git.sur5r.net Git - bacula/bacula/blob - regress/tests/compress-encrypt-test
Make out of freespace non-fatal for removable devices -- i.e. behaves like tape
[bacula/bacula] / regress / tests / compress-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="compressed-encrypt-test"
12 JobName=CompressedTest
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 setdebug level=10 fd
27 run job=$JobName yes
28 wait
29 messages
30 list volumes
31 @# 
32 @# now do a restore
33 @#
34 @$out ${cwd}/tmp/log2.out
35 @# setdebug level=0 fd
36 restore where=${cwd}/tmp/bacula-restores storage=File
37 5
38 mark *
39 done
40 yes
41 wait
42 messages
43 quit
44 END_OF_DATA
45
46 run_bacula
47 sleep 2
48 check_for_zombie_jobs storage=File 
49 stop_bacula
50
51 check_two_logs
52 check_restore_diff
53 end_test