You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by cl...@apache.org on 2016/10/07 18:36:43 UTC

activemq-artemis git commit: NO-JIRA Adding script to help debug data on testcases

Repository: activemq-artemis
Updated Branches:
  refs/heads/master 54b7dcc48 -> 1b157addd


NO-JIRA Adding script to help debug data on testcases


Project: http://git-wip-us.apache.org/repos/asf/activemq-artemis/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq-artemis/commit/1b157add
Tree: http://git-wip-us.apache.org/repos/asf/activemq-artemis/tree/1b157add
Diff: http://git-wip-us.apache.org/repos/asf/activemq-artemis/diff/1b157add

Branch: refs/heads/master
Commit: 1b157addd8dc7ad500f20d3f75c6f5c0bf1f9ea8
Parents: 54b7dcc
Author: Clebert Suconic <cl...@apache.org>
Authored: Fri Oct 7 14:36:05 2016 -0400
Committer: Clebert Suconic <cl...@apache.org>
Committed: Fri Oct 7 14:36:05 2016 -0400

----------------------------------------------------------------------
 scripts/print-data.sh | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/1b157add/scripts/print-data.sh
----------------------------------------------------------------------
diff --git a/scripts/print-data.sh b/scripts/print-data.sh
new file mode 100755
index 0000000..cff7225
--- /dev/null
+++ b/scripts/print-data.sh
@@ -0,0 +1,35 @@
+#!/bin/sh
+# 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.
+
+# Setting the script to fail if anything goes wrong
+set -e
+
+
+# Use this to debug your testcases data. For example:
+# find what is the junit folder in use (e.g: junit6337151746263250365)
+#
+# cd /checkout-folder/tests/integration-tests/target/tmp/junit6337151746263250365
+#
+# /checkout-folder/scripts/print-data.sh bindings0-L/ journal0-L/ page0-L/
+#
+# this will generate the usual print-data output
+
+
+LOCATION=$(dirname "$0")
+
+$LOCATION/../artemis-distribution/target/apache-artemis*bin/apache-artemis*/bin/artemis data print --bindings $1 --journal $2 --paging $3