run.sh revision 0:37a05a11f281
1178479Sjb# 2178479Sjb# Copyright 2003 Sun Microsystems, Inc. All Rights Reserved. 3178479Sjb# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4178479Sjb# 5210767Srpaulo# This code is free software; you can redistribute it and/or modify it 6210767Srpaulo# under the terms of the GNU General Public License version 2 only, as 7178479Sjb# published by the Free Software Foundation. 8178479Sjb# 9178479Sjb# This code is distributed in the hope that it will be useful, but WITHOUT 10178479Sjb# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11178479Sjb# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12178479Sjb# version 2 for more details (a copy is included in the LICENSE file that 13178479Sjb# accompanied this code). 14178479Sjb# 15178479Sjb# You should have received a copy of the GNU General Public License version 16178479Sjb# 2 along with this work; if not, write to the Free Software Foundation, 17178479Sjb# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18178479Sjb# 19178479Sjb# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, 20178479Sjb# CA 95054 USA or visit www.sun.com if you need additional information or 21178479Sjb# have any questions. 22210767Srpaulo# 23178479Sjb 24178479Sjb# @test 25178479Sjb# @bug 4638155 26178479Sjb# @summary This test verifies that when rmic is run with no explicit 27178479Sjb# command line option to specify which JRMP stub version the generated 28178479Sjb# classes should use, its behavior is identical to that of the "-v1.2" 29178479Sjb# option. 30178479Sjb# @author Peter Jones 31178479Sjb# 32178479Sjb# @build G1 G1Impl 33178479Sjb# @run shell run.sh 34178479Sjb 35178479Sjbif [ "${TESTJAVA}" = "" ] 36178479Sjbthen 37211554Srpaulo echo "TESTJAVA not set. Test cannot execute. Failed." 38211554Srpaulo exit 1 39178479Sjbfi 40178479Sjb 41178479Sjbset -ex 42178479Sjb 43178479Sjbdefdir=./default_output 44178479Sjbrefdir=./reference_output 45178479Sjb 46178479Sjbrm -rf $defdir $refdir 47178479Sjbmkdir $defdir $refdir 48178479Sjb 49178479Sjb${TESTJAVA}/bin/rmic -classpath ${TESTCLASSES:-.} -keep -nowrite -d $defdir G1Impl 50178479Sjb${TESTJAVA}/bin/rmic -classpath ${TESTCLASSES:-.} -keep -nowrite -d $refdir -v1.2 G1Impl 51178479Sjb 52178479Sjbdiff -r $defdir $refdir 53178479Sjb 54178479Sjbecho "TEST PASSED: default output identical to -v1.2 output" 55178479Sjb