]> git.sur5r.net Git - bacula/bacula/blob - regress/tests/filed-crypto-test
Begin simplification and cleanup of tests using shell functions
[bacula/bacula] / regress / tests / filed-crypto-test
1 #!/bin/sh
2 #
3 # Run a simple backup (with encryption) of the Bacula build directory
4 #   then verify the signatures.
5 #
6 TestName="filed-crypto-test"
7 JobName=Crypto
8 . scripts/functions
9 set_debug 0
10
11 cwd=`pwd`
12 scripts/copy-crypto-confs
13 scripts/cleanup
14 echo "${cwd}/build" >/tmp/file-list
15 change_jobname $JobName
16
17 start_test
18
19 cat <<END_OF_DATA >tmp/bconcmds
20 @$out /dev/null
21 messages
22 @$out tmp/log1.out
23 setdebug level=1 storage=File sd
24 label storage=File volume=TestVolume001
25 run job=NightlySave yes
26 wait
27 messages
28 @# 
29 @# now do a restore
30 @#
31 @$out tmp/log2.out
32 restore where=${cwd}/tmp/bacula-restores storage=File
33 5
34 mark *
35
36 yes
37 wait
38 messages
39 @$out
40 quit
41 END_OF_DATA
42
43 run_bacula
44 sleep 2
45 check_for_zombie_jobs storage=File 
46 stop_bacula
47
48 check_two_logs
49 check_restore_diff
50 end_test