]> git.sur5r.net Git - bacula/bacula/commitdiff
Implement slow regression for manual testing things like cancel/stop
authorKern Sibbald <kern@sibbald.com>
Sun, 18 Dec 2011 16:50:44 +0000 (17:50 +0100)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:50:20 +0000 (14:50 +0200)
regress/tests/slow-test [new file with mode: 0755]

diff --git a/regress/tests/slow-test b/regress/tests/slow-test
new file mode 100755 (executable)
index 0000000..d33ed91
--- /dev/null
@@ -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 <<END_OF_DATA >${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