1 #
   2 # Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved.
   3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4 #
   5 # This code is free software; you can redistribute it and/or modify it
   6 # under the terms of the GNU General Public License version 2 only, as
   7 # published by the Free Software Foundation.
   8 #
   9 # This code is distributed in the hope that it will be useful, but WITHOUT
  10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12 # version 2 for more details (a copy is included in the LICENSE file that
  13 # accompanied this code).
  14 #
  15 # You should have received a copy of the GNU General Public License version
  16 # 2 along with this work; if not, write to the Free Software Foundation,
  17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18 #
  19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20 # or visit www.oracle.com if you need additional information or have any
  21 # questions.
  22 #
  23 
  24 # @test
  25 # @bug 4911536
  26 # @summary This test verifies that the new implementation of rmic
  27 # generates equivalent classes as the old implementation, for a set
  28 # of sample input classes.
  29 # @library ../../../../../java/rmi/testlibrary
  30 # @build TestLibrary
  31 # @author Peter Jones
  32 #
  33 # @build AgentServerImpl
  34 # @build AppleImpl
  35 # @build AppleUserImpl
  36 # @build ComputeServerImpl
  37 # @build CountServerImpl
  38 # @build DayTimeServerImpl
  39 # @build G1Impl
  40 # @build MyObjectImpl
  41 # @build NotActivatableServerImpl
  42 # @build OrangeEchoImpl
  43 # @build OrangeImpl
  44 # @build ServerImpl
  45 # @run shell run.sh
  46 
  47 if [ "${TESTJAVA}" = "" ]
  48 then
  49     echo "TESTJAVA not set.  Test cannot execute.  Failed."
  50     exit 1
  51 fi
  52 
  53 set -ex
  54 
  55 #
  56 # miscellaneous remote classes collected from other tests
  57 #
  58 
  59 sh ${TESTSRC:-.}/batch.sh ${TESTCLASSES:-.} \
  60         AgentServerImpl \
  61         AppleImpl \
  62         AppleUserImpl \
  63         ComputeServerImpl \
  64         CountServerImpl \
  65         DayTimeServerImpl \
  66         G1Impl \
  67         MyObjectImpl \
  68         NotActivatableServerImpl \
  69         OrangeEchoImpl \
  70         OrangeImpl \
  71         ServerImpl
  72 
  73 #
  74 # remote classes in the J2SE implementation
  75 #
  76 
  77 sh ${TESTSRC:-.}/batch.sh ${TESTCLASSES:-.} \
  78         sun.rmi.registry.RegistryImpl \
  79         sun.rmi.server.Activation\$ActivationMonitorImpl \
  80         sun.rmi.server.Activation\$ActivationSystemImpl \
  81         sun.rmi.server.Activation\$ActivatorImpl \
  82         java.rmi.activation.ActivationGroup