From: Eric Bollengier Date: Thu, 17 Sep 2009 21:00:19 +0000 (+0200) Subject: speed-test: Add basejob argument to test basejob speed X-Git-Tag: Release-5.0.0~300^2~1 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=dea1b726bac6b65611cc068bf09881aa1907b4bf;p=bacula%2Fbacula speed-test: Add basejob argument to test basejob speed --- 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