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