]> git.sur5r.net Git - bacula/bacula/blob - regress/tests/slow-test
Implement slow regression for manual testing things like cancel/stop
[bacula/bacula] / regress / tests / slow-test
1 #!/bin/sh
2 #
3 # Create a very slow job so that I can stop jobs cancel
4 #   jobs and restart jobs for testing.
5 #
6 TestName="slow-test"
7 JobName=Incremental 
8 . scripts/functions
9
10 ${rscripts}/cleanup
11 ${rscripts}/copy-test-confs
12 echo "${cwd}/build" >${tmp}/file-list
13
14 change_jobname CompressedTest $JobName
15 start_test
16
17 cat <<END_OF_DATA >${tmp}/bconcmds
18 @$out /dev/null
19 messages
20 @$out ${tmp}/log1.out
21 @#setdebug level=100 storage=File
22 @#setdebug level=200 client
23 @#setdebug level=100 director
24 label storage=File volume=TestVolume001
25 label storage=File volume=TestVolume002
26 setbandwidth client=$CLIENT limit=100
27 run job=$JobName yes
28 status client
29 wait
30 run job=$JobName yes
31 messages
32 quit
33 END_OF_DATA
34
35 run_bacula
36
37 check_for_zombie_jobs storage=File
38 #stop_bacula
39
40 check_two_logs
41 #
42 # Delete .c files because we will only restored the txt files
43 #
44 #rm -f ${tmpsrc}/*.c
45 #check_restore_tmp_build_diff
46 #end_test