From 6fb0f1c27afb73f2bc2b2a1ee77b015f2d07c069 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Thu, 9 Aug 2007 12:12:20 +0000 Subject: [PATCH] ebl Add new tests git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@5321 91ce42f0-d328-0410-95d8-f526ca767f89 --- regress/scripts/bacula-dir.conf.errors.in | 55 ++++++++++++++++------- regress/tests/errors-test | 42 ++++++++++------- 2 files changed, 64 insertions(+), 33 deletions(-) diff --git a/regress/scripts/bacula-dir.conf.errors.in b/regress/scripts/bacula-dir.conf.errors.in index 5c7179539b..b83c91cf3c 100644 --- a/regress/scripts/bacula-dir.conf.errors.in +++ b/regress/scripts/bacula-dir.conf.errors.in @@ -22,14 +22,15 @@ Director { # define myself Maximum Concurrent Jobs = 4 Password = "pNvX1WiXnwv2C/F7E52LGvw6rKjbbPvu2kyuPa9pVaL3" # Console password Messages = Standard - fdconnecttimeout = 10 + fdconnecttimeout = 20 + sdconnecttimeout = 20 } JobDefs { Name = "DefaultJob" Type = Backup Level = Incremental - Client = @hostname@-fd + client=@hostname@-fd Storage = File Messages = Standard Pool = Default @@ -38,9 +39,9 @@ JobDefs { } Job { - Name = "LOCAL_INC_ERROR" + Name = "LOCAL_INC_ERR" JobDefs = DefaultJob - FileSet = FS_LOCAL_INC_ERROR + FileSet = FS_LOCAL_INC_ERR RunBeforeJob = "/bin/echo RunBeforeJob" ClientRunBeforeJob = "/bin/echo ClientRunBeforeJob" Run After Job = "/bin/echo RunAfterJob" @@ -55,16 +56,16 @@ FileSet { } FileSet { - Name = FS_REMOTE_INC_ERROR + Name = FS_REMOTE_INC_ERR Include { File="\/tmp/file-list start_test @@ -21,35 +20,43 @@ start_test cat <tmp/bconcmds @output /dev/null messages -@output tmp/LOCAL_INC_ERROR.log -label volume=TestVolume001 -run job=LOCAL_INC_ERROR yes +@output tmp/LOCAL_INC_ERR.log +label storage=File volume=TestVolume001 +add storage=File2 +1 +File2 +1 +run job=LOCAL_INC_ERR yes wait messages -@output tmp/REMOTE_INC_ERROR.log -run job=REMOTE_INC_ERROR yes +@output tmp/REMOTE_INC_ERR.log +run job=REMOTE_INC_ERR yes wait messages -@output tmp/LOCAL_EXCL_ERROR.log -run job=LOCAL_EXCL_ERROR yes +@output tmp/LOCAL_EXCL_ERR.log +run job=LOCAL_EXCL_ERR yes wait messages -@$out tmp/REMOTE_EXCL_ERROR.log -run job=REMOTE_EXCL_ERROR yes +@$out tmp/REMOTE_EXCL_ERR.log +run job=REMOTE_EXCL_ERR yes wait messages -@$out tmp/REMOTE_RUNSCRIPT_ERROR.log -run job=REMOTE_RUNSCRIPT_ERROR yes +@$out tmp/REMOTE_RUNSCRIPT_ERR.log +run job=REMOTE_RUNSCRIPT_ERR yes wait messages -@$out tmp/LOCAL_RUNSCRIPT_ERROR.log -run job=LOCAL_RUNSCRIPT_ERROR yes +@$out tmp/LOCAL_RUNSCRIPT_ERR.log +run job=LOCAL_RUNSCRIPT_ERR yes wait messages @$out tmp/CLIENT_CONNECT_TIMEOUT.log run job=CLIENT_CONNECT_TIMEOUT yes wait messages +@$out tmp/SD_CONNECT_TIMEOUT.log +run job=SD_CONNECT_TIMEOUT yes +wait +messages status dir status storage=File quit @@ -57,8 +64,9 @@ END_OF_DATA run_bacula touch tmp/log1.out -check_for_zombie_jobs storage=File -#stop_bacula +client=$(grep client= bin/bacula-dir.conf) +check_for_zombie_jobs storage=File $client +stop_bacula dstat=0 bstat=0 @@ -68,4 +76,4 @@ export bstat export rstat -#end_test +end_test -- 2.39.5