]> git.sur5r.net Git - bacula/bacula/blob - regress/tests/multi-client-test
Fix xattr/acl regression.
[bacula/bacula] / regress / tests / multi-client-test
1 #!/bin/sh
2 #
3 # Run four jobs at the same time, with two Volumes.
4 #   Set max Vol bytes of first volume
5 #   to less than total backup to force Bacula to use the second
6 #   Volume.
7 #
8 TestName="multi-client-test"
9 JobName=Multi-client
10 . scripts/functions
11
12 scripts/cleanup
13 scripts/copy-test-confs
14 /bin/cp -f scripts/multi-client-bacula-dir.conf bin/bacula-dir.conf
15
16 change_jobname NightlySave $JobName
17 start_test
18
19 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
20 @$out /dev/null
21 messages
22 @$out   ${cwd}/tmp/log1.out
23 @# Make sure we can contact all clients
24 @#setdebug level=100 dir
25 status client=${HOST}-fd
26 status client=${hostname1}-fd
27 status client=${hostname2}-fd
28 status client=${hostname3}-fd
29 setdebug level=1 dir
30 label storage=File1
31 TestVolume001
32 label storage=File1
33 TestVolume002
34 update Volume=TestVolume001 MaxVolBytes=900000000
35 status storage=File1
36 @#llist volume=TestVolume001
37 @#llist volume=TestVolume002
38 run job=${hostname1} level=Full Storage=File1 yes
39 run job=${hostname2} level=Full Storage=File1 yes
40 @# run job=${hostname3} level=Full Storage=File1 yes
41 status storage=File1
42 run job=$JobName level=Full Storage=File1 yes
43 @sleep 2
44 status dir
45 status storage=File1
46 @sleep 5
47 messages
48 wait
49 status storage=File1
50 messages
51 @# 
52 @# now do a restore
53 @#
54 @$out   ${cwd}/tmp/log2.out
55 restore where=${cwd}/tmp/bacula-restores client=${hostname}-fd select storage=File1
56 unmark *
57 mark *
58 done
59 yes
60 wait
61 messages
62 status dir
63 status storage=File1
64 quit
65 END_OF_DATA
66
67 run_bacula
68 stop_bacula
69
70 check_two_logs
71 #if test "$debug" -eq 1 ; then
72 #   diff -r ${hostname_files} ${cwd}/tmp/bacula-restores/${hostname_files}                
73 #else
74 #   diff -r ${hostname_files} ${cwd}/tmp/bacula-restores/${hostname_files} 2>&1 >/dev/null
75 #fi
76 #dstat=$?
77 dstat=0
78 end_test