diff options
author | Amar Tumballi <amarts@redhat.com> | 2012-02-18 10:36:44 -0800 |
---|---|---|
committer | Gerrit Code Review <root@dev.gluster.com> | 2012-02-18 10:36:44 -0800 |
commit | 6ed4ac470d7aaddd05ce179bc304ef688f5553aa (patch) | |
tree | 095187e0649d88c226563f41f19a6fba0b4a156e /perf-framework/batchrun | |
parent | 4de9a1a4df6667a59dd36148167d7ea188c69831 (diff) | |
parent | db468693ef5faa294d9bc3cd3c5d70c0d99d488b (diff) |
Merge "Adding the performance framework to the qa repo"
Diffstat (limited to 'perf-framework/batchrun')
-rwxr-xr-x | perf-framework/batchrun | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/perf-framework/batchrun b/perf-framework/batchrun new file mode 100755 index 0000000..d45455e --- /dev/null +++ b/perf-framework/batchrun @@ -0,0 +1,50 @@ +#!/bin/bash + +CONFIG_FILE=gf_perf_config +source $CONFIG_FILE +RUNLIST="glusterfs-3git.tar.gz" + +function do_run() +{ + FIRST=`cat .runfile` + ./start_perf_measure +# sed -i 's/^\.\/create_gluster_vol/#&/' start_perf_measure +# sleep 10 +# if [ $MINOR -gt 1 ]; then +# LAST=$(($FIRST+3)) +# ./quota_gsync_run $run +# sed -i 's/^#\.\/create_gluster_vol/\.\/create_gluster_vol/' start_perf_measure +# fi +} + +function extract_release() +{ + MAJOR=`echo $runlabel | cut -f1 -d'.' | grep -o "^[0-9]"` + MINOR=`echo $runlabel | cut -f2 -d'.' | grep -o "^[0-9]"` +} + +for run in $RUNLIST +do + cp tarballs/$run . + ./setrun $run + ./deploy_gluster + ./check_install.new + if [ $? -ne 0 ] + then + echo "Installation of run $run failed. Continuing with next run" + continue + fi + echo "Sleeping for 10 seconds.." + runlabel=`echo $run|sed -e 's/^glusterfs-//' -e 's/\.tar\.gz//'` + echo "run`cat .runfile` - $MOUNT_TYPE - $runlabel - $GF_CONFIG - (quota off, gsync off)" >> $RUNLOG + sleep 10 + extract_release + do_run + rm $run + sed -i 's/ENABLE_ACL=no/ENABLE_ACL=yes/' gf_perf_config + if [ $MINOR -gt 1 ]; then + ./send_mail `seq $FIRST $LAST` + else + ./send_mail $FIRST + fi +done |