From: Kern Sibbald Date: Sun, 18 Dec 2011 16:50:44 +0000 (+0100) Subject: Implement slow regression for manual testing things like cancel/stop X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=7781b3a245656e657c12967ef05d0a5b843dde10;p=bacula%2Fbacula Implement slow regression for manual testing things like cancel/stop --- diff --git a/regress/tests/slow-test b/regress/tests/slow-test new file mode 100755 index 0000000000..d33ed91f68 --- /dev/null +++ b/regress/tests/slow-test @@ -0,0 +1,46 @@ +#!/bin/sh +# +# Create a very slow job so that I can stop jobs cancel +# jobs and restart jobs for testing. +# +TestName="slow-test" +JobName=Incremental +. scripts/functions + +${rscripts}/cleanup +${rscripts}/copy-test-confs +echo "${cwd}/build" >${tmp}/file-list + +change_jobname CompressedTest $JobName +start_test + +cat <${tmp}/bconcmds +@$out /dev/null +messages +@$out ${tmp}/log1.out +@#setdebug level=100 storage=File +@#setdebug level=200 client +@#setdebug level=100 director +label storage=File volume=TestVolume001 +label storage=File volume=TestVolume002 +setbandwidth client=$CLIENT limit=100 +run job=$JobName yes +status client +wait +run job=$JobName yes +messages +quit +END_OF_DATA + +run_bacula + +check_for_zombie_jobs storage=File +#stop_bacula + +check_two_logs +# +# Delete .c files because we will only restored the txt files +# +#rm -f ${tmpsrc}/*.c +#check_restore_tmp_build_diff +#end_test