From dea1b726bac6b65611cc068bf09881aa1907b4bf Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Thu, 17 Sep 2009 23:00:19 +0200 Subject: [PATCH] speed-test: Add basejob argument to test basejob speed --- regress/tests/speed-test | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/regress/tests/speed-test b/regress/tests/speed-test index b2379ef3e7..bb6b6ccd4c 100755 --- a/regress/tests/speed-test +++ b/regress/tests/speed-test @@ -14,11 +14,17 @@ rm -rf ${tmp}/bacula-restores mkdir -p $cwd/files change_jobname CompressedTest $JobName -if [ "$1" = "accurate" ]; then +if echo $* | grep accurate >/dev/null; then sed 's/Name = "speed"/Name = "speed"; accurate=yes/' $conf/bacula-dir.conf > $tmp/1 mv $tmp/1 $conf/bacula-dir.conf fi +if echo $* | grep basejob >/dev/null; then + sed 's/Name = "speed"/Name = "speed"; accurate=yes;basejob=speed/' $conf/bacula-dir.conf > $tmp/1 + mv $tmp/1 $conf/bacula-dir.conf + basejob="level=base" +fi + start_test # Create X million of files @@ -53,7 +59,7 @@ cat <${tmp}/bconcmds messages @$out ${tmp}/log1.out label storage=File volume=TestVolume001 -run job=$JobName yes +run job=$JobName $basejob yes wait messages quit -- 2.39.5