jdk/test/Makefile
author ohair
Sun, 08 Nov 2009 15:11:10 -0800
changeset 4187 d7111a88f0ec
parent 2945 43a90b14c7ed
child 4329 850b656a411e
permissions -rw-r--r--
6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option Reviewed-by: tbell, jjg, alanb
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
#
4187
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
     2
# Copyright 1995-2009 Sun Microsystems, Inc.  All Rights Reserved.
2400
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
4187
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
    30
# Empty these to get rid of some default rules
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
    31
.SUFFIXES:
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
    32
.SUFFIXES: .java
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
    33
CO=
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
    34
GET=
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
    35
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
    36
# Utilities used
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
    37
AWK       = awk
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
    38
CAT       = cat
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
    39
CD        = cd
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
    40
CHMOD     = chmod
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
    41
CP        = cp
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
    42
CUT       = cut
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
    43
ECHO      = echo
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
    44
EGREP     = egrep
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
    45
EXPAND    = expand
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
    46
EXPR      = expr
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
    47
KILL      = /usr/bin/kill
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
    48
MKDIR     = mkdir
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
    49
NOHUP     = nohup
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
    50
PWD       = pwd
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
    51
SED       = sed
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
    52
SLEEP     = sleep
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
    53
SORT      = sort
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
    54
TEE       = tee
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
    55
UNAME     = uname
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
    56
UNIQ      = uniq
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
    57
WC        = wc
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
    58
XHOST     = xhost
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
    59
ZIP       = zip
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
    60
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
    61
# Get OS name from uname
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
    62
UNAME_S := $(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
    63
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
    64
# Commands to run on paths to make mixed paths for java on windows
4187
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
    65
GETMIXEDPATH=$(ECHO)
2400
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
    66
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
    67
# 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
    68
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
    69
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
    70
# Platform specific settings
4187
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
    71
ifeq ($(UNAME_S), SunOS)
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
    72
  OS_NAME     = solaris
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
    73
  OS_ARCH    := $(shell $(UNAME) -p)
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
    74
  OS_VERSION := $(shell $(UNAME) -r)
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
    75
endif
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
    76
ifeq ($(UNAME_S), Linux)
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
    77
  OS_NAME     = linux
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
    78
  OS_ARCH    := $(shell $(UNAME) -m)
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
    79
  OS_VERSION := $(shell $(UNAME) -r)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
endif
4187
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
    81
ifndef OS_NAME
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
    82
  ifneq ($(PROCESSOR_IDENTIFIER), )
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
    83
    OS_NAME = windows
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
    84
    SLASH_JAVA = J:
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
    85
    # A variety of ways to say X64 arch :^(
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
    86
    OS_ARCH:=$(word 1, $(PROCESSOR_IDENTIFIER))
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
    87
    EXESUFFIX = .exe
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
    88
    # These need to be different depending on MKS or CYGWIN
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
    89
    ifeq ($(findstring cygdrive,$(shell ($(CD) C:/ && $(PWD)))), )
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
    90
      GETMIXEDPATH  = dosname -s
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
    91
      OS_VERSION   := $(shell $(UNAME) -r)
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
    92
    else
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
    93
      GETMIXEDPATH  = cygpath -m -s
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
    94
      OS_VERSION   := $(shell $(UNAME) -s | $(CUT) -d'-' -f2)
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
    95
    endif
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
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
    98
4187
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
    99
# Only want major and minor numbers from os version
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   100
OS_VERSION := $(shell $(ECHO) "$(OS_VERSION)" | $(CUT) -d'.' -f1,2)
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   101
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   102
# Try and use names i586, x64, and ia64 consistently  
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   103
OS_ARCH:=$(subst X64,x64,$(OS_ARCH))
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   104
OS_ARCH:=$(subst AMD64,x64,$(OS_ARCH))
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   105
OS_ARCH:=$(subst amd64,x64,$(OS_ARCH))
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   106
OS_ARCH:=$(subst x86_64,x64,$(OS_ARCH))
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   107
OS_ARCH:=$(subst EM64T,x64,$(OS_ARCH))
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   108
OS_ARCH:=$(subst em64t,x64,$(OS_ARCH))
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   109
OS_ARCH:=$(subst intel64,x64,$(OS_ARCH))
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   110
OS_ARCH:=$(subst Intel64,x64,$(OS_ARCH))
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   111
OS_ARCH:=$(subst INTEL64,x64,$(OS_ARCH))
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   112
OS_ARCH:=$(subst IA64,ia64,$(OS_ARCH))
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   113
OS_ARCH:=$(subst X86,i586,$(OS_ARCH))
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   114
OS_ARCH:=$(subst x86,i586,$(OS_ARCH))
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   115
OS_ARCH:=$(subst i386,i586,$(OS_ARCH))
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   116
OS_ARCH:=$(subst i486,i586,$(OS_ARCH))
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   117
OS_ARCH:=$(subst i686,i586,$(OS_ARCH))
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   118
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   119
# Check for ARCH_DATA_MODEL, adjust OS_ARCH accordingly
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   120
ifndef ARCH_DATA_MODEL
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   121
  ARCH_DATA_MODEL=32
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   122
endif
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   123
ARCH_DATA_MODEL_ERROR= \
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   124
  ARCH_DATA_MODEL=$(ARCH_DATA_MODEL) cannot be used with $(OS_NAME)-$(ARCH)
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   125
ifeq ($(ARCH_DATA_MODEL),64)
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   126
  ifeq ($(OS_NAME)-$(OS_ARCH),solaris-i586)
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   127
    OS_ARCH=x64
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   128
  endif
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   129
  ifeq ($(OS_NAME)-$(OS_ARCH),solaris-sparc)
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   130
    OS_ARCH=sparcv9
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   131
  endif
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   132
  ifeq ($(OS_ARCH),i586)
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   133
    x:=$(warning "WARNING: $(ARCH_DATA_MODEL_ERROR)")
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   134
  endif
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   135
  ifeq ($(OS_ARCH),sparc)
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   136
    x:=$(warning "WARNING: $(ARCH_DATA_MODEL_ERROR)")
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   137
  endif
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   138
else
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   139
  ifeq ($(ARCH_DATA_MODEL),32)
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   140
    ifeq ($(OS_ARCH),x64)
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   141
      x:=$(warning "WARNING: $(ARCH_DATA_MODEL_ERROR)")
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   142
    endif
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   143
    ifeq ($(OS_ARCH),ia64)
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   144
      x:=$(warning "WARNING: $(ARCH_DATA_MODEL_ERROR)")
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   145
    endif
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   146
    ifeq ($(OS_ARCH),sparcv9)
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   147
      x:=$(warning "WARNING: $(ARCH_DATA_MODEL_ERROR)")
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   148
    endif
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
  else
4187
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   150
    x:=$(warning "WARNING: $(ARCH_DATA_MODEL_ERROR)")
2400
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   151
  endif
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
# Root of this test area (important to use full paths in some places)
4187
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   155
TEST_ROOT := $(shell $(PWD))
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
2400
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   157
# 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
   158
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
   159
  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
   160
else
4187
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   161
  ABS_OUTPUTDIR = $(TEST_ROOT)/../build/$(OS_NAME)-$(OS_ARCH)
2400
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   162
endif
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   163
ABS_BUILD_ROOT = $(ABS_OUTPUTDIR)
4187
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   164
ABS_TEST_OUTPUT_DIR := $(ABS_BUILD_ROOT)/testoutput/$(UNIQUE_DIR)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
2400
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   166
# 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
   167
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
   168
  # 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
   169
  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
   170
  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
   171
    $(shell                             \
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   172
      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
   173
         $(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
   174
       else                             \
4187
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   175
         $(ECHO) "$(ABS_BUILD_ROOT)";   \
2400
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   176
       fi)
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   177
  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
   178
endif
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   179
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   180
# 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
   181
#   Should be passed into 'java' only.
4187
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   182
#   Could include: -d64 -server -client OR any java option
2400
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   183
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
   184
  JAVA_ARGS = $(JPRT_PRODUCT_ARGS)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
2400
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   187
# 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
   188
#   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
   189
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
   190
  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
   191
endif
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
4187
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   193
# Check JAVA_ARGS arguments based on ARCH_DATA_MODEL etc.
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   194
ifeq ($(OS_NAME),solaris)
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   195
  D64_ERROR_MESSAGE=Mismatch between ARCH_DATA_MODEL=$(ARCH_DATA_MODEL) and use of -d64 in JAVA_ARGS=$(JAVA_ARGS)
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   196
  ifeq ($(ARCH_DATA_MODEL),32)
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   197
    ifneq ($(findstring -d64,$(JAVA_ARGS)),)
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   198
      x:=$(warning "WARNING: $(D64_ERROR_MESSAGE)")
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   199
    endif
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   200
  endif
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   201
  ifeq ($(ARCH_DATA_MODEL),64)
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   202
    ifeq ($(findstring -d64,$(JAVA_ARGS)),)
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   203
      x:=$(warning "WARNING: $(D64_ERROR_MESSAGE)")
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   204
    endif
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   205
  endif
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   206
endif
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   207
2400
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   208
# 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
   209
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
   210
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
   211
  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
   212
endif
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
4187
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   214
# DISPLAY settings for virtual frame buffer
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   215
START_XVFB = start-Xvfb.sh
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   216
NOHUP_OUTPUT = $(ABS_TEST_OUTPUT_DIR)/start-Xvfb.nohup-output.txt
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   217
DISPLAY_PID_FILE=$(ABS_TEST_OUTPUT_DIR)/xvfb-display-number.txt
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   218
DISPLAY_SLEEP_TIME=10
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   219
DISPLAY_MAX_SLEEPS=10
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   220
ifeq ($(OS_NAME),solaris)
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   221
  VIRTUAL_FRAME_BUFFER = true
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   222
endif
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   223
ifeq ($(OS_NAME),linux)
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   224
  VIRTUAL_FRAME_BUFFER = true
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   225
endif
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   226
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   227
# Does not work yet, display dies as soon as it gets used. :^(
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   228
VIRTUAL_FRAME_BUFFER = false
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   229
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   230
# Are we using a VIRTUAL_FRAME_BUFFER (Xvfb)
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   231
ifeq ($(VIRTUAL_FRAME_BUFFER),true)
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   232
  
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   233
  PREP_DISPLAY = \
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   234
    $(CP) $(START_XVFB) $(ABS_TEST_OUTPUT_DIR); \
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   235
    $(CHMOD) a+x $(ABS_TEST_OUTPUT_DIR)/$(START_XVFB); \
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   236
    ( $(CD) $(ABS_TEST_OUTPUT_DIR) && \
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   237
      $(NOHUP) $(ABS_TEST_OUTPUT_DIR)/$(START_XVFB) $(DISPLAY_PID_FILE) > $(NOHUP_OUTPUT) 2>&1 && \
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   238
      $(SLEEP) $(DISPLAY_SLEEP_TIME) ) & \
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   239
    count=1; \
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   240
    while [ ! -s $(DISPLAY_PID_FILE) ] ; do \
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   241
      $(ECHO) "Sleeping $(DISPLAY_SLEEP_TIME) more seconds, DISPLAY not ready"; \
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   242
      $(SLEEP) $(DISPLAY_SLEEP_TIME); \
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   243
      count=`$(EXPR) $${count} '+' 1`; \
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   244
      if [ $${count} -gt $(DISPLAY_MAX_SLEEPS) ] ; then \
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   245
        $(ECHO) "ERROR: DISPLAY not ready, giving up on DISPLAY"; \
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   246
        exit 9; \
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   247
      fi; \
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   248
    done ; \
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   249
    DISPLAY=":`$(CAT) $(DISPLAY_PID_FILE)`"; \
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   250
    export DISPLAY; \
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   251
    $(CAT) $(NOHUP_OUTPUT); \
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   252
    $(ECHO) "Prepared DISPLAY=$${DISPLAY}"; \
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   253
    $(XHOST) || \
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   254
    ( $(ECHO) "ERROR: No display" ; exit 8)
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   255
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   256
  KILL_DISPLAY = \
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   257
    ( \
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   258
      DISPLAY=":`$(CAT) $(DISPLAY_PID_FILE)`"; \
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   259
      export DISPLAY; \
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   260
      if [ -s "$(DISPLAY_PID_FILE)" ] ; then \
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   261
        $(KILL) `$(CAT) $(DISPLAY_PID_FILE)` > /dev/null 2>&1; \
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   262
        $(KILL) -9 `$(CAT) $(DISPLAY_PID_FILE)` > /dev/null 2>&1; \
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   263
      fi; \
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   264
      $(ECHO) "Killed DISPLAY=$${DISPLAY}"; \
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   265
    )
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   266
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   267
else
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   268
  
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   269
  PREP_DISPLAY = $(ECHO) "VIRTUAL_FRAME_BUFFER=$(VIRTUAL_FRAME_BUFFER)"
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   270
  KILL_DISPLAY = $(ECHO) "VIRTUAL_FRAME_BUFFER=$(VIRTUAL_FRAME_BUFFER)"
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   271
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   272
endif
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   273
2400
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   274
# 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
   275
#   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
   276
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
   277
	           && $(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
   278
	           && $(ZIP) -q -r $(ARCHIVE_BUNDLE) . )
4187
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   279
SUMMARY_TXT = $(shell $(GETMIXEDPATH) "$(ABS_TEST_OUTPUT_DIR)")/JTreport/text/summary.txt
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   280
STATS_TXT_NAME = Stats.txt
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   281
STATS_TXT = $(shell $(GETMIXEDPATH) "$(ABS_TEST_OUTPUT_DIR)")/$(STATS_TXT_NAME)
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   282
RUNLIST   = $(shell $(GETMIXEDPATH) "$(ABS_TEST_OUTPUT_DIR)")/runlist.txt
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   283
PASSLIST  = $(shell $(GETMIXEDPATH) "$(ABS_TEST_OUTPUT_DIR)")/passlist.txt
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   284
FAILLIST  = $(shell $(GETMIXEDPATH) "$(ABS_TEST_OUTPUT_DIR)")/faillist.txt
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   285
BUNDLE_UP_AND_EXIT = \
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   286
( \
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   287
  exitCode=$$? && \
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   288
  _summary="$(SUMMARY_TXT)"; \
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   289
  $(RM) -f $(STATS_TXT) $(RUNLIST) $(PASSLIST) $(FAILLIST); \
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   290
  if [ -r "$${_summary}" ] ; then \
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   291
    $(ECHO) "Summary: $${_summary}" > $(STATS_TXT); \
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   292
    $(EXPAND) $${_summary} | $(EGREP) -v ' Not run\.' > $(RUNLIST); \
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   293
    $(EGREP) ' Passed\.' $(RUNLIST) \
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   294
      | $(EGREP) -v ' Error\.' \
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   295
      | $(EGREP) -v ' Failed\.' > $(PASSLIST); \
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   296
    ( $(EGREP) ' Failed\.' $(RUNLIST); \
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   297
      $(EGREP) ' Error\.' $(RUNLIST); \
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   298
      $(EGREP) -v ' Passed\.' $(RUNLIST) ) \
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   299
      | $(SORT) | $(UNIQ) > $(FAILLIST); \
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   300
    if [ $${exitCode} != 0 -o -s $(FAILLIST) ] ; then \
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   301
      $(EXPAND) $(FAILLIST) \
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   302
        | $(CUT) -d' ' -f1 \
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   303
        | $(SED) -e 's@^@FAILED: @' >> $(STATS_TXT); \
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   304
    fi; \
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   305
    runc="`$(CAT) $(RUNLIST)      | $(WC) -l | $(AWK) '{print $$1;}'`"; \
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   306
    passc="`$(CAT) $(PASSLIST)    | $(WC) -l | $(AWK) '{print $$1;}'`"; \
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   307
    failc="`$(CAT) $(FAILLIST)    | $(WC) -l | $(AWK) '{print $$1;}'`"; \
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   308
    exclc="`$(CAT) $(EXCLUDELIST) | $(WC) -l | $(AWK) '{print $$1;}'`"; \
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   309
    $(ECHO) "TEST STATS: run=$${runc}  pass=$${passc}  fail=$${failc}  excluded=$${exclc}" \
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   310
      >> $(STATS_TXT); \
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   311
  else \
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   312
    $(ECHO) "Missing file: $${_summary}" >> $(STATS_TXT); \
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   313
  fi; \
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   314
  $(CAT) $(STATS_TXT); \
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   315
  $(ZIP_UP_RESULTS) && $(KILL_DISPLAY) && \
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   316
  exit $${exitCode} \
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   317
)
2400
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   318
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   319
################################################################
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   320
2400
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   321
# 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
   322
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
   323
	@$(ECHO) "Testing completed successfully"
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   324
2400
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   325
# 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
   326
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
   327
	@$(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
   328
	@$(MKDIR) -p `dirname $(ARCHIVE_BUNDLE)`
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   329
90ce3da70b43 Initial load
duke
parents:
diff changeset
   330
# Cleanup
90ce3da70b43 Initial load
duke
parents:
diff changeset
   331
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
   332
	$(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
   333
	$(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
   334
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
# 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
   338
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   339
# 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
   340
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
   341
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
   342
  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
   343
endif
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   344
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   345
# 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
   346
ifndef TESTDIRS
4187
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   347
  TESTDIRS = demo
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   348
endif
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   349
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   350
# Samevm settings (default is false)
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   351
ifndef USE_JTREG_SAMEVM
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   352
  USE_JTREG_SAMEVM=false
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   353
endif
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   354
# With samevm, you cannot use -javaoptions?
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   355
ifeq ($(USE_JTREG_SAMEVM),true)
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   356
  EXTRA_JTREG_OPTIONS += -samevm $(JAVA_ARGS) $(JAVA_ARGS:%=-vmoption:%)
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   357
  JTREG_TEST_OPTIONS = $(JAVA_VM_ARGS:%=-vmoption:%)
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   358
else
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   359
  JTREG_TEST_OPTIONS = $(JAVA_ARGS:%=-javaoptions:%) $(JAVA_VM_ARGS:%=-vmoption:%)
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   360
endif
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   361
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   362
# Some tests annoy me and fail frequently
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   363
PROBLEM_LIST=ProblemList.txt
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   364
EXCLUDELIST=$(ABS_TEST_OUTPUT_DIR)/excludelist.txt
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   365
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   366
# Create exclude list for this platform and arch
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   367
ifdef NO_EXCLUDES
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   368
$(EXCLUDELIST): $(PROBLEM_LIST) $(TESTDIRS)
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   369
	@$(ECHO) "NOTHING_EXCLUDED" > $@
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   370
else
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   371
$(EXCLUDELIST): $(PROBLEM_LIST) $(TESTDIRS)
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   372
	@$(RM) $@ $@.temp1 $@.temp2
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   373
	@( ( $(EGREP) -- '$(OS_NAME)-all'           $< ) ;\
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   374
	   ( $(EGREP) -- '$(OS_NAME)-$(OS_ARCH)'    $< ) ;\
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   375
	   ( $(EGREP) -- '$(OS_NAME)-$(OS_VERSION)' $< ) ;\
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   376
	   ( $(EGREP) -- 'generic-$(OS_ARCH)'       $< ) ;\
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   377
           ( $(EGREP) -- 'generic-all'              $< ) ;\
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   378
           ( $(ECHO) "#") ;\
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   379
        ) | $(SED) -e 's@^[\ ]*@@' \
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   380
          | $(EGREP) -v '^#' > $@.temp1
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   381
	@for tdir in $(TESTDIRS) ; do \
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   382
          ( ( $(CAT) $@.temp1 | $(EGREP) "^$${tdir}" ) ; $(ECHO) "#" ) >> $@.temp2 ; \
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   383
        done
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   384
	@$(ECHO) "# at least one line" >> $@.temp2
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   385
	@( $(EGREP) -v '^#' $@.temp2 ; true ) > $@
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   386
	@$(ECHO) "Excluding list contains `$(EXPAND) $@ | $(WC) -l` items"
2400
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   387
endif
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   388
4187
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   389
# Running batches of tests with or without samevm
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   390
define RunSamevmBatch
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   391
$(ECHO) "Running tests in samevm mode: $?"
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   392
$(MAKE) TESTDIRS="$?" USE_JTREG_SAMEVM=true  UNIQUE_DIR=$@ jtreg_tests
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   393
endef
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   394
define RunOthervmBatch
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   395
$(ECHO) "Running tests in othervm mode: $?"
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   396
$(MAKE) TESTDIRS="$?" USE_JTREG_SAMEVM=false UNIQUE_DIR=$@ jtreg_tests
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   397
endef
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   398
define SummaryInfo
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   399
$(ECHO) "Summary for: $?"
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   400
$(CAT) $(?:%=$(ABS_TEST_OUTPUT_DIR)/%/$(STATS_TXT_NAME))
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   401
endef
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   402
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   403
# ------------------------------------------------------------------
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   404
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   405
# Batches of tests (somewhat arbitrary assigments to jdk_* targets)
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   406
JDK_ALL_TARGETS =
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   407
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   408
# Stable othervm testruns (minus items from PROBLEM_LIST)
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   409
#   Using samevm has problems, and doesn't help performance as much as others.
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   410
JDK_ALL_TARGETS += jdk_awt
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   411
jdk_awt: com/sun/awt java/awt sun/awt
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   412
	$(call RunOthervmBatch)
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   413
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   414
# Stable samevm testruns (minus items from PROBLEM_LIST)
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   415
JDK_ALL_TARGETS += jdk_beans1
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   416
jdk_beans1: java/beans/beancontext java/beans/PropertyChangeSupport \
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   417
            java/beans/Introspector java/beans/Performance \
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   418
            java/beans/VetoableChangeSupport java/beans/Statement
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   419
	$(call RunSamevmBatch)
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   420
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   421
# Stable othervm testruns (minus items from PROBLEM_LIST)
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   422
#   Using samevm has serious problems with these tests
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   423
JDK_ALL_TARGETS += jdk_beans2
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   424
jdk_beans2: java/beans/Beans java/beans/EventHandler java/beans/XMLDecoder \
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   425
            java/beans/PropertyEditor
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   426
	$(call RunOthervmBatch)
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   427
JDK_ALL_TARGETS += jdk_beans3
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   428
jdk_beans3: java/beans/XMLEncoder
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   429
	$(call RunOthervmBatch)
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   430
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   431
# Stable samevm testruns (minus items from PROBLEM_LIST)
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   432
JDK_ALL_TARGETS += jdk_io
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   433
jdk_io: java/io
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   434
	$(call RunSamevmBatch)
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   435
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   436
# Stable samevm testruns (minus items from PROBLEM_LIST)
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   437
JDK_ALL_TARGETS += jdk_lang
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   438
jdk_lang: java/lang
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   439
	$(call RunSamevmBatch)
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   440
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   441
# Stable othervm testruns (minus items from PROBLEM_LIST)
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   442
#   Using samevm has serious problems with these tests
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   443
JDK_ALL_TARGETS += jdk_management1
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   444
jdk_management1: javax/management
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   445
	$(call RunOthervmBatch)
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   446
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   447
# Stable othervm testruns (minus items from PROBLEM_LIST)
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   448
#   Using samevm has serious problems with these tests
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   449
JDK_ALL_TARGETS += jdk_management2
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   450
jdk_management2: com/sun/jmx com/sun/management sun/management
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   451
	$(call RunOthervmBatch)
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   452
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   453
# Stable samevm testruns (minus items from PROBLEM_LIST)
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   454
JDK_ALL_TARGETS += jdk_math
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   455
jdk_math: java/math
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   456
	$(call RunSamevmBatch)
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   457
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   458
# Stable samevm testruns (minus items from PROBLEM_LIST)
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   459
JDK_ALL_TARGETS += jdk_misc
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   460
jdk_misc: demo javax/imageio javax/naming javax/print javax/script \
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   461
          javax/smartcardio javax/sound com/sun/java com/sun/jndi \
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   462
	  com/sun/org sun/misc sun/pisces
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   463
	$(call RunSamevmBatch)
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   464
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   465
# Stable samevm testruns (minus items from PROBLEM_LIST)
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   466
JDK_ALL_TARGETS += jdk_net
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   467
jdk_net: com/sun/net java/net sun/net
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   468
	$(call RunSamevmBatch)
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   469
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   470
# Stable samevm testruns (minus items from PROBLEM_LIST)
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   471
JDK_ALL_TARGETS += jdk_nio1
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   472
jdk_nio1: java/nio/file
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   473
	$(call RunSamevmBatch)
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   474
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   475
# Stable othervm testruns (minus items from PROBLEM_LIST)
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   476
#   Using samevm has serious problems with these tests
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   477
JDK_ALL_TARGETS += jdk_nio2
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   478
jdk_nio2: java/nio/Buffer java/nio/ByteOrder \
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   479
          java/nio/channels java/nio/BufferPoolMXBean java/nio/MappedByteBuffer
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   480
	$(call RunOthervmBatch)
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   481
JDK_ALL_TARGETS += jdk_nio3
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   482
jdk_nio3: com/sun/nio sun/nio
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   483
	$(call RunOthervmBatch)
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   484
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   485
# Stable othervm testruns (minus items from PROBLEM_LIST)
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   486
#   Using samevm has serious problems with these tests
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   487
JDK_ALL_TARGETS += jdk_rmi
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   488
jdk_rmi: java/rmi javax/rmi sun/rmi
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   489
	$(call RunOthervmBatch)
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   490
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   491
# Stable samevm testruns (minus items from PROBLEM_LIST)
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   492
JDK_ALL_TARGETS += jdk_security1
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   493
jdk_security1: java/security
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   494
	$(call RunSamevmBatch)
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   495
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   496
# Stable othervm testruns (minus items from PROBLEM_LIST)
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   497
#   Using samevm has serious problems with these tests
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   498
JDK_ALL_TARGETS += jdk_security2
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   499
jdk_security2: javax/crypto com/sun/crypto
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   500
	$(call RunOthervmBatch)
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   501
JDK_ALL_TARGETS += jdk_security3
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   502
jdk_security3: com/sun/security lib/security javax/security sun/security
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   503
	$(call RunOthervmBatch)
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   504
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   505
# Stable othervm testruns (minus items from PROBLEM_LIST)
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   506
#   Using samevm has problems, and doesn't help performance as much as others.
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   507
JDK_ALL_TARGETS += jdk_swing
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   508
jdk_swing: javax/swing sun/java2d
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   509
	$(call RunOthervmBatch)
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   510
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   511
# Stable samevm testruns (minus items from PROBLEM_LIST)
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   512
JDK_ALL_TARGETS += jdk_text
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   513
jdk_text: java/text sun/text
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   514
	$(call RunSamevmBatch)
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   515
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   516
# Stable othervm testruns (minus items from PROBLEM_LIST)
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   517
#   Using samevm has serious problems with these tests
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   518
JDK_ALL_TARGETS += jdk_tools1
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   519
jdk_tools1: com/sun/jdi
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   520
	$(call RunOthervmBatch)
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   521
JDK_ALL_TARGETS += jdk_tools2
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   522
jdk_tools2: com/sun/tools sun/jvmstat sun/tools tools vm com/sun/servicetag com/sun/tracing
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   523
	$(call RunOthervmBatch)
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   524
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   525
# Stable samevm testruns (minus items from PROBLEM_LIST)
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   526
JDK_ALL_TARGETS += jdk_util
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   527
jdk_util: java/util sun/util
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   528
	$(call RunSamevmBatch)
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   529
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   530
# ------------------------------------------------------------------
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   531
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   532
# Run all tests
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   533
jdk_all: $(filter-out jdk_awt jdk_rmi jdk_swing, $(JDK_ALL_TARGETS))
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   534
	@$(SummaryInfo)
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   535
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   536
# These are all phony targets
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   537
PHONY_LIST += $(JDK_ALL_TARGETS)
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   538
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   539
# ------------------------------------------------------------------
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   540
2400
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   541
# 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
   542
JTREG = $(JT_HOME)/win32/bin/jtreg
4187
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   543
# Add any extra options (samevm etc.)
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   544
JTREG_BASIC_OPTIONS += $(EXTRA_JTREG_OPTIONS)
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   545
# Only run automatic tests
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   546
JTREG_BASIC_OPTIONS += -a
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   547
# Report details on all failed or error tests, times too
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   548
JTREG_BASIC_OPTIONS += -v:fail,error,time
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   549
# Retain all files for failing tests
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   550
JTREG_BASIC_OPTIONS += -retain:fail,error
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   551
# Ignore tests are not run and completely silent about it
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   552
JTREG_BASIC_OPTIONS += -ignore:quiet
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   553
# Multiple by 2 the timeout numbers
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   554
JTREG_BASIC_OPTIONS += -timeoutFactor:2
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   555
# Boost the max memory for jtreg to avoid gc thrashing
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   556
JTREG_BASIC_OPTIONS += -J-Xmx512m
2400
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   557
4187
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   558
# Make sure jtreg exists
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   559
$(JTREG): $(JT_HOME)
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   560
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   561
# Run jtreg
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   562
jtreg_tests: prep $(PRODUCT_HOME) $(JTREG) $(EXCLUDELIST)
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   563
	@$(EXPAND) $(EXCLUDELIST) \
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   564
            | $(CUT) -d' ' -f1 \
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   565
            | $(SED) -e 's@^@Excluding: @'
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   566
	(                                                                    \
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   567
	  ( JT_HOME=$(shell $(GETMIXEDPATH) "$(JT_HOME)");                   \
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   568
            export JT_HOME;                                                  \
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   569
	    $(PREP_DISPLAY) &&                                               \
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   570
            $(shell $(GETMIXEDPATH) "$(JTREG)")                              \
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   571
              $(JTREG_BASIC_OPTIONS)                                         \
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   572
              -r:$(shell $(GETMIXEDPATH) "$(ABS_TEST_OUTPUT_DIR)")/JTreport  \
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   573
              -w:$(shell $(GETMIXEDPATH) "$(ABS_TEST_OUTPUT_DIR)")/JTwork    \
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   574
              -jdk:$(shell $(GETMIXEDPATH) "$(PRODUCT_HOME)")                \
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   575
              -exclude:$(shell $(GETMIXEDPATH) "$(EXCLUDELIST)")             \
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   576
              $(JTREG_TEST_OPTIONS)                                          \
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   577
              $(TESTDIRS)                                                    \
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   578
	  ) ; $(BUNDLE_UP_AND_EXIT)                                          \
d7111a88f0ec 6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents: 2945
diff changeset
   579
	) 2>&1 | $(TEE) $(ABS_TEST_OUTPUT_DIR)/output.txt
2400
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   580
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   581
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
   582
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   583
################################################################
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   584
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   585
# packtest
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   586
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   587
# 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
   588
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
   589
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
   590
  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
   591
endif
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   592
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   593
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
   594
	( $(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
   595
	    $(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
   596
		 -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
   597
	         $(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
   598
		 $(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
   599
		 -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
   600
                 $(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
   601
                 $(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
   602
	 ) ; $(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
   603
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   604
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
   605
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
   606
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   607
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
   608
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   609
################################################################
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   610
2930
58a6440b92dc 6829636: test/java/util/logging/LoggingDeadlock2.java is flaky
mchung
parents: 2400
diff changeset
   611
# perftest to collect statistics  
58a6440b92dc 6829636: test/java/util/logging/LoggingDeadlock2.java is flaky
mchung
parents: 2400
diff changeset
   612
58a6440b92dc 6829636: test/java/util/logging/LoggingDeadlock2.java is flaky
mchung
parents: 2400
diff changeset
   613
# Expect JPRT to set JPRT_PACKTEST_HOME.
58a6440b92dc 6829636: test/java/util/logging/LoggingDeadlock2.java is flaky
mchung
parents: 2400
diff changeset
   614
PERFTEST_HOME = ${TEST_ROOT}/perf
58a6440b92dc 6829636: test/java/util/logging/LoggingDeadlock2.java is flaky
mchung
parents: 2400
diff changeset
   615
ifdef JPRT_PERFTEST_HOME
58a6440b92dc 6829636: test/java/util/logging/LoggingDeadlock2.java is flaky
mchung
parents: 2400
diff changeset
   616
  PERFTEST_HOME = $(JPRT_PERFTEST_HOME)
58a6440b92dc 6829636: test/java/util/logging/LoggingDeadlock2.java is flaky
mchung
parents: 2400
diff changeset
   617
endif
58a6440b92dc 6829636: test/java/util/logging/LoggingDeadlock2.java is flaky
mchung
parents: 2400
diff changeset
   618
58a6440b92dc 6829636: test/java/util/logging/LoggingDeadlock2.java is flaky
mchung
parents: 2400
diff changeset
   619
perftest: ( $(PERFTEST_HOME)/perftest          \
58a6440b92dc 6829636: test/java/util/logging/LoggingDeadlock2.java is flaky
mchung
parents: 2400
diff changeset
   620
                 -t $(shell $(GETMIXEDPATH) "$(PRODUCT_HOME)")               \
58a6440b92dc 6829636: test/java/util/logging/LoggingDeadlock2.java is flaky
mchung
parents: 2400
diff changeset
   621
                 -w $(shell $(GETMIXEDPATH) "$(ABS_TEST_OUTPUT_DIR)") \
58a6440b92dc 6829636: test/java/util/logging/LoggingDeadlock2.java is flaky
mchung
parents: 2400
diff changeset
   622
                 -h $(PERFTEST_HOME) \
58a6440b92dc 6829636: test/java/util/logging/LoggingDeadlock2.java is flaky
mchung
parents: 2400
diff changeset
   623
	 ) ; $(BUNDLE_UP_AND_EXIT)
58a6440b92dc 6829636: test/java/util/logging/LoggingDeadlock2.java is flaky
mchung
parents: 2400
diff changeset
   624
58a6440b92dc 6829636: test/java/util/logging/LoggingDeadlock2.java is flaky
mchung
parents: 2400
diff changeset
   625
58a6440b92dc 6829636: test/java/util/logging/LoggingDeadlock2.java is flaky
mchung
parents: 2400
diff changeset
   626
PHONY_LIST += perftest
58a6440b92dc 6829636: test/java/util/logging/LoggingDeadlock2.java is flaky
mchung
parents: 2400
diff changeset
   627
58a6440b92dc 6829636: test/java/util/logging/LoggingDeadlock2.java is flaky
mchung
parents: 2400
diff changeset
   628
################################################################
58a6440b92dc 6829636: test/java/util/logging/LoggingDeadlock2.java is flaky
mchung
parents: 2400
diff changeset
   629
2400
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   630
# 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
   631
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   632
# 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
   633
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
   634
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
   635
  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
   636
endif
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   637
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   638
# 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
   639
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
   640
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
   641
  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
   642
endif
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   643
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   644
# 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
   645
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
   646
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
   647
  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
   648
endif
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   649
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   650
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
   651
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   652
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
   653
	$(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
   654
	( $(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
   655
	    $(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
   656
		 -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
   657
		 -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
   658
		 -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
   659
		 -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
   660
		 -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
   661
                 $(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
   662
                 $(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
   663
	         $(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
   664
		 $(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
   665
	 ) ; $(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
   666
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   667
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
   668
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
   669
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   670
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
   671
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
   672
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   673
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
   674
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
   675
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   676
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
   677
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
   678
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   679
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
   680
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
   681
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   682
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
   683
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
   684
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   685
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
   686
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
   687
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   688
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
   689
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
   690
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   691
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
   692
              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
   693
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   694
################################################################
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   695
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   696
# jck tests
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   697
2400
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   698
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
   699
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
   700
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
   701
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
   702
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   703
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
   704
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   705
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
   706
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
   707
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   708
$(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
   709
	$(RM) $@
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   710
	$(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
   711
	$(CP) $< $@
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   712
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   713
$(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
   714
	$(RM) $@
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   715
	$(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
   716
	$(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
   717
	$(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
   718
	$(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
   719
	$(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
   720
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   721
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
   722
	$(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
   723
	( $(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
   724
		-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
   725
		-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
   726
		-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
   727
		-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
   728
		-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
   729
		-runtests                            \
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   730
		-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
   731
        ) ; $(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
   732
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   733
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
   734
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   735
################################################################
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   736
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   737
# 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
   738
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   739
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
   740
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
   741
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   742
# 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
   743
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
   744
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
   745
  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
   746
endif
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   747
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   748
# 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
   749
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
   750
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
   751
  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
   752
endif
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   753
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   754
# 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
   755
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
   756
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
   757
  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
   758
endif
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   759
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   760
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
   761
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
   762
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
   763
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   764
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
   765
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
   766
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
   767
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   768
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
   769
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
   770
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   771
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
   772
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
   773
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
   774
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   775
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
   776
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
   777
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   778
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
   779
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
   780
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
   781
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   782
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
   783
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
   784
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   785
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
   786
	      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
   787
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   788
################################################################
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   789
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   790
# 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
   791
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   792
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
   793
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
   794
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   795
# 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
   796
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
   797
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
   798
  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
   799
endif
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   800
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   801
# 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
   802
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
   803
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
   804
  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
   805
endif
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   806
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   807
# 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
   808
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
   809
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
   810
  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
   811
endif
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   812
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   813
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
   814
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
   815
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
   816
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   817
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
   818
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
   819
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
   820
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   821
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
   822
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
   823
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   824
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
   825
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
   826
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
   827
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   828
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
   829
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
   830
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   831
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
   832
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
   833
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
   834
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   835
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
   836
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
   837
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   838
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
   839
	      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
   840
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   841
################################################################
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   842
90ce3da70b43 Initial load
duke
parents:
diff changeset
   843
# 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
   844
.PHONY: all clean prep $(PHONY_LIST)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   845
2400
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   846
################################################################
0d7007d99b0f 6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents: 2
diff changeset
   847