jdk/test/Makefile
author xdono
Thu, 09 Apr 2009 10:37:22 -0700
changeset 2504 0734512b1faf
parent 2400 0d7007d99b0f
child 2930 58a6440b92dc
child 2799 0441b5d34aa0
permissions -rw-r--r--
Added tag jdk7-b54 for changeset 31bec7a68275
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
#
2400
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
     2
# Copyright 1995-2008 Sun Microsystems, Inc.  All Rights Reserved.
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
     4
#
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
     7
# published by the Free Software Foundation.  Sun designates this
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
     8
# particular file as subject to the "Classpath" exception as provided
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
     9
# by Sun in the LICENSE file that accompanied this code.
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
    10
#
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
    11
# This code is distributed in the hope that it will be useful, but WITHOUT
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
    12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
    13
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
    14
# version 2 for more details (a copy is included in the LICENSE file that
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
    15
# accompanied this code).
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
    16
#
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
    17
# You should have received a copy of the GNU General Public License version
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
    18
# 2 along with this work; if not, write to the Free Software Foundation,
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
    19
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
    20
#
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
    21
# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
    22
# CA 95054 USA or visit www.sun.com if you need additional information or
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
    23
# have any questions.
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
    24
#
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
    25
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
    26
#
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
    27
# Makefile to run various jdk tests
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
# Get OS/ARCH specifics
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
OSNAME = $(shell uname -s)
2400
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
    32
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
    33
# Commands to run on paths to make mixed paths for java on windows
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
    34
GETMIXEDPATH=echo
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
    35
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
    36
# Location of developer shared files
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
    37
SLASH_JAVA = /java
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
    38
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
    39
# Platform specific settings
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
ifeq ($(OSNAME), SunOS)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
  PLATFORM = solaris
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
  ARCH = $(shell uname -p)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
  ifeq ($(ARCH), i386)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
    ARCH=i586
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
ifeq ($(OSNAME), Linux)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
  PLATFORM = linux
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
  ARCH = $(shell uname -m)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
  ifeq ($(ARCH), i386)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
    ARCH=i586
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
endif
2400
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
    54
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
    55
# Cannot trust uname output
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
    56
ifneq ($(PROCESSOR_IDENTIFIER), )
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
  PLATFORM = windows
2400
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
    58
  SLASH_JAVA = J:
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
    59
  # A variety of ways to say X64 arch :^(
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
    60
  PROC_ARCH:=$(word 1, $(PROCESSOR_IDENTIFIER))
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
    61
  PROC_ARCH:=$(subst x86,X86,$(PROC_ARCH))
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
    62
  PROC_ARCH:=$(subst x64,X64,$(PROC_ARCH))
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
    63
  PROC_ARCH:=$(subst AMD64,X64,$(PROC_ARCH))
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
    64
  PROC_ARCH:=$(subst amd64,X64,$(PROC_ARCH))
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
    65
  PROC_ARCH:=$(subst EM64T,X64,$(PROC_ARCH))
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
    66
  PROC_ARCH:=$(subst em64t,X64,$(PROC_ARCH))
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
    67
  PROC_ARCH:=$(subst intel64,X64,$(PROC_ARCH))
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
    68
  PROC_ARCH:=$(subst Intel64,X64,$(PROC_ARCH))
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
    69
  PROC_ARCH:=$(subst INTEL64,X64,$(PROC_ARCH))
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
    70
  PROC_ARCH:=$(subst ia64,IA64,$(PROC_ARCH))
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
    71
  ifeq ($(PROC_ARCH),IA64)
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
    72
    ARCH = ia64
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
  else
2400
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
    74
    ifeq ($(PROC_ARCH),X64)
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
    75
      ARCH = x64
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
    else
2400
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
    77
      ARCH = i586
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
    endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
  endif
2400
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
    80
  EXESUFFIX = .exe
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
    81
  # These need to be different depending on MKS or CYGWIN
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
    82
  ifeq ($(findstring cygdrive,$(shell (cd C:/ && pwd))), )
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
    83
    GETMIXEDPATH=dosname -s
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
    84
  else
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
    85
    GETMIXEDPATH=cygpath -m -s
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
    86
  endif
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
2400
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
    89
# Utilities used
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
    90
CD    = cd
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
    91
CP    = cp
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
    92
ECHO  = echo
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
    93
MKDIR = mkdir
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
    94
ZIP   = zip
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
    95
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
# Root of this test area (important to use full paths in some places)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
TEST_ROOT := $(shell pwd)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
2400
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
    99
# Root of all test results
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   100
ifdef ALT_OUTPUTDIR
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   101
  ABS_OUTPUTDIR = $(ALT_OUTPUTDIR)
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   102
else
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   103
  ABS_OUTPUTDIR = $(TEST_ROOT)/../build/$(PLATFORM)-$(ARCH)
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   104
endif
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   105
ABS_BUILD_ROOT = $(ABS_OUTPUTDIR)
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   106
ABS_TEST_OUTPUT_DIR := $(ABS_BUILD_ROOT)/testoutput
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
2400
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   108
# Expect JPRT to set PRODUCT_HOME (the product or jdk in this case to test)
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   109
ifndef PRODUCT_HOME
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   110
  # Try to use j2sdk-image if it exists
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   111
  ABS_JDK_IMAGE = $(ABS_BUILD_ROOT)/j2sdk-image
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   112
  PRODUCT_HOME :=                       \
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   113
    $(shell                             \
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   114
      if [ -d $(ABS_JDK_IMAGE) ] ; then \
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   115
         $(ECHO) "$(ABS_JDK_IMAGE)";    \
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   116
       else                             \
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   117
         $(ECHO) "$(ABS_BUILD_ROOT)" ;  \
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   118
       fi)
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   119
  PRODUCT_HOME := $(PRODUCT_HOME)
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   120
endif
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   121
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   122
# Expect JPRT to set JPRT_PRODUCT_ARGS (e.g. -server etc.)
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   123
#   Should be passed into 'java' only.
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   124
ifdef JPRT_PRODUCT_ARGS
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   125
  JAVA_ARGS = $(JPRT_PRODUCT_ARGS)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
2400
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   128
# Expect JPRT to set JPRT_PRODUCT_VM_ARGS (e.g. -Xcomp etc.)
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   129
#   Should be passed into anything running the vm (java, javac, javadoc, ...).
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   130
ifdef JPRT_PRODUCT_VM_ARGS
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   131
  JAVA_VM_ARGS = $(JPRT_PRODUCT_VM_ARGS)
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   132
endif
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
2400
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   134
# Expect JPRT to set JPRT_ARCHIVE_BUNDLE (path to zip bundle for results)
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   135
ARCHIVE_BUNDLE = $(ABS_TEST_OUTPUT_DIR)/ARCHIVE_BUNDLE.zip
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   136
ifdef JPRT_ARCHIVE_BUNDLE
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   137
  ARCHIVE_BUNDLE = $(JPRT_ARCHIVE_BUNDLE)
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   138
endif
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
2400
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   140
# How to create the test bundle (pass or fail, we want to create this)
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   141
#   Follow command with ";$(BUNDLE_UP_AND_EXIT)", so it always gets executed.
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   142
ZIP_UP_RESULTS = ( $(MKDIR) -p `dirname $(ARCHIVE_BUNDLE)`     \
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   143
	           && $(CD) $(ABS_TEST_OUTPUT_DIR)             \
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   144
	           && $(ZIP) -q -r $(ARCHIVE_BUNDLE) . )
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   145
BUNDLE_UP_AND_EXIT = ( exitCode=$$? && $(ZIP_UP_RESULTS) && exit $${exitCode} )
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   146
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   147
################################################################
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
2400
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   149
# Default make rule (runs jtreg_tests)
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   150
all: jtreg_tests
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   151
	@$(ECHO) "Testing completed successfully"
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
2400
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   153
# Prep for output
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   154
prep: clean
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   155
	@$(MKDIR) -p $(ABS_TEST_OUTPUT_DIR)
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   156
	@$(MKDIR) -p `dirname $(ARCHIVE_BUNDLE)`
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
# Cleanup
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
clean:
2400
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   160
	$(RM) -r $(ABS_TEST_OUTPUT_DIR)
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   161
	$(RM) $(ARCHIVE_BUNDLE)
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   162
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   163
################################################################
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   164
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   165
# jtreg tests
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   166
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   167
# Expect JT_HOME to be set for jtreg tests. (home for jtreg)
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   168
JT_HOME = $(SLASH_JAVA)/re/jtreg/4.0/promoted/latest/binaries/jtreg
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   169
ifdef JPRT_JTREG_HOME
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   170
  JT_HOME = $(JPRT_JTREG_HOME)
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   171
endif
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   172
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   173
# Expect JPRT to set TESTDIRS to the jtreg test dirs
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   174
ifndef TESTDIRS
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   175
  TESTDIRS = demo/jvmti/gctest demo/jvmti/hprof
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   176
endif
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   177
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   178
# Default JTREG to run (win32 script works for everybody)
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   179
JTREG = $(JT_HOME)/win32/bin/jtreg
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   180
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   181
jtreg_tests: prep $(JT_HOME) $(PRODUCT_HOME) $(JTREG)
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   182
	$(RM) $(JTREG).orig
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   183
	cp $(JTREG) $(JTREG).orig
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   184
	$(RM) $(JTREG)
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   185
	sed -e 's@-J\*@-J-*@' $(JTREG).orig > $(JTREG)
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   186
	chmod a+x $(JTREG)
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   187
	( JT_HOME=$(shell $(GETMIXEDPATH) "$(JT_HOME)");                     \
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   188
          export JT_HOME;                                                    \
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   189
          $(shell $(GETMIXEDPATH) "$(JTREG)")                                \
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   190
            -a -v:fail,error                                                 \
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   191
	    -ignore:quiet                                                    \
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   192
            $(EXTRA_JTREG_OPTIONS)                                           \
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   193
            -r:$(shell $(GETMIXEDPATH) "$(ABS_TEST_OUTPUT_DIR)")/JTreport    \
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   194
            -w:$(shell $(GETMIXEDPATH) "$(ABS_TEST_OUTPUT_DIR)")/JTwork      \
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   195
            -jdk:$(shell $(GETMIXEDPATH) "$(PRODUCT_HOME)")                  \
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   196
            $(JAVA_ARGS:%=-javaoptions:%)                                     \
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   197
            $(JAVA_VM_ARGS:%=-vmoption:%)                                    \
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   198
            $(TESTDIRS)                                                      \
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   199
	) ; $(BUNDLE_UP_AND_EXIT)
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   200
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   201
PHONY_LIST += jtreg_tests
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   202
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   203
################################################################
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   204
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   205
# packtest
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   206
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   207
# Expect JPRT to set JPRT_PACKTEST_HOME.
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   208
PACKTEST_HOME = /net/jprt-web.sfbay.sun.com/jprt/allproducts/packtest
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   209
ifdef JPRT_PACKTEST_HOME
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   210
  PACKTEST_HOME = $(JPRT_PACKTEST_HOME)
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   211
endif
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   212
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   213
packtest: prep $(PACKTEST_HOME)/ptest $(PRODUCT_HOME)
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   214
	( $(CD) $(PACKTEST_HOME) &&            \
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   215
	    $(PACKTEST_HOME)/ptest             \
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   216
		 -t "$(PRODUCT_HOME)"          \
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   217
	         $(PACKTEST_STRESS_OPTION)     \
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   218
		 $(EXTRA_PACKTEST_OPTIONS)     \
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   219
		 -W $(ABS_TEST_OUTPUT_DIR)     \
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   220
                 $(JAVA_ARGS:%=-J %)           \
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   221
                 $(JAVA_VM_ARGS:%=-J %)        \
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   222
	 ) ; $(BUNDLE_UP_AND_EXIT)
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   223
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   224
packtest_stress: PACKTEST_STRESS_OPTION=-s
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   225
packtest_stress: packtest
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   226
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   227
PHONY_LIST += packtest packtest_stress
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   228
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   229
################################################################
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   230
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   231
# vmsqe tests
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   232
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   233
# Expect JPRT to set JPRT_VMSQE_HOME.
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   234
VMSQE_HOME = /java/sqe/comp/vm/testbase/sqe/vm/current/build/latest/vm
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   235
ifdef JPRT_VMSQE_HOME
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   236
  VMSQE_HOME = $(JPRT_VMSQE_HOME)
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   237
endif
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   238
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   239
# Expect JPRT to set JPRT_RUNVMSQE_HOME.
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   240
RUNVMSQE_HOME = /net/jprt-web.sfbay.sun.com/jprt/allproducts/runvmsqe
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   241
ifdef JPRT_RUNVMSQE_HOME
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   242
  RUNVMSQE_HOME = $(JPRT_RUNVMSQE_HOME)
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   243
endif
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   244
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   245
# Expect JPRT to set JPRT_TONGA3_HOME.
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   246
TONGA3_HOME = /java/sqe//tools/gtee/harness/tonga
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   247
ifdef JPRT_TONGA3_HOME
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   248
  TONGA3_HOME = $(JPRT_TONGA3_HOME)
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   249
endif
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   250
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   251
RUNVMSQE_BIN = $(RUNVMSQE_HOME)/bin/runvmsqe
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   252
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   253
vmsqe_tests: prep $(VMSQE_HOME)/vm $(TONGA3_HOME) $(RUNVMSQE_BIN) $(PRODUCT_HOME)
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   254
	$(RM) -r $(ABS_TEST_OUTPUT_DIR)/vmsqe
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   255
	( $(CD) $(ABS_TEST_OUTPUT_DIR) &&          \
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   256
	    $(RUNVMSQE_BIN)                        \
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   257
		 -jdk "$(PRODUCT_HOME)"            \
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   258
		 -o "$(ABS_TEST_OUTPUT_DIR)/vmsqe" \
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   259
		 -testbase "$(VMSQE_HOME)/vm"      \
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   260
		 -tonga "$(TONGA3_HOME)"           \
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   261
		 -tongajdk "$(ALT_BOOTDIR)"        \
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   262
                 $(JAVA_ARGS)                      \
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   263
                 $(JAVA_VM_ARGS)                   \
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   264
	         $(RUNVMSQE_TEST_OPTION)           \
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   265
		 $(EXTRA_RUNVMSQE_OPTIONS)         \
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   266
	 ) ; $(BUNDLE_UP_AND_EXIT)
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   267
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   268
vmsqe_jdwp: RUNVMSQE_TEST_OPTION=-jdwp
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   269
vmsqe_jdwp: vmsqe_tests
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   270
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   271
vmsqe_jdi: RUNVMSQE_TEST_OPTION=-jdi
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   272
vmsqe_jdi: vmsqe_tests
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   273
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   274
vmsqe_jdb: RUNVMSQE_TEST_OPTION=-jdb
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   275
vmsqe_jdb: vmsqe_tests
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   276
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   277
vmsqe_quick-jdi: RUNVMSQE_TEST_OPTION=-quick-jdi
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   278
vmsqe_quick-jdi: vmsqe_tests
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   279
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   280
vmsqe_sajdi: RUNVMSQE_TEST_OPTION=-sajdi
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   281
vmsqe_sajdi: vmsqe_tests
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   282
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   283
vmsqe_jvmti: RUNVMSQE_TEST_OPTION=-jvmti
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   284
vmsqe_jvmti: vmsqe_tests
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   285
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   286
vmsqe_hprof: RUNVMSQE_TEST_OPTION=-hprof
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   287
vmsqe_hprof: vmsqe_tests
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   288
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   289
vmsqe_monitoring: RUNVMSQE_TEST_OPTION=-monitoring
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   290
vmsqe_monitoring: vmsqe_tests
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   291
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   292
PHONY_LIST += vmsqe_jdwp vmsqe_jdi vmsqe_jdb vmsqe_quick-jdi vmsqe_sajdi \
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   293
              vmsqe_jvmti vmsqe_hprof vmsqe_monitoring vmsqe_tests
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   294
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   295
################################################################
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   296
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   297
# jck tests
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   298
2400
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   299
JCK_WORK_DIR     = $(ABS_TEST_OUTPUT_DIR)/JCKwork
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   300
JCK_REPORT_DIR   = $(ABS_TEST_OUTPUT_DIR)/JCKreport
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   301
JCK_PROPERTIES   = $(ABS_TEST_OUTPUT_DIR)/jck.properties
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   302
JCK_CONFIG       = $(ABS_TEST_OUTPUT_DIR)/jck.config
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   303
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   304
JCK_JAVA_EXE     = $(PRODUCT_HOME)/bin/java$(EXESUFFIX)
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   305
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   306
JCK_JAVATEST_JAR = $(JCK_HOME)/lib/javatest.jar
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   307
JCK_JAVATEST     = $(ALT_BOOTDIR)/bin/java -jar $(JCK_JAVATEST_JAR)
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   308
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   309
$(JCK_CONFIG): $(TEST_ROOT)/JCK-$(JCK_BUNDLE_NAME)-$(JCK_RELEASE)-base.jti
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   310
	$(RM) $@
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   311
	$(MKDIR) -p $(@D)
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   312
	$(CP) $< $@
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   313
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   314
$(JCK_PROPERTIES): $(PRODUCT_HOME) $(JCK_JAVA_EXE)
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   315
	$(RM) $@
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   316
	$(MKDIR) -p $(@D)
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   317
	$(ECHO) "jck.env.compiler.compRefExecute.cmdAsFile=$(JCK_JAVA_EXE)" >> $@
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   318
	$(ECHO) "jck.env.compiler.compRefExecute.systemRoot=$(SYSTEMROOT)" >> $@
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   319
	$(ECHO) "jck.env.compiler.testCompile.testCompileAPImultiJVM.cmdAsFile=$(JCK_JAVA_EXE)" >> $@
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   320
	$(ECHO) "jck.tests.tests=$(JCK_BUNDLE_TESTDIRS)" >> $@
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   321
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   322
jck_tests: prep $(JCK_HOME) $(JCK_PROPERTIES) $(JCK_CONFIG) $(JCK_JAVATEST_JAR)
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   323
	$(MKDIR) -p $(JCK_WORK_DIR)
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   324
	( $(JCK_JAVATEST)                            \
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   325
		-verbose:commands,non-pass           \
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   326
		-testSuite    $(JCK_HOME)            \
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   327
		-workDir      $(JCK_WORK_DIR)        \
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   328
		-config       $(JCK_CONFIG)          \
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   329
		-set -file    $(JCK_PROPERTIES)      \
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   330
		-runtests                            \
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   331
		-writeReport  $(JCK_REPORT_DIR)      \
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   332
        ) ; $(BUNDLE_UP_AND_EXIT)
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   333
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   334
PHONY_LIST += jck_tests
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   335
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   336
################################################################
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   337
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   338
# jck6 tests
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   339
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   340
JCK6_RELEASE = 6b
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   341
JCK6_DEFAULT_HOME = $(SLASH_JAVA)/re/jck/$(JCK6_RELEASE)/archive/fcs/binaries
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   342
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   343
# Expect JPRT to set JPRT_JCK6COMPILER_HOME.
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   344
JCK6COMPILER_HOME = $(JCK6_DEFAULT_HOME)/JCK-compiler-$(JCK6_RELEASE)
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   345
ifdef JPRT_JCK6COMPILER_HOME
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   346
  JCK6COMPILER_HOME = $(JPRT_JCK6COMPILER_HOME)
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   347
endif
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   348
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   349
# Expect JPRT to set JPRT_JCK6RUNTIME_HOME.
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   350
JCK6RUNTIME_HOME = $(JCK6_DEFAULT_HOME)/JCK-runtime-$(JCK6_RELEASE)
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   351
ifdef JPRT_JCK6RUNTIME_HOME
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   352
  JCK6RUNTIME_HOME = $(JPRT_JCK6RUNTIME_HOME)
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   353
endif
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   354
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   355
# Expect JPRT to set JPRT_JCK6DEVTOOLS_HOME.
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   356
JCK6DEVTOOLS_HOME = $(JCK6_DEFAULT_HOME)/JCK-devtools-$(JCK6_RELEASE)
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   357
ifdef JPRT_JCK6DEVTOOLS_HOME
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   358
  JCK6DEVTOOLS_HOME = $(JPRT_JCK6DEVTOOLS_HOME)
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   359
endif
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   360
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   361
jck6_tests: JCK_HOME=$(JCK6_HOME)
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   362
jck6_tests: JCK_RELEASE=$(JCK6_RELEASE)
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   363
jck6_tests: jck_tests
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   364
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   365
jck6compiler: JCK6_HOME=$(JCK6COMPILER_HOME)
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   366
jck6compiler: JCK_BUNDLE_NAME=compiler
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   367
jck6compiler: jck6_tests
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   368
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   369
jck6compiler_lang: JCK_BUNDLE_TESTDIRS=lang
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   370
jck6compiler_lang: jck6compiler
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   371
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   372
jck6runtime: JCK6_HOME=$(JCK6RUNTIME_HOME)
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   373
jck6runtime: JCK_BUNDLE_NAME=runtime
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   374
jck6runtime: jck6_tests
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   375
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   376
jck6runtime_lang: JCK_BUNDLE_TESTDIRS=lang
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   377
jck6runtime_lang: jck6runtime
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   378
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   379
jck6devtools: JCK6_HOME=$(JCK6DEVTOOLS_HOME)
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   380
jck6devtools: JCK_BUNDLE_NAME=devtools
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   381
jck6devtools: jck6_tests
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   382
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   383
jck6devtools_lang: JCK_BUNDLE_TESTDIRS=lang
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   384
jck6devtools_lang: jck6devtools
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   385
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   386
PHONY_LIST += jck6compiler jck6runtime jck6devtools jck6_tests \
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   387
	      jck6compiler_lang jck6runtime_lang jck6devtools_lang
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   388
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   389
################################################################
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   390
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   391
# jck7 tests
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   392
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   393
JCK7_RELEASE = 7
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   394
JCK7_DEFAULT_HOME = $(SLASH_JAVA)/re/jck/$(JCK7_RELEASE)/archive/fcs/binaries
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   395
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   396
# Expect JPRT to set JPRT_JCK7COMPILER_HOME.
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   397
JCK7COMPILER_HOME = $(JCK7_DEFAULT_HOME)/JCK-compiler-$(JCK7_RELEASE)
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   398
ifdef JPRT_JCK7COMPILER_HOME
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   399
  JCK7COMPILER_HOME = $(JPRT_JCK7COMPILER_HOME)
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   400
endif
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   401
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   402
# Expect JPRT to set JPRT_JCK7RUNTIME_HOME.
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   403
JCK7RUNTIME_HOME = $(JCK7_DEFAULT_HOME)/JCK-runtime-$(JCK7_RELEASE)
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   404
ifdef JPRT_JCK7RUNTIME_HOME
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   405
  JCK7RUNTIME_HOME = $(JPRT_JCK7RUNTIME_HOME)
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   406
endif
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   407
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   408
# Expect JPRT to set JPRT_JCK7DEVTOOLS_HOME.
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   409
JCK7DEVTOOLS_HOME = $(JCK7_DEFAULT_HOME)/JCK-devtools-$(JCK7_RELEASE)
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   410
ifdef JPRT_JCK7DEVTOOLS_HOME
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   411
  JCK7DEVTOOLS_HOME = $(JPRT_JCK7DEVTOOLS_HOME)
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   412
endif
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   413
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   414
jck7_tests: JCK_HOME=$(JCK7_HOME)
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   415
jck7_tests: JCK_RELEASE=$(JCK7_RELEASE)
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   416
jck7_tests: jck_tests
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   417
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   418
jck7compiler: JCK7_HOME=$(JCK7COMPILER_HOME)
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   419
jck7compiler: JCK_BUNDLE_NAME=compiler
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   420
jck7compiler: jck7_tests
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   421
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   422
jck7compiler_lang: JCK_BUNDLE_TESTDIRS=lang
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   423
jck7compiler_lang: jck7compiler
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   424
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   425
jck7runtime: JCK7_HOME=$(JCK7RUNTIME_HOME)
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   426
jck7runtime: JCK_BUNDLE_NAME=runtime
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   427
jck7runtime: jck7_tests
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   428
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   429
jck7runtime_lang: JCK_BUNDLE_TESTDIRS=lang
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   430
jck7runtime_lang: jck7runtime
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   431
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   432
jck7devtools: JCK7_HOME=$(JCK7DEVTOOLS_HOME)
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   433
jck7devtools: JCK_BUNDLE_NAME=devtools
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   434
jck7devtools: jck7_tests
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   435
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   436
jck7devtools_lang: JCK_BUNDLE_TESTDIRS=lang
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   437
jck7devtools_lang: jck7devtools
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   438
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   439
PHONY_LIST += jck7compiler jck7runtime jck7devtools jck7_tests \
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   440
	      jck7compiler_lang jck7runtime_lang jck7devtools_lang
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   441
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   442
################################################################
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   443
90ce3da70b43 Initial load
duke
parents:
diff changeset
   444
# Phony targets (e.g. these are not filenames)
2400
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   445
.PHONY: all clean prep $(PHONY_LIST)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   446
2400
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   447
################################################################
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   448