You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by gr...@apache.org on 2010/09/29 12:53:38 UTC

svn commit: r1002577 - in /qpid/branches/0.5.x-dev/qpid/java/perftests/etc/scripts: extractAll.sh extractWiki.sh

Author: grkvlt
Date: Wed Sep 29 10:53:38 2010
New Revision: 1002577

URL: http://svn.apache.org/viewvc?rev=1002577&view=rev
Log:
Performance test extract scripts

Added:
    qpid/branches/0.5.x-dev/qpid/java/perftests/etc/scripts/extractAll.sh   (with props)
    qpid/branches/0.5.x-dev/qpid/java/perftests/etc/scripts/extractWiki.sh   (with props)

Added: qpid/branches/0.5.x-dev/qpid/java/perftests/etc/scripts/extractAll.sh
URL: http://svn.apache.org/viewvc/qpid/branches/0.5.x-dev/qpid/java/perftests/etc/scripts/extractAll.sh?rev=1002577&view=auto
==============================================================================
--- qpid/branches/0.5.x-dev/qpid/java/perftests/etc/scripts/extractAll.sh (added)
+++ qpid/branches/0.5.x-dev/qpid/java/perftests/etc/scripts/extractAll.sh Wed Sep 29 10:53:38 2010
@@ -0,0 +1,39 @@
+#!/bin/bash
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+# Extract all results from the current set of results directories as plain text.
+# Runs from any directory with no arguments, output to standard out.
+
+pushd .
+cd $(dirname "$0")
+
+echo
+for r in results-*
+do
+	t=$(echo "${r}" | cut -d\- -f2)
+	T=$(echo "${t}" | tr '[a-z]' '[A-Z]')
+	echo "${T}"
+	echo "${T}" | tr '[A-Z]' '\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-'
+	echo
+	./extractResults.sh "${r}"
+	echo
+done
+
+popd

Propchange: qpid/branches/0.5.x-dev/qpid/java/perftests/etc/scripts/extractAll.sh
------------------------------------------------------------------------------
    svn:executable = *

Added: qpid/branches/0.5.x-dev/qpid/java/perftests/etc/scripts/extractWiki.sh
URL: http://svn.apache.org/viewvc/qpid/branches/0.5.x-dev/qpid/java/perftests/etc/scripts/extractWiki.sh?rev=1002577&view=auto
==============================================================================
--- qpid/branches/0.5.x-dev/qpid/java/perftests/etc/scripts/extractWiki.sh (added)
+++ qpid/branches/0.5.x-dev/qpid/java/perftests/etc/scripts/extractWiki.sh Wed Sep 29 10:53:38 2010
@@ -0,0 +1,42 @@
+#!/bin/bash
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+# Extract all results from the current set of results directories in wiki format.
+# Runs from any directory with no arguments, output to standard out.
+
+pushd .
+cd $(dirname "$0")
+
+echo "h1. Performance Testing Results"
+echo
+for r in results-*
+do
+	t=$(echo "${r}" | cut -d\- -f2)
+	f=$(echo "${t}" | sed -e "s/^\(.\).*$/\1/")
+	l=$(echo "${t}" | sed -e "s/^.\(.*\)$/\1/")
+	T=$(echo "${f}" | tr '[a-z]' '[A-Z]')
+	echo "h2. ${T}${l}"
+	echo
+	echo "||Test ||Total ||Passed ||Failed ||Error ||"
+	./extractResults.sh "${r}" | tr "," "\|" | sed -e "s/^/\|/" | sed -e "s/$/\|/" | sed -e "s/[A-Z][a-z]*:\ *//g"
+	echo
+done
+
+popd

Propchange: qpid/branches/0.5.x-dev/qpid/java/perftests/etc/scripts/extractWiki.sh
------------------------------------------------------------------------------
    svn:executable = *



---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:commits-subscribe@qpid.apache.org