runRmiBench.sh revision 5551
3863N/A#
3863N/A# Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved.
3863N/A# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3863N/A#
3863N/A# This code is free software; you can redistribute it and/or modify it
3863N/A# under the terms of the GNU General Public License version 2 only, as
3863N/A# published by the Free Software Foundation.
3863N/A#
3863N/A# This code is distributed in the hope that it will be useful, but WITHOUT
3863N/A# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3863N/A# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
3863N/A# version 2 for more details (a copy is included in the LICENSE file that
3863N/A# accompanied this code).
3863N/A#
3863N/A# You should have received a copy of the GNU General Public License version
3863N/A# 2 along with this work; if not, write to the Free Software Foundation,
3863N/A# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3863N/A#
3863N/A# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3863N/A# or visit www.oracle.com if you need additional information or have any
3863N/A# questions.
3863N/A#
3863N/A
3863N/A# @test
3863N/A#
3863N/A# @summary The RMI benchmark test. This script is only
3863N/A# used to run the test under JTREG.
3863N/A#
3863N/A# @build bench.BenchInfo bench.HtmlReporter bench.Util bench.Benchmark
3863N/A# bench.Reporter bench.XmlReporter bench.ConfigFormatException
3863N/A# bench.Harness bench.TextReporter bench.rmi.BenchServer
3863N/A# bench.rmi.DoubleArrayCalls bench.rmi.LongCalls bench.rmi.ShortCalls
3863N/A# bench.rmi.BenchServerImpl bench.rmi.DoubleCalls
3863N/A# bench.rmi.Main bench.rmi.SmallObjTreeCalls
3863N/A# bench.rmi.BooleanArrayCalls bench.rmi.ExceptionCalls
3863N/A# bench.rmi.NullCalls bench.rmi.BooleanCalls bench.rmi.ExportObjs
3863N/A# bench.rmi.ObjArrayCalls bench.rmi.ByteArrayCalls
3863N/A# bench.rmi.FloatArrayCalls bench.rmi.ObjTreeCalls
3863N/A# bench.rmi.ByteCalls bench.rmi.FloatCalls bench.rmi.ProxyArrayCalls
3863N/A# bench.rmi.CharArrayCalls bench.rmi.IntArrayCalls
3863N/A# bench.rmi.RemoteObjArrayCalls bench.rmi.CharCalls bench.rmi.IntCalls
3863N/A# bench.rmi.ClassLoading bench.rmi.LongArrayCalls
3863N/A# bench.rmi.ShortArrayCalls bench.rmi.altroot.Node
3863N/A#
3863N/A# @run shell/timeout=1800 runRmiBench.sh
3863N/A#
3863N/A# @author Mike Warres, Nigel Daley
3863N/A
3863N/Aecho "Starting RMI benchmark server "
3863N/A
3863N/A$TESTJAVA/bin/java \
3863N/A -server \
3863N/A -cp $TESTCLASSES \
3863N/A -Djava.security.policy=$TESTSRC/bench/rmi/policy.all \
3863N/A bench.rmi.Main \
3863N/A -server 2007 \
3863N/A -c $TESTSRC/bench/rmi/config &
3863N/A
3863N/Asleep 10
3863N/Aecho "Starting RMI benchmark client "
3863N/A
3863N/A$TESTJAVA/bin/java \
3863N/A -client \
3863N/A -cp $TESTCLASSES \
3863N/A -Djava.security.policy=$TESTSRC/bench/rmi/policy.all \
3949N/A bench.rmi.Main \
3863N/A -client localhost:2007 \
3863N/A -c $TESTSRC/bench/rmi/config
3863N/A
3863N/A