diff --git a/rally-scenarios/extra/instance_dd_test.sh b/rally-scenarios/extra/instance_dd_test.sh new file mode 100644 index 0000000000..08872b6521 --- /dev/null +++ b/rally-scenarios/extra/instance_dd_test.sh @@ -0,0 +1,12 @@ +#!/bin/sh +time_seconds(){ (time -p $1 ) 2>&1 |awk '/real/{print $2}'; } +file=/tmp/test.img +c=1000 #1GB +write_seq_1gb=$(time_seconds "dd if=/dev/zero of=$file bs=1M count=$c") +read_seq_1gb=$(time_seconds "dd if=$file of=/dev/null bs=1M") +[ -f $file ] && rm $file + +echo "{ + \"write_seq_1gb\": $write_seq_1gb, + \"read_seq_1gb\": $read_seq_1gb + }" diff --git a/tests_ci/rally-gate.sh b/tests_ci/rally-gate.sh index ff8d8a2d02..c20367a945 100755 --- a/tests_ci/rally-gate.sh +++ b/tests_ci/rally-gate.sh @@ -17,13 +17,25 @@ PROJECT=`echo $ZUUL_PROJECT | cut -d \/ -f 2` SCENARIO=$BASE/new/$PROJECT/rally-scenarios/${RALLY_SCENARIO}.yaml PLUGINS_DIR=$BASE/new/$PROJECT/rally-scenarios/plugins +EXTRA_DIR=$BASE/new/$PROJECT/rally-scenarios/extra if [ -d $PLUGINS_DIR ]; then mkdir -p ~/.rally/plugins/scenarios - cp $PLUGINS_DIR/*.py ~/.rally/plugins/scenarios/ + cp -r $PLUGINS_DIR/*.py ~/.rally/plugins/scenarios/ +fi + +if [ -d $EXTRA_DIR ]; then + mkdir -p ~/.rally/extra + cp -r $EXTRA_DIR/* ~/.rally/extra/ fi rally use deployment --name devstack +rally deployment check +rally show flavors +rally show images +rally show networks +rally show secgroups +rally show keypairs rally -v task start --task $SCENARIO mkdir rally-plot rally task plot2html --out rally-plot/results.html