Author: ritchiem
Date: Wed Apr 15 11:02:31 2009
New Revision: 765134
URL: http://svn.apache.org/viewvc?rev=765134&view=rev
Log:
QPID-1810 : Added perftest processing scripts
Added:
qpid/trunk/qpid/java/perftests/etc/scripts/extractResults.sh (with props)
qpid/trunk/qpid/java/perftests/etc/scripts/extractThroughputResults.sh
(with props)
Added: qpid/trunk/qpid/java/perftests/etc/scripts/extractResults.sh
URL:
http://svn.apache.org/viewvc/qpid/trunk/qpid/java/perftests/etc/scripts/extractResults.sh?rev=765134&view=auto
==============================================================================
--- qpid/trunk/qpid/java/perftests/etc/scripts/extractResults.sh (added)
+++ qpid/trunk/qpid/java/perftests/etc/scripts/extractResults.sh Wed Apr 15
11:02:31 2009
@@ -0,0 +1,13 @@
+#!/bin/bash +x
+#
+# Process a given directory (defaults to '.') and provide a list of the tests
run so
+# identification of any failures can be seen.
+#
+
+if [ $# == 0 ] ; then
+ dir=.
+else
+ dir=$1
+fi
+
+grep 'Total Tests:' $dir/*Qpid* | sed -e
's/^.*\/\([A-Z\-]*-Qpid-[0-9]*\).*Total Tests:, \([0-9.]*\).*Total Passed:,
\([0-9.]*\).*Total Failed:, \([0-9.]*\).*Total Error:, \([0-9.]*\).*$/\1,
Total:\t\2,\tPassed:\t\3,\tFailed:\t\4,\tError:\t\5/'
Propchange: qpid/trunk/qpid/java/perftests/etc/scripts/extractResults.sh
------------------------------------------------------------------------------
svn:executable = *
Added: qpid/trunk/qpid/java/perftests/etc/scripts/extractThroughputResults.sh
URL:
http://svn.apache.org/viewvc/qpid/trunk/qpid/java/perftests/etc/scripts/extractThroughputResults.sh?rev=765134&view=auto
==============================================================================
--- qpid/trunk/qpid/java/perftests/etc/scripts/extractThroughputResults.sh
(added)
+++ qpid/trunk/qpid/java/perftests/etc/scripts/extractThroughputResults.sh Wed
Apr 15 11:02:31 2009
@@ -0,0 +1,30 @@
+#!/bin/bash +x
+#
+# Process a given directory (defaults to '.') and provides the throughput
results as
+# reported by the tests.
+#
+# if a second argument of -n is provided then it will only list the number
output for
+# easy copy/paste
+#
+
+if [ $# == 0 ] ; then
+ dir=.
+else
+ dir=$1
+fi
+
+numeric=0
+if [ "$dir" == "-n" ] ; then
+ numeric=1
+ dir=.
+fi
+
+if [ "$2" == "-n" ] ; then
+ numeric=1
+fi
+
+if [ $numeric == 1 ] ; then
+ grep 'Total Tests:' $dir/*Qpid* | sed -e
's/^.*\/\([A-Z]*-[A-Z][A-Z]-Qpid-01\).*Size Throughput:, \([0-9.]*\).*$/\1,
\2/' | sed -e 's/\.\([0-9][0-9][0-9]\)/\1\./' | sed -e 's/, 0/, /' | awk
'{print $2}'
+else
+ grep 'Total Tests:' $dir/*Qpid* | sed -e
's/^.*\/\([A-Z]*-[A-Z][A-Z]-Qpid-01\).*Size Throughput:, \([0-9.]*\).*$/\1,
\2/' | sed -e 's/\.\([0-9][0-9][0-9]\)/\1\./' | sed -e 's/, 0/, /'
+fi
Propchange:
qpid/trunk/qpid/java/perftests/etc/scripts/extractThroughputResults.sh
------------------------------------------------------------------------------
svn:executable = *
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:[email protected]