From: Eric Bollengier Date: Tue, 9 Feb 2010 08:28:33 +0000 (+0100) Subject: regress: Add more variables to speed-test X-Git-Tag: Release-7.0.0~2254 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f3c9dda235ddf58457c925255e608caa2a22b25b;p=bacula%2Fbacula regress: Add more variables to speed-test --- diff --git a/regress/tests/speed-test b/regress/tests/speed-test index cbd2230d32..1b0ad4406a 100755 --- a/regress/tests/speed-test +++ b/regress/tests/speed-test @@ -7,6 +7,9 @@ # ACCURATE=yes # BASEJOB=yes # NB_CONCURENT=4 +# NB_FULL=25 +# NB_INCR=25 +# NB_FILES=750000 TestName="speed-test" JobName=speed @@ -30,13 +33,16 @@ if [ a$BASEJOB != a ]; then basejob="level=base" fi -export NB_CONCURENT=${NB_CONCURENT:-1} +NB_CONCURENT=${NB_CONCURENT:-1} +NB_FULL=${NB_FULL:-20} +NB_INCR=${NB_INCR:-25} +NB_FILES=${NB_FILES:-750000} start_test # Create X million of files -echo "Creating 1.5M files" -perl -Mscripts::functions -e "create_many_files('$cwd/files');" +echo "Creating $NB_FILES files" +perl -Mscripts::functions -e "create_many_files('$cwd/files', $NB_FILES);" cat <${tmp}/bconcmds @$out /dev/null @@ -73,7 +79,7 @@ quit EOF # insert X million files into File table -for i in $(seq 0 20) +for i in $(seq 0 $NB_FULL) do run_bconsole done @@ -82,7 +88,7 @@ done sed 's/Full/Incremental/' ${tmp}/bconcmds > $tmp/1 mv $tmp/1 ${tmp}/bconcmds -for i in $(seq 0 25) +for i in $(seq 0 $NB_INCR) do perl -Mscripts::functions -e "update_some_files('$cwd/files/'.chr($i+65));" run_bconsole @@ -116,5 +122,6 @@ find ${tmp}/bacula-restores | wc -l | tee $tmp/bacula-restore-list rm -rf ${tmp}/bacula-restores cp working/log files/log${WHICHDB}-$(date +%F_%H-%M).log +cp $tmp/log2.out files/log2${WHICHDB}-$(date +%F_%H-%M).log end_test