diff options
| author | Rajith Muditha Attapattu <rajith@apache.org> | 2008-06-30 16:35:41 +0000 |
|---|---|---|
| committer | Rajith Muditha Attapattu <rajith@apache.org> | 2008-06-30 16:35:41 +0000 |
| commit | 014bfd8e935b09f42440fd5427cdf9db25dfe865 (patch) | |
| tree | a3660e28575f828805e14194e47e90d50fdc8f60 /qpid/java/testkit/bin/setenv.sh | |
| parent | ab51df174798f0a3f959a1a7bf3d3e484c9cfa01 (diff) | |
| download | qpid-python-014bfd8e935b09f42440fd5427cdf9db25dfe865.tar.gz | |
This commit is related to QPID-1161.
Please refer to the JIRA for complete details.
In Summary this contains a simple test kit comprising of perf and soak tests.
The focus is on producing a packaged set of tests that can be easily deployed on target environment.
For Quick perf report for a particular release, please run perf_report.sh which will show results for 8 common use cases in a tabular format.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@672810 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java/testkit/bin/setenv.sh')
| -rw-r--r-- | qpid/java/testkit/bin/setenv.sh | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/qpid/java/testkit/bin/setenv.sh b/qpid/java/testkit/bin/setenv.sh new file mode 100644 index 0000000000..3dba383029 --- /dev/null +++ b/qpid/java/testkit/bin/setenv.sh @@ -0,0 +1,52 @@ +#!/bin/sh -xv +# +# 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. +# + +# Helper script to set classpath for running Qpid example classes +# NB: You must add the Qpid client and common jars to your CLASSPATH +# before running this script + +# check for QPID_TEST_HOME +if [ "$QPID_TEST_HOME" = "" ] ; then + echo "ERROR: Please set QPID_TEST_HOME ...." + exit 1 +fi + +# check for JAVA_HOME +if [ "$JAVA_HOME" = "" ] ; then + echo "ERROR: Please set JAVA_HOME ...." + exit 1 +fi + +# VENDOR_LIB path needs to be set +# for Qpid set this to {qpid_checkout}/java/build/lib +VENDOR_LIB="" +if [ "$VENDOR_LIB" = "" ] ; then + echo "ERROR: Please set VENDOR_LIB path in the script ...." + exit 1 +fi + + +[ -d $QPID_TEST_HOME/classes ] || mkdir $QPID_TEST_HOME/classes + +CLASSPATH=`find $VENDOR_LIB -name *.jar* | tr '\n' ":"` +javac -cp $CLASSPATH -d $QPID_TEST_HOME/classes -sourcepath $QPID_TEST_HOME/src `find $QPID_TEST_HOME/src -name '*.java'` + +export CLASSPATH=$QPID_TEST_HOME/classes:$CLASSPATH + |
