0N/A#
2362N/A# Copyright (c) 2003, 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#!/bin/ksh
0N/A#
0N/A# Script to build and launch the juicer test as part of
0N/A# the RMI reliability test. This script is used to run
0N/A# the juicer test for a certain number of hours. This
0N/A# script is NOT used when running the juicer test as part
0N/A# of the jtreg regression suite.
0N/A
0N/AWORK_DIR=$1
0N/ARES_DIR=$2
0N/AJAVA_HOME=$3
0N/ASUITE_DIR=$4
0N/ANHOURS=$5
0N/Ashift 5
0N/AVMOPTS=$*
0N/A
0N/Aecho " ######### run_juicer script ##########"
0N/Aecho " WORK_DIR : $WORK_DIR "
0N/Aecho " RES_DIR : $RES_DIR "
0N/Aecho " JAVA_HOME : $JAVA_HOME "
0N/Aecho " SUITE_DIR : $SUITE_DIR "
0N/Aecho " NHOURS : $NHOURS "
0N/Aecho " VMOPTS : $VMOPTS "
0N/A
0N/A${JAVA_HOME}/bin/javac \
0N/A -d $WORK_DIR \
0N/A ${SUITE_DIR}/juicer/*.java
0N/A
0N/Aecho " Starting ApplicationServer "
0N/A
0N/A${JAVA_HOME}/bin/java \
0N/A $VMOPTS \
0N/A -cp $WORK_DIR \
0N/A -Djava.security.policy=${SUITE_DIR}/juicer/security.policy \
0N/A ApplicationServer \
0N/A > ${RES_DIR}/log.juicer.appserver 2>&1 &
0N/Apid1=$!
0N/A
0N/Aecho " Starting AppleUserImpl"
0N/A
0N/A${JAVA_HOME}/bin/java \
0N/A $VMOPTS \
0N/A -cp $WORK_DIR \
0N/A -Djava.security.policy=${SUITE_DIR}/juicer/security.policy \
0N/A AppleUserImpl \
0N/A -maxLevel 9 -hours ${NHOURS} -othervm -exit \
0N/A > ${RES_DIR}/log.juicer.appleuser 2>&1
0N/A
0N/ARETVAL=$?
0N/A
0N/Akill -9 $pid1
0N/A
0N/Aecho " Juicer test finished with exit value ${RETVAL}"
0N/A
0N/Aexit ${RETVAL}
0N/A