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