From 049f7daf4fd05253564528e016ec67d188ffe1aa Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Sun, 18 Dec 2011 17:50:44 +0100 Subject: [PATCH] Implement slow regression for manual testing things like cancel/stop --- regress/tests/slow-test | 46 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100755 regress/tests/slow-test 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 -- 2.39.5