From db468693ef5faa294d9bc3cd3c5d70c0d99d488b Mon Sep 17 00:00:00 2001 From: Rahul C S Date: Fri, 17 Feb 2012 17:23:28 +0530 Subject: Adding the performance framework to the qa repo Change-Id: Ia7dbd82e9bb2e5e65e9345234ce34f8518a091ad Signed-off-by: Rahul C S --- perf-framework/batchrun | 50 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100755 perf-framework/batchrun (limited to 'perf-framework/batchrun') 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 -- cgit