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/setbatch | |
| parent | 4de9a1a4df6667a59dd36148167d7ea188c69831 (diff) | |
| parent | db468693ef5faa294d9bc3cd3c5d70c0d99d488b (diff) | |
Merge "Adding the performance framework to the qa repo"
Diffstat (limited to 'perf-framework/setbatch')
| -rwxr-xr-x | perf-framework/setbatch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/perf-framework/setbatch b/perf-framework/setbatch new file mode 100755 index 0000000..fb18585 --- /dev/null +++ b/perf-framework/setbatch @@ -0,0 +1,25 @@ +#!/bin/bash -u + +TARBALL_DIR=./tarballs +function usage() +{ + echo "Usage : $0 <gluster_release_tarball_list>" + exit 1 +} + +if [ $# -lt 1 ] +then + usage +fi + +list=`echo $@` +for i in $list +do + if [ ! -f $TARBALL_DIR/$i ] + then + echo "$i not found in directory $TARBALL_DIR. Provide correct list." + exit + fi +done + +sed -i "s/^RUNLIST=.*$/RUNLIST=\"$list\"/" batchrun |
