author | naoto |
Mon, 18 Oct 2010 14:45:00 -0700 | |
changeset 6843 | 6ab7e78c51eb |
parent 5970 | d4e98bbfb0be |
child 8769 | 728aa3db9869 |
permissions | -rw-r--r-- |
2 | 1 |
# |
5506 | 2 |
# Copyright (c) 1995, 2010, Oracle and/or its affiliates. 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 |
5506 | 7 |
# published by the Free Software Foundation. Oracle designates this |
2400
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 |
5506 | 9 |
# by Oracle in the LICENSE file that accompanied this code. |
2400
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 |
# |
5506 | 21 |
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
22 |
# or visit www.oracle.com if you need additional information or have any |
|
23 |
# questions. |
|
2400
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 | 28 |
# |
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 |
5600
8ca34998a6b3
6943915: Adjust jdk/test/Makefile to deal with .dll and .so libraries needing execute permissions
ohair
parents:
5149
diff
changeset
|
40 |
CHMOD = chmod |
4187
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 |
5600
8ca34998a6b3
6943915: Adjust jdk/test/Makefile to deal with .dll and .so libraries needing execute permissions
ohair
parents:
5149
diff
changeset
|
43 |
DIRNAME = dirname |
4187
d7111a88f0ec
6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents:
2945
diff
changeset
|
44 |
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
|
45 |
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
|
46 |
EXPAND = expand |
5600
8ca34998a6b3
6943915: Adjust jdk/test/Makefile to deal with .dll and .so libraries needing execute permissions
ohair
parents:
5149
diff
changeset
|
47 |
FIND = find |
4187
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 |
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
|
50 |
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
|
51 |
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
|
52 |
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
|
53 |
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
|
54 |
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
|
55 |
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
|
56 |
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
|
57 |
|
d7111a88f0ec
6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents:
2945
diff
changeset
|
58 |
# 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
|
59 |
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
|
60 |
|
0d7007d99b0f
6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents:
2
diff
changeset
|
61 |
# 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
|
62 |
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
|
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 |
# 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
|
65 |
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
|
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 |
# 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
|
68 |
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
|
69 |
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
|
70 |
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
|
71 |
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
|
72 |
endif |
d7111a88f0ec
6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents:
2945
diff
changeset
|
73 |
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
|
74 |
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
|
75 |
OS_ARCH := $(shell $(UNAME) -m) |
5149
efce9634bfc0
6933294: Fix some test/Makefile issues around Linux ARCH settings, better defaults
ohair
parents:
4991
diff
changeset
|
76 |
# Check for unknown arch, try uname -p if uname -m says unknown |
efce9634bfc0
6933294: Fix some test/Makefile issues around Linux ARCH settings, better defaults
ohair
parents:
4991
diff
changeset
|
77 |
ifeq ($(OS_ARCH),unknown) |
efce9634bfc0
6933294: Fix some test/Makefile issues around Linux ARCH settings, better defaults
ohair
parents:
4991
diff
changeset
|
78 |
OS_ARCH := $(shell $(UNAME) -p) |
efce9634bfc0
6933294: Fix some test/Makefile issues around Linux ARCH settings, better defaults
ohair
parents:
4991
diff
changeset
|
79 |
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
|
80 |
OS_VERSION := $(shell $(UNAME) -r) |
2 | 81 |
endif |
5611
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
5600
diff
changeset
|
82 |
ifeq ($(OS_NAME),) |
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
5600
diff
changeset
|
83 |
OS_NAME = windows |
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
5600
diff
changeset
|
84 |
# GNU Make or MKS overrides $(PROCESSOR_ARCHITECTURE) to always |
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
5600
diff
changeset
|
85 |
# return "x86". Use the first word of $(PROCESSOR_IDENTIFIER) instead. |
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
5600
diff
changeset
|
86 |
ifeq ($(PROCESSOR_IDENTIFIER),) |
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
5600
diff
changeset
|
87 |
PROC_ARCH:=$(shell $(UNAME) -m) |
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
5600
diff
changeset
|
88 |
else |
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
5600
diff
changeset
|
89 |
PROC_ARCH:=$(word 1, $(PROCESSOR_IDENTIFIER)) |
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
5600
diff
changeset
|
90 |
endif |
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
5600
diff
changeset
|
91 |
OS_ARCH:=$(PROC_ARCH) |
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
5600
diff
changeset
|
92 |
SLASH_JAVA = J: |
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
5600
diff
changeset
|
93 |
EXESUFFIX = .exe |
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
5600
diff
changeset
|
94 |
# These need to be different depending on MKS or CYGWIN |
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
5600
diff
changeset
|
95 |
ifeq ($(findstring cygdrive,$(shell ($(CD) C:/ && $(PWD)))), ) |
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
5600
diff
changeset
|
96 |
GETMIXEDPATH = dosname -s |
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
5600
diff
changeset
|
97 |
OS_VERSION := $(shell $(UNAME) -r) |
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
5600
diff
changeset
|
98 |
else |
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
5600
diff
changeset
|
99 |
GETMIXEDPATH = cygpath -m -s |
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
5600
diff
changeset
|
100 |
OS_VERSION := $(shell $(UNAME) -s | $(CUT) -d'-' -f2) |
2 | 101 |
endif |
102 |
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
|
103 |
|
4187
d7111a88f0ec
6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents:
2945
diff
changeset
|
104 |
# 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
|
105 |
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
|
106 |
|
5149
efce9634bfc0
6933294: Fix some test/Makefile issues around Linux ARCH settings, better defaults
ohair
parents:
4991
diff
changeset
|
107 |
# Name to use for x86_64 arch (historically amd64, but should change someday) |
efce9634bfc0
6933294: Fix some test/Makefile issues around Linux ARCH settings, better defaults
ohair
parents:
4991
diff
changeset
|
108 |
OS_ARCH_X64_NAME:=amd64 |
efce9634bfc0
6933294: Fix some test/Makefile issues around Linux ARCH settings, better defaults
ohair
parents:
4991
diff
changeset
|
109 |
#OS_ARCH_X64_NAME:=x64 |
efce9634bfc0
6933294: Fix some test/Makefile issues around Linux ARCH settings, better defaults
ohair
parents:
4991
diff
changeset
|
110 |
|
efce9634bfc0
6933294: Fix some test/Makefile issues around Linux ARCH settings, better defaults
ohair
parents:
4991
diff
changeset
|
111 |
# Alternate arch names (in case this arch is known by a second name) |
efce9634bfc0
6933294: Fix some test/Makefile issues around Linux ARCH settings, better defaults
ohair
parents:
4991
diff
changeset
|
112 |
# PROBLEM_LISTS may use either name. |
efce9634bfc0
6933294: Fix some test/Makefile issues around Linux ARCH settings, better defaults
ohair
parents:
4991
diff
changeset
|
113 |
OS_ARCH2-amd64:=x64 |
efce9634bfc0
6933294: Fix some test/Makefile issues around Linux ARCH settings, better defaults
ohair
parents:
4991
diff
changeset
|
114 |
#OS_ARCH2-x64:=amd64 |
efce9634bfc0
6933294: Fix some test/Makefile issues around Linux ARCH settings, better defaults
ohair
parents:
4991
diff
changeset
|
115 |
|
efce9634bfc0
6933294: Fix some test/Makefile issues around Linux ARCH settings, better defaults
ohair
parents:
4991
diff
changeset
|
116 |
# Try and use the arch names consistently |
5611
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
5600
diff
changeset
|
117 |
OS_ARCH:=$(patsubst x64,$(OS_ARCH_X64_NAME),$(OS_ARCH)) |
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
5600
diff
changeset
|
118 |
OS_ARCH:=$(patsubst X64,$(OS_ARCH_X64_NAME),$(OS_ARCH)) |
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
5600
diff
changeset
|
119 |
OS_ARCH:=$(patsubst AMD64,$(OS_ARCH_X64_NAME),$(OS_ARCH)) |
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
5600
diff
changeset
|
120 |
OS_ARCH:=$(patsubst amd64,$(OS_ARCH_X64_NAME),$(OS_ARCH)) |
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
5600
diff
changeset
|
121 |
OS_ARCH:=$(patsubst x86_64,$(OS_ARCH_X64_NAME),$(OS_ARCH)) |
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
5600
diff
changeset
|
122 |
OS_ARCH:=$(patsubst 8664,$(OS_ARCH_X64_NAME),$(OS_ARCH)) |
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
5600
diff
changeset
|
123 |
OS_ARCH:=$(patsubst EM64T,$(OS_ARCH_X64_NAME),$(OS_ARCH)) |
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
5600
diff
changeset
|
124 |
OS_ARCH:=$(patsubst em64t,$(OS_ARCH_X64_NAME),$(OS_ARCH)) |
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
5600
diff
changeset
|
125 |
OS_ARCH:=$(patsubst intel64,$(OS_ARCH_X64_NAME),$(OS_ARCH)) |
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
5600
diff
changeset
|
126 |
OS_ARCH:=$(patsubst Intel64,$(OS_ARCH_X64_NAME),$(OS_ARCH)) |
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
5600
diff
changeset
|
127 |
OS_ARCH:=$(patsubst INTEL64,$(OS_ARCH_X64_NAME),$(OS_ARCH)) |
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
5600
diff
changeset
|
128 |
OS_ARCH:=$(patsubst IA64,ia64,$(OS_ARCH)) |
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
5600
diff
changeset
|
129 |
OS_ARCH:=$(patsubst X86,i586,$(OS_ARCH)) |
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
5600
diff
changeset
|
130 |
OS_ARCH:=$(patsubst x86,i586,$(OS_ARCH)) |
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
5600
diff
changeset
|
131 |
OS_ARCH:=$(patsubst i386,i586,$(OS_ARCH)) |
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
5600
diff
changeset
|
132 |
OS_ARCH:=$(patsubst i486,i586,$(OS_ARCH)) |
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
5600
diff
changeset
|
133 |
OS_ARCH:=$(patsubst i686,i586,$(OS_ARCH)) |
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
5600
diff
changeset
|
134 |
OS_ARCH:=$(patsubst 386,i586,$(OS_ARCH)) |
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
5600
diff
changeset
|
135 |
OS_ARCH:=$(patsubst 486,i586,$(OS_ARCH)) |
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
5600
diff
changeset
|
136 |
OS_ARCH:=$(patsubst 586,i586,$(OS_ARCH)) |
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
5600
diff
changeset
|
137 |
OS_ARCH:=$(patsubst 686,i586,$(OS_ARCH)) |
4187
d7111a88f0ec
6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents:
2945
diff
changeset
|
138 |
|
5149
efce9634bfc0
6933294: Fix some test/Makefile issues around Linux ARCH settings, better defaults
ohair
parents:
4991
diff
changeset
|
139 |
# Default ARCH_DATA_MODEL settings |
efce9634bfc0
6933294: Fix some test/Makefile issues around Linux ARCH settings, better defaults
ohair
parents:
4991
diff
changeset
|
140 |
ARCH_DATA_MODEL-i586 = 32 |
efce9634bfc0
6933294: Fix some test/Makefile issues around Linux ARCH settings, better defaults
ohair
parents:
4991
diff
changeset
|
141 |
ARCH_DATA_MODEL-$(OS_ARCH_X64_NAME) = 64 |
efce9634bfc0
6933294: Fix some test/Makefile issues around Linux ARCH settings, better defaults
ohair
parents:
4991
diff
changeset
|
142 |
ARCH_DATA_MODEL-ia64 = 64 |
efce9634bfc0
6933294: Fix some test/Makefile issues around Linux ARCH settings, better defaults
ohair
parents:
4991
diff
changeset
|
143 |
ARCH_DATA_MODEL-sparc = 32 |
efce9634bfc0
6933294: Fix some test/Makefile issues around Linux ARCH settings, better defaults
ohair
parents:
4991
diff
changeset
|
144 |
ARCH_DATA_MODEL-sparcv9 = 64 |
efce9634bfc0
6933294: Fix some test/Makefile issues around Linux ARCH settings, better defaults
ohair
parents:
4991
diff
changeset
|
145 |
|
efce9634bfc0
6933294: Fix some test/Makefile issues around Linux ARCH settings, better defaults
ohair
parents:
4991
diff
changeset
|
146 |
# If ARCH_DATA_MODEL is not defined, try and pick a reasonable default |
efce9634bfc0
6933294: Fix some test/Makefile issues around Linux ARCH settings, better defaults
ohair
parents:
4991
diff
changeset
|
147 |
ifndef ARCH_DATA_MODEL |
efce9634bfc0
6933294: Fix some test/Makefile issues around Linux ARCH settings, better defaults
ohair
parents:
4991
diff
changeset
|
148 |
ARCH_DATA_MODEL:=$(ARCH_DATA_MODEL-$(OS_ARCH)) |
efce9634bfc0
6933294: Fix some test/Makefile issues around Linux ARCH settings, better defaults
ohair
parents:
4991
diff
changeset
|
149 |
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
|
150 |
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
|
151 |
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
|
152 |
endif |
5149
efce9634bfc0
6933294: Fix some test/Makefile issues around Linux ARCH settings, better defaults
ohair
parents:
4991
diff
changeset
|
153 |
|
efce9634bfc0
6933294: Fix some test/Makefile issues around Linux ARCH settings, better defaults
ohair
parents:
4991
diff
changeset
|
154 |
# Platform directory name |
efce9634bfc0
6933294: Fix some test/Makefile issues around Linux ARCH settings, better defaults
ohair
parents:
4991
diff
changeset
|
155 |
PLATFORM_OS = $(OS_NAME)-$(OS_ARCH) |
efce9634bfc0
6933294: Fix some test/Makefile issues around Linux ARCH settings, better defaults
ohair
parents:
4991
diff
changeset
|
156 |
|
efce9634bfc0
6933294: Fix some test/Makefile issues around Linux ARCH settings, better defaults
ohair
parents:
4991
diff
changeset
|
157 |
# Check ARCH_DATA_MODEL, adjust OS_ARCH accordingly on solaris |
4187
d7111a88f0ec
6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents:
2945
diff
changeset
|
158 |
ARCH_DATA_MODEL_ERROR= \ |
5149
efce9634bfc0
6933294: Fix some test/Makefile issues around Linux ARCH settings, better defaults
ohair
parents:
4991
diff
changeset
|
159 |
ARCH_DATA_MODEL=$(ARCH_DATA_MODEL) cannot be used with $(PLATFORM_OS) |
4187
d7111a88f0ec
6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents:
2945
diff
changeset
|
160 |
ifeq ($(ARCH_DATA_MODEL),64) |
5149
efce9634bfc0
6933294: Fix some test/Makefile issues around Linux ARCH settings, better defaults
ohair
parents:
4991
diff
changeset
|
161 |
ifeq ($(PLATFORM_OS),solaris-i586) |
efce9634bfc0
6933294: Fix some test/Makefile issues around Linux ARCH settings, better defaults
ohair
parents:
4991
diff
changeset
|
162 |
OS_ARCH=$(OS_ARCH_X64_NAME) |
4187
d7111a88f0ec
6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents:
2945
diff
changeset
|
163 |
endif |
5149
efce9634bfc0
6933294: Fix some test/Makefile issues around Linux ARCH settings, better defaults
ohair
parents:
4991
diff
changeset
|
164 |
ifeq ($(PLATFORM_OS),solaris-sparc) |
4187
d7111a88f0ec
6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents:
2945
diff
changeset
|
165 |
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
|
166 |
endif |
d7111a88f0ec
6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents:
2945
diff
changeset
|
167 |
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
|
168 |
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
|
169 |
endif |
d7111a88f0ec
6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents:
2945
diff
changeset
|
170 |
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
|
171 |
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
|
172 |
endif |
d7111a88f0ec
6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents:
2945
diff
changeset
|
173 |
else |
d7111a88f0ec
6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents:
2945
diff
changeset
|
174 |
ifeq ($(ARCH_DATA_MODEL),32) |
5149
efce9634bfc0
6933294: Fix some test/Makefile issues around Linux ARCH settings, better defaults
ohair
parents:
4991
diff
changeset
|
175 |
ifeq ($(OS_ARCH),$(OS_ARCH_X64_NAME)) |
4187
d7111a88f0ec
6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents:
2945
diff
changeset
|
176 |
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
|
177 |
endif |
d7111a88f0ec
6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents:
2945
diff
changeset
|
178 |
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
|
179 |
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
|
180 |
endif |
d7111a88f0ec
6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents:
2945
diff
changeset
|
181 |
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
|
182 |
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
|
183 |
endif |
2 | 184 |
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
|
185 |
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
|
186 |
endif |
2 | 187 |
endif |
188 |
||
5149
efce9634bfc0
6933294: Fix some test/Makefile issues around Linux ARCH settings, better defaults
ohair
parents:
4991
diff
changeset
|
189 |
# Alternate OS_ARCH name (defaults to OS_ARCH) |
efce9634bfc0
6933294: Fix some test/Makefile issues around Linux ARCH settings, better defaults
ohair
parents:
4991
diff
changeset
|
190 |
OS_ARCH2:=$(OS_ARCH2-$(OS_ARCH)) |
efce9634bfc0
6933294: Fix some test/Makefile issues around Linux ARCH settings, better defaults
ohair
parents:
4991
diff
changeset
|
191 |
ifeq ($(OS_ARCH2),) |
efce9634bfc0
6933294: Fix some test/Makefile issues around Linux ARCH settings, better defaults
ohair
parents:
4991
diff
changeset
|
192 |
OS_ARCH2:=$(OS_ARCH) |
efce9634bfc0
6933294: Fix some test/Makefile issues around Linux ARCH settings, better defaults
ohair
parents:
4991
diff
changeset
|
193 |
endif |
efce9634bfc0
6933294: Fix some test/Makefile issues around Linux ARCH settings, better defaults
ohair
parents:
4991
diff
changeset
|
194 |
|
2 | 195 |
# 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
|
196 |
TEST_ROOT := $(shell $(PWD)) |
2 | 197 |
|
2400
0d7007d99b0f
6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents:
2
diff
changeset
|
198 |
# 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
|
199 |
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
|
200 |
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
|
201 |
else |
5149
efce9634bfc0
6933294: Fix some test/Makefile issues around Linux ARCH settings, better defaults
ohair
parents:
4991
diff
changeset
|
202 |
ABS_OUTPUTDIR = $(TEST_ROOT)/../build/$(PLATFORM_OS) |
2400
0d7007d99b0f
6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents:
2
diff
changeset
|
203 |
endif |
5149
efce9634bfc0
6933294: Fix some test/Makefile issues around Linux ARCH settings, better defaults
ohair
parents:
4991
diff
changeset
|
204 |
ABS_PLATFORM_BUILD_ROOT = $(ABS_OUTPUTDIR) |
efce9634bfc0
6933294: Fix some test/Makefile issues around Linux ARCH settings, better defaults
ohair
parents:
4991
diff
changeset
|
205 |
ABS_TEST_OUTPUT_DIR := $(ABS_PLATFORM_BUILD_ROOT)/testoutput/$(UNIQUE_DIR) |
2 | 206 |
|
2400
0d7007d99b0f
6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents:
2
diff
changeset
|
207 |
# Expect JPRT to set 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
|
208 |
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
|
209 |
# Try to use j2sdk-image if it exists |
5149
efce9634bfc0
6933294: Fix some test/Makefile issues around Linux ARCH settings, better defaults
ohair
parents:
4991
diff
changeset
|
210 |
ABS_JDK_IMAGE = $(ABS_PLATFORM_BUILD_ROOT)/j2sdk-image |
efce9634bfc0
6933294: Fix some test/Makefile issues around Linux ARCH settings, better defaults
ohair
parents:
4991
diff
changeset
|
211 |
PRODUCT_HOME := \ |
efce9634bfc0
6933294: Fix some test/Makefile issues around Linux ARCH settings, better defaults
ohair
parents:
4991
diff
changeset
|
212 |
$(shell \ |
efce9634bfc0
6933294: Fix some test/Makefile issues around Linux ARCH settings, better defaults
ohair
parents:
4991
diff
changeset
|
213 |
if [ -d $(ABS_JDK_IMAGE) ] ; then \ |
efce9634bfc0
6933294: Fix some test/Makefile issues around Linux ARCH settings, better defaults
ohair
parents:
4991
diff
changeset
|
214 |
$(ECHO) "$(ABS_JDK_IMAGE)"; \ |
efce9634bfc0
6933294: Fix some test/Makefile issues around Linux ARCH settings, better defaults
ohair
parents:
4991
diff
changeset
|
215 |
else \ |
efce9634bfc0
6933294: Fix some test/Makefile issues around Linux ARCH settings, better defaults
ohair
parents:
4991
diff
changeset
|
216 |
$(ECHO) "$(ABS_PLATFORM_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
|
217 |
fi) |
0d7007d99b0f
6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents:
2
diff
changeset
|
218 |
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
|
219 |
endif |
0d7007d99b0f
6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents:
2
diff
changeset
|
220 |
|
0d7007d99b0f
6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents:
2
diff
changeset
|
221 |
# 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
|
222 |
# 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
|
223 |
# 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
|
224 |
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
|
225 |
JAVA_ARGS = $(JPRT_PRODUCT_ARGS) |
2 | 226 |
endif |
227 |
||
2400
0d7007d99b0f
6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents:
2
diff
changeset
|
228 |
# 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
|
229 |
# 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
|
230 |
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
|
231 |
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
|
232 |
endif |
2 | 233 |
|
4187
d7111a88f0ec
6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents:
2945
diff
changeset
|
234 |
# 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
|
235 |
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
|
236 |
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
|
237 |
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
|
238 |
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
|
239 |
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
|
240 |
endif |
d7111a88f0ec
6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents:
2945
diff
changeset
|
241 |
endif |
d7111a88f0ec
6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents:
2945
diff
changeset
|
242 |
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
|
243 |
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
|
244 |
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
|
245 |
endif |
d7111a88f0ec
6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents:
2945
diff
changeset
|
246 |
endif |
d7111a88f0ec
6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents:
2945
diff
changeset
|
247 |
endif |
d7111a88f0ec
6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents:
2945
diff
changeset
|
248 |
|
5611
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
5600
diff
changeset
|
249 |
# Macro to run make and set the shared library permissions |
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
5600
diff
changeset
|
250 |
define SharedLibraryPermissions |
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
5600
diff
changeset
|
251 |
$(MAKE) SHARED_LIBRARY_DIR=$1 UNIQUE_DIR=$@ shared_library_permissions |
5600
8ca34998a6b3
6943915: Adjust jdk/test/Makefile to deal with .dll and .so libraries needing execute permissions
ohair
parents:
5149
diff
changeset
|
252 |
endef |
8ca34998a6b3
6943915: Adjust jdk/test/Makefile to deal with .dll and .so libraries needing execute permissions
ohair
parents:
5149
diff
changeset
|
253 |
|
2400
0d7007d99b0f
6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents:
2
diff
changeset
|
254 |
# 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
|
255 |
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
|
256 |
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
|
257 |
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
|
258 |
endif |
2 | 259 |
|
2400
0d7007d99b0f
6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents:
2
diff
changeset
|
260 |
# 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
|
261 |
# Follow command with ";$(BUNDLE_UP_AND_EXIT)", so it always gets executed. |
5600
8ca34998a6b3
6943915: Adjust jdk/test/Makefile to deal with .dll and .so libraries needing execute permissions
ohair
parents:
5149
diff
changeset
|
262 |
ZIP_UP_RESULTS = ( $(MKDIR) -p `$(DIRNAME) $(ARCHIVE_BUNDLE)` \ |
2400
0d7007d99b0f
6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents:
2
diff
changeset
|
263 |
&& $(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
|
264 |
&& $(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
|
265 |
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
|
266 |
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
|
267 |
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
|
268 |
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
|
269 |
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
|
270 |
FAILLIST = $(shell $(GETMIXEDPATH) "$(ABS_TEST_OUTPUT_DIR)")/faillist.txt |
4342
9f3aa1172803
6905705: Fix broken exit code values in jdk/test/Makefile
ohair
parents:
4335
diff
changeset
|
271 |
EXITCODE = $(shell $(GETMIXEDPATH) "$(ABS_TEST_OUTPUT_DIR)")/exitcode.txt |
9f3aa1172803
6905705: Fix broken exit code values in jdk/test/Makefile
ohair
parents:
4335
diff
changeset
|
272 |
|
9f3aa1172803
6905705: Fix broken exit code values in jdk/test/Makefile
ohair
parents:
4335
diff
changeset
|
273 |
TESTEXIT = \ |
9f3aa1172803
6905705: Fix broken exit code values in jdk/test/Makefile
ohair
parents:
4335
diff
changeset
|
274 |
if [ ! -s $(EXITCODE) ] ; then \ |
9f3aa1172803
6905705: Fix broken exit code values in jdk/test/Makefile
ohair
parents:
4335
diff
changeset
|
275 |
$(ECHO) "ERROR: EXITCODE file not filled in."; \ |
9f3aa1172803
6905705: Fix broken exit code values in jdk/test/Makefile
ohair
parents:
4335
diff
changeset
|
276 |
$(ECHO) "1" > $(EXITCODE); \ |
9f3aa1172803
6905705: Fix broken exit code values in jdk/test/Makefile
ohair
parents:
4335
diff
changeset
|
277 |
fi ; \ |
9f3aa1172803
6905705: Fix broken exit code values in jdk/test/Makefile
ohair
parents:
4335
diff
changeset
|
278 |
testExitCode=`$(CAT) $(EXITCODE)`; \ |
9f3aa1172803
6905705: Fix broken exit code values in jdk/test/Makefile
ohair
parents:
4335
diff
changeset
|
279 |
$(ECHO) "EXIT CODE: $${testExitCode}"; \ |
4514 | 280 |
exit $${testExitCode} |
4342
9f3aa1172803
6905705: Fix broken exit code values in jdk/test/Makefile
ohair
parents:
4335
diff
changeset
|
281 |
|
4187
d7111a88f0ec
6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents:
2945
diff
changeset
|
282 |
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
|
283 |
( \ |
4342
9f3aa1172803
6905705: Fix broken exit code values in jdk/test/Makefile
ohair
parents:
4335
diff
changeset
|
284 |
jtregExitCode=$$? && \ |
4187
d7111a88f0ec
6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents:
2945
diff
changeset
|
285 |
_summary="$(SUMMARY_TXT)"; \ |
4342
9f3aa1172803
6905705: Fix broken exit code values in jdk/test/Makefile
ohair
parents:
4335
diff
changeset
|
286 |
$(RM) -f $(STATS_TXT) $(RUNLIST) $(PASSLIST) $(FAILLIST) $(EXITCODE); \ |
9f3aa1172803
6905705: Fix broken exit code values in jdk/test/Makefile
ohair
parents:
4335
diff
changeset
|
287 |
$(ECHO) "$${jtregExitCode}" > $(EXITCODE); \ |
4187
d7111a88f0ec
6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents:
2945
diff
changeset
|
288 |
if [ -r "$${_summary}" ] ; then \ |
4514 | 289 |
$(ECHO) "Summary: $(UNIQUE_DIR)" > $(STATS_TXT); \ |
4187
d7111a88f0ec
6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents:
2945
diff
changeset
|
290 |
$(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
|
291 |
$(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
|
292 |
| $(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
|
293 |
| $(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
|
294 |
( $(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
|
295 |
$(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
|
296 |
$(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
|
297 |
| $(SORT) | $(UNIQ) > $(FAILLIST); \ |
4342
9f3aa1172803
6905705: Fix broken exit code values in jdk/test/Makefile
ohair
parents:
4335
diff
changeset
|
298 |
if [ $${jtregExitCode} != 0 -o -s $(FAILLIST) ] ; then \ |
4187
d7111a88f0ec
6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents:
2945
diff
changeset
|
299 |
$(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
|
300 |
| $(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
|
301 |
| $(SED) -e 's@^@FAILED: @' >> $(STATS_TXT); \ |
4342
9f3aa1172803
6905705: Fix broken exit code values in jdk/test/Makefile
ohair
parents:
4335
diff
changeset
|
302 |
if [ $${jtregExitCode} = 0 ] ; then \ |
9f3aa1172803
6905705: Fix broken exit code values in jdk/test/Makefile
ohair
parents:
4335
diff
changeset
|
303 |
jtregExitCode=1; \ |
9f3aa1172803
6905705: Fix broken exit code values in jdk/test/Makefile
ohair
parents:
4335
diff
changeset
|
304 |
fi; \ |
4187
d7111a88f0ec
6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents:
2945
diff
changeset
|
305 |
fi; \ |
d7111a88f0ec
6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents:
2945
diff
changeset
|
306 |
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
|
307 |
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
|
308 |
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
|
309 |
exclc="`$(CAT) $(EXCLUDELIST) | $(WC) -l | $(AWK) '{print $$1;}'`"; \ |
5813
8e455cd3e807
6962617: Testcase changes, cleanup of problem list for jdk_tools targets
ohair
parents:
5627
diff
changeset
|
310 |
$(ECHO) "TEST STATS: name=$(UNIQUE_DIR) run=$${runc} pass=$${passc} fail=$${failc} excluded=$${exclc}" \ |
4187
d7111a88f0ec
6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents:
2945
diff
changeset
|
311 |
>> $(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
|
312 |
else \ |
d7111a88f0ec
6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents:
2945
diff
changeset
|
313 |
$(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
|
314 |
fi; \ |
d7111a88f0ec
6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents:
2945
diff
changeset
|
315 |
$(CAT) $(STATS_TXT); \ |
4991
38f33163acce
6915983: testing problems, adjusting list of tests, needs some investigation
ohair
parents:
4517
diff
changeset
|
316 |
$(ZIP_UP_RESULTS) ; \ |
4342
9f3aa1172803
6905705: Fix broken exit code values in jdk/test/Makefile
ohair
parents:
4335
diff
changeset
|
317 |
$(TESTEXIT) \ |
4187
d7111a88f0ec
6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents:
2945
diff
changeset
|
318 |
) |
2400
0d7007d99b0f
6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents:
2
diff
changeset
|
319 |
|
0d7007d99b0f
6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents:
2
diff
changeset
|
320 |
################################################################ |
2 | 321 |
|
2400
0d7007d99b0f
6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents:
2
diff
changeset
|
322 |
# 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
|
323 |
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
|
324 |
@$(ECHO) "Testing completed successfully" |
2 | 325 |
|
2400
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 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
|
327 |
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
|
328 |
@$(MKDIR) -p $(ABS_TEST_OUTPUT_DIR) |
5813
8e455cd3e807
6962617: Testcase changes, cleanup of problem list for jdk_tools targets
ohair
parents:
5627
diff
changeset
|
329 |
@$(MKDIR) -p `$(DIRNAME) $(ARCHIVE_BUNDLE)` |
2 | 330 |
|
331 |
# Cleanup |
|
332 |
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
|
333 |
$(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
|
334 |
$(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
|
335 |
|
0d7007d99b0f
6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents:
2
diff
changeset
|
336 |
################################################################ |
0d7007d99b0f
6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents:
2
diff
changeset
|
337 |
|
0d7007d99b0f
6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents:
2
diff
changeset
|
338 |
# 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
|
339 |
|
0d7007d99b0f
6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents:
2
diff
changeset
|
340 |
# Expect JT_HOME to be set for jtreg tests. (home for jtreg) |
4329
850b656a411e
6902666: Include closed tests in the test/Makefile jdk_* targets
ohair
parents:
4187
diff
changeset
|
341 |
ifndef JT_HOME |
850b656a411e
6902666: Include closed tests in the test/Makefile jdk_* targets
ohair
parents:
4187
diff
changeset
|
342 |
JT_HOME = $(SLASH_JAVA)/re/jtreg/4.0/promoted/latest/binaries/jtreg |
850b656a411e
6902666: Include closed tests in the test/Makefile jdk_* targets
ohair
parents:
4187
diff
changeset
|
343 |
ifdef JPRT_JTREG_HOME |
850b656a411e
6902666: Include closed tests in the test/Makefile jdk_* targets
ohair
parents:
4187
diff
changeset
|
344 |
JT_HOME = $(JPRT_JTREG_HOME) |
850b656a411e
6902666: Include closed tests in the test/Makefile jdk_* targets
ohair
parents:
4187
diff
changeset
|
345 |
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
|
346 |
endif |
0d7007d99b0f
6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents:
2
diff
changeset
|
347 |
|
0d7007d99b0f
6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents:
2
diff
changeset
|
348 |
# 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
|
349 |
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
|
350 |
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
|
351 |
endif |
d7111a88f0ec
6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents:
2945
diff
changeset
|
352 |
|
d7111a88f0ec
6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents:
2945
diff
changeset
|
353 |
# 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
|
354 |
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
|
355 |
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
|
356 |
endif |
d7111a88f0ec
6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents:
2945
diff
changeset
|
357 |
# 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
|
358 |
ifeq ($(USE_JTREG_SAMEVM),true) |
4517
48e5b69c7e27
6909373: Add -ea to the testing done by jdk/test/Makefile
ohair
parents:
4514
diff
changeset
|
359 |
JTREG_SAMEVM_OPTION = -samevm |
48e5b69c7e27
6909373: Add -ea to the testing done by jdk/test/Makefile
ohair
parents:
4514
diff
changeset
|
360 |
EXTRA_JTREG_OPTIONS += $(JTREG_SAMEVM_OPTION) $(JAVA_ARGS) $(JAVA_ARGS:%=-vmoption:%) |
4187
d7111a88f0ec
6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents:
2945
diff
changeset
|
361 |
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
|
362 |
else |
d7111a88f0ec
6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents:
2945
diff
changeset
|
363 |
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
|
364 |
endif |
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 |
# 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
|
367 |
PROBLEM_LIST=ProblemList.txt |
4329
850b656a411e
6902666: Include closed tests in the test/Makefile jdk_* targets
ohair
parents:
4187
diff
changeset
|
368 |
PROBLEM_LISTS=$(PROBLEM_LIST) $(wildcard closed/$(PROBLEM_LIST)) |
4187
d7111a88f0ec
6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents:
2945
diff
changeset
|
369 |
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
|
370 |
|
d7111a88f0ec
6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents:
2945
diff
changeset
|
371 |
# 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
|
372 |
ifdef NO_EXCLUDES |
4329
850b656a411e
6902666: Include closed tests in the test/Makefile jdk_* targets
ohair
parents:
4187
diff
changeset
|
373 |
$(EXCLUDELIST): $(PROBLEM_LISTS) $(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
|
374 |
@$(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
|
375 |
else |
4329
850b656a411e
6902666: Include closed tests in the test/Makefile jdk_* targets
ohair
parents:
4187
diff
changeset
|
376 |
$(EXCLUDELIST): $(PROBLEM_LISTS) $(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
|
377 |
@$(RM) $@ $@.temp1 $@.temp2 |
4329
850b656a411e
6902666: Include closed tests in the test/Makefile jdk_* targets
ohair
parents:
4187
diff
changeset
|
378 |
@(($(CAT) $(PROBLEM_LISTS) | $(EGREP) -- '$(OS_NAME)-all' ) ;\ |
5813
8e455cd3e807
6962617: Testcase changes, cleanup of problem list for jdk_tools targets
ohair
parents:
5627
diff
changeset
|
379 |
($(CAT) $(PROBLEM_LISTS) | $(EGREP) -- '$(PLATFORM_OS)' ) ;\ |
5149
efce9634bfc0
6933294: Fix some test/Makefile issues around Linux ARCH settings, better defaults
ohair
parents:
4991
diff
changeset
|
380 |
($(CAT) $(PROBLEM_LISTS) | $(EGREP) -- '$(OS_NAME)-$(OS_ARCH2)' ) ;\ |
4329
850b656a411e
6902666: Include closed tests in the test/Makefile jdk_* targets
ohair
parents:
4187
diff
changeset
|
381 |
($(CAT) $(PROBLEM_LISTS) | $(EGREP) -- '$(OS_NAME)-$(OS_VERSION)') ;\ |
850b656a411e
6902666: Include closed tests in the test/Makefile jdk_* targets
ohair
parents:
4187
diff
changeset
|
382 |
($(CAT) $(PROBLEM_LISTS) | $(EGREP) -- 'generic-$(OS_ARCH)' ) ;\ |
5149
efce9634bfc0
6933294: Fix some test/Makefile issues around Linux ARCH settings, better defaults
ohair
parents:
4991
diff
changeset
|
383 |
($(CAT) $(PROBLEM_LISTS) | $(EGREP) -- 'generic-$(OS_ARCH2)' ) ;\ |
4329
850b656a411e
6902666: Include closed tests in the test/Makefile jdk_* targets
ohair
parents:
4187
diff
changeset
|
384 |
($(CAT) $(PROBLEM_LISTS) | $(EGREP) -- 'generic-all' ) ;\ |
850b656a411e
6902666: Include closed tests in the test/Makefile jdk_* targets
ohair
parents:
4187
diff
changeset
|
385 |
($(ECHO) "#") ;\ |
4187
d7111a88f0ec
6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents:
2945
diff
changeset
|
386 |
) | $(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
|
387 |
| $(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
|
388 |
@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
|
389 |
( ( $(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
|
390 |
done |
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) "# 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
|
392 |
@( $(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
|
393 |
@$(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
|
394 |
endif |
0d7007d99b0f
6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents:
2
diff
changeset
|
395 |
|
4329
850b656a411e
6902666: Include closed tests in the test/Makefile jdk_* targets
ohair
parents:
4187
diff
changeset
|
396 |
# Select list of directories that exist |
850b656a411e
6902666: Include closed tests in the test/Makefile jdk_* targets
ohair
parents:
4187
diff
changeset
|
397 |
define TestDirs |
850b656a411e
6902666: Include closed tests in the test/Makefile jdk_* targets
ohair
parents:
4187
diff
changeset
|
398 |
$(foreach i,$1,$(wildcard ${i})) $(foreach i,$1,$(wildcard closed/${i})) |
850b656a411e
6902666: Include closed tests in the test/Makefile jdk_* targets
ohair
parents:
4187
diff
changeset
|
399 |
endef |
4187
d7111a88f0ec
6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents:
2945
diff
changeset
|
400 |
# 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
|
401 |
define RunSamevmBatch |
4329
850b656a411e
6902666: Include closed tests in the test/Makefile jdk_* targets
ohair
parents:
4187
diff
changeset
|
402 |
$(ECHO) "Running tests in samevm mode: $(call TestDirs, $?)" |
850b656a411e
6902666: Include closed tests in the test/Makefile jdk_* targets
ohair
parents:
4187
diff
changeset
|
403 |
$(MAKE) TESTDIRS="$(call TestDirs, $?)" USE_JTREG_SAMEVM=true UNIQUE_DIR=$@ jtreg_tests |
4187
d7111a88f0ec
6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents:
2945
diff
changeset
|
404 |
endef |
d7111a88f0ec
6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents:
2945
diff
changeset
|
405 |
define RunOthervmBatch |
4329
850b656a411e
6902666: Include closed tests in the test/Makefile jdk_* targets
ohair
parents:
4187
diff
changeset
|
406 |
$(ECHO) "Running tests in othervm mode: $(call TestDirs, $?)" |
850b656a411e
6902666: Include closed tests in the test/Makefile jdk_* targets
ohair
parents:
4187
diff
changeset
|
407 |
$(MAKE) TESTDIRS="$(call TestDirs, $?)" USE_JTREG_SAMEVM=false UNIQUE_DIR=$@ jtreg_tests |
4187
d7111a88f0ec
6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents:
2945
diff
changeset
|
408 |
endef |
d7111a88f0ec
6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents:
2945
diff
changeset
|
409 |
define SummaryInfo |
4514 | 410 |
$(ECHO) "########################################################" |
4187
d7111a88f0ec
6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents:
2945
diff
changeset
|
411 |
$(CAT) $(?:%=$(ABS_TEST_OUTPUT_DIR)/%/$(STATS_TXT_NAME)) |
4514 | 412 |
$(ECHO) "########################################################" |
4187
d7111a88f0ec
6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents:
2945
diff
changeset
|
413 |
endef |
d7111a88f0ec
6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents:
2945
diff
changeset
|
414 |
|
d7111a88f0ec
6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents:
2945
diff
changeset
|
415 |
# ------------------------------------------------------------------ |
d7111a88f0ec
6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents:
2945
diff
changeset
|
416 |
|
d7111a88f0ec
6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents:
2945
diff
changeset
|
417 |
# 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
|
418 |
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
|
419 |
|
d7111a88f0ec
6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents:
2945
diff
changeset
|
420 |
# 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
|
421 |
# 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
|
422 |
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
|
423 |
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
|
424 |
$(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
|
425 |
|
d7111a88f0ec
6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents:
2945
diff
changeset
|
426 |
# 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
|
427 |
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
|
428 |
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
|
429 |
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
|
430 |
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
|
431 |
$(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
|
432 |
|
d7111a88f0ec
6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents:
2945
diff
changeset
|
433 |
# 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
|
434 |
# 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
|
435 |
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
|
436 |
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
|
437 |
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
|
438 |
$(call RunOthervmBatch) |
4514 | 439 |
|
440 |
# Stable othervm testruns (minus items from PROBLEM_LIST) |
|
441 |
# Using samevm has serious problems with these tests |
|
4187
d7111a88f0ec
6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents:
2945
diff
changeset
|
442 |
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
|
443 |
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
|
444 |
$(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
|
445 |
|
4514 | 446 |
# All beans tests |
4329
850b656a411e
6902666: Include closed tests in the test/Makefile jdk_* targets
ohair
parents:
4187
diff
changeset
|
447 |
jdk_beans: jdk_beans1 jdk_beans2 jdk_beans3 |
850b656a411e
6902666: Include closed tests in the test/Makefile jdk_* targets
ohair
parents:
4187
diff
changeset
|
448 |
@$(SummaryInfo) |
850b656a411e
6902666: Include closed tests in the test/Makefile jdk_* targets
ohair
parents:
4187
diff
changeset
|
449 |
|
4187
d7111a88f0ec
6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents:
2945
diff
changeset
|
450 |
# 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
|
451 |
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
|
452 |
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
|
453 |
$(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
|
454 |
|
d7111a88f0ec
6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents:
2945
diff
changeset
|
455 |
# 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
|
456 |
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
|
457 |
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
|
458 |
$(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
|
459 |
|
d7111a88f0ec
6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents:
2945
diff
changeset
|
460 |
# 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
|
461 |
# 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
|
462 |
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
|
463 |
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
|
464 |
$(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
|
465 |
|
d7111a88f0ec
6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents:
2945
diff
changeset
|
466 |
# 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
|
467 |
# 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
|
468 |
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
|
469 |
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
|
470 |
$(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
|
471 |
|
4514 | 472 |
# All management tests |
4329
850b656a411e
6902666: Include closed tests in the test/Makefile jdk_* targets
ohair
parents:
4187
diff
changeset
|
473 |
jdk_management: jdk_management1 jdk_management2 |
850b656a411e
6902666: Include closed tests in the test/Makefile jdk_* targets
ohair
parents:
4187
diff
changeset
|
474 |
@$(SummaryInfo) |
850b656a411e
6902666: Include closed tests in the test/Makefile jdk_* targets
ohair
parents:
4187
diff
changeset
|
475 |
|
4187
d7111a88f0ec
6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents:
2945
diff
changeset
|
476 |
# 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
|
477 |
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
|
478 |
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
|
479 |
$(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
|
480 |
|
d7111a88f0ec
6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents:
2945
diff
changeset
|
481 |
# 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
|
482 |
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
|
483 |
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
|
484 |
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
|
485 |
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
|
486 |
$(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
|
487 |
|
d7111a88f0ec
6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents:
2945
diff
changeset
|
488 |
# 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
|
489 |
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
|
490 |
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
|
491 |
$(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
|
492 |
|
d7111a88f0ec
6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents:
2945
diff
changeset
|
493 |
# 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
|
494 |
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
|
495 |
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
|
496 |
$(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
|
497 |
|
5970
d4e98bbfb0be
6963027: TEST_BUG: channels and buffer tests need to run in samevm mode
alanb
parents:
5813
diff
changeset
|
498 |
# Stable samevm testruns (minus items from PROBLEM_LIST) |
4187
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_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
|
500 |
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
|
501 |
java/nio/channels java/nio/BufferPoolMXBean java/nio/MappedByteBuffer |
5611
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
5600
diff
changeset
|
502 |
$(call SharedLibraryPermissions,java/nio/channels) |
5970
d4e98bbfb0be
6963027: TEST_BUG: channels and buffer tests need to run in samevm mode
alanb
parents:
5813
diff
changeset
|
503 |
$(call RunSamevmBatch) |
4514 | 504 |
|
5970
d4e98bbfb0be
6963027: TEST_BUG: channels and buffer tests need to run in samevm mode
alanb
parents:
5813
diff
changeset
|
505 |
# Stable samevm testruns (minus items from PROBLEM_LIST) |
4187
d7111a88f0ec
6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents:
2945
diff
changeset
|
506 |
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
|
507 |
jdk_nio3: com/sun/nio sun/nio |
5970
d4e98bbfb0be
6963027: TEST_BUG: channels and buffer tests need to run in samevm mode
alanb
parents:
5813
diff
changeset
|
508 |
$(call RunSamevmBatch) |
4187
d7111a88f0ec
6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents:
2945
diff
changeset
|
509 |
|
4514 | 510 |
# All nio tests |
4329
850b656a411e
6902666: Include closed tests in the test/Makefile jdk_* targets
ohair
parents:
4187
diff
changeset
|
511 |
jdk_nio: jdk_nio1 jdk_nio2 jdk_nio3 |
850b656a411e
6902666: Include closed tests in the test/Makefile jdk_* targets
ohair
parents:
4187
diff
changeset
|
512 |
@$(SummaryInfo) |
850b656a411e
6902666: Include closed tests in the test/Makefile jdk_* targets
ohair
parents:
4187
diff
changeset
|
513 |
|
4187
d7111a88f0ec
6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents:
2945
diff
changeset
|
514 |
# 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
|
515 |
# 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
|
516 |
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
|
517 |
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
|
518 |
$(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
|
519 |
|
d7111a88f0ec
6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents:
2945
diff
changeset
|
520 |
# 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
|
521 |
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
|
522 |
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
|
523 |
$(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
|
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 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
|
526 |
# 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
|
527 |
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
|
528 |
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
|
529 |
$(call RunOthervmBatch) |
4514 | 530 |
|
531 |
# Stable othervm testruns (minus items from PROBLEM_LIST) |
|
532 |
# Using samevm has serious problems with these tests |
|
4187
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_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
|
534 |
jdk_security3: com/sun/security lib/security javax/security sun/security |
5611
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
5600
diff
changeset
|
535 |
$(call SharedLibraryPermissions,sun/security) |
4187
d7111a88f0ec
6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents:
2945
diff
changeset
|
536 |
$(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
|
537 |
|
4514 | 538 |
# All security tests |
4329
850b656a411e
6902666: Include closed tests in the test/Makefile jdk_* targets
ohair
parents:
4187
diff
changeset
|
539 |
jdk_security: jdk_security1 jdk_security2 jdk_security3 |
850b656a411e
6902666: Include closed tests in the test/Makefile jdk_* targets
ohair
parents:
4187
diff
changeset
|
540 |
@$(SummaryInfo) |
850b656a411e
6902666: Include closed tests in the test/Makefile jdk_* targets
ohair
parents:
4187
diff
changeset
|
541 |
|
4187
d7111a88f0ec
6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents:
2945
diff
changeset
|
542 |
# 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
|
543 |
# 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
|
544 |
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
|
545 |
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
|
546 |
$(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
|
547 |
|
d7111a88f0ec
6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents:
2945
diff
changeset
|
548 |
# 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
|
549 |
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
|
550 |
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
|
551 |
$(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
|
552 |
|
4514 | 553 |
# Stable samevm testruns (minus items from PROBLEM_LIST) |
4187
d7111a88f0ec
6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents:
2945
diff
changeset
|
554 |
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
|
555 |
jdk_tools1: com/sun/jdi |
4335
365eb4449319
6904183: Fix jdk/test/com/sun/jdi tests to run with -samevm
ohair
parents:
4329
diff
changeset
|
556 |
$(call RunSamevmBatch) |
4514 | 557 |
|
558 |
# Stable othervm testruns (minus items from PROBLEM_LIST) |
|
559 |
# Using samevm has serious problems with these tests |
|
4187
d7111a88f0ec
6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents:
2945
diff
changeset
|
560 |
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
|
561 |
jdk_tools2: com/sun/tools sun/jvmstat sun/tools tools vm com/sun/servicetag com/sun/tracing |
5611
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
5600
diff
changeset
|
562 |
$(call SharedLibraryPermissions,tools/launcher) |
5813
8e455cd3e807
6962617: Testcase changes, cleanup of problem list for jdk_tools targets
ohair
parents:
5627
diff
changeset
|
563 |
$(call RunSamevmBatch) |
4187
d7111a88f0ec
6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents:
2945
diff
changeset
|
564 |
|
4514 | 565 |
# All tools tests |
4329
850b656a411e
6902666: Include closed tests in the test/Makefile jdk_* targets
ohair
parents:
4187
diff
changeset
|
566 |
jdk_tools: jdk_tools1 jdk_tools2 |
850b656a411e
6902666: Include closed tests in the test/Makefile jdk_* targets
ohair
parents:
4187
diff
changeset
|
567 |
@$(SummaryInfo) |
850b656a411e
6902666: Include closed tests in the test/Makefile jdk_* targets
ohair
parents:
4187
diff
changeset
|
568 |
|
4187
d7111a88f0ec
6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents:
2945
diff
changeset
|
569 |
# 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
|
570 |
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
|
571 |
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
|
572 |
$(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
|
573 |
|
d7111a88f0ec
6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents:
2945
diff
changeset
|
574 |
# ------------------------------------------------------------------ |
d7111a88f0ec
6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents:
2945
diff
changeset
|
575 |
|
d7111a88f0ec
6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents:
2945
diff
changeset
|
576 |
# Run all tests |
4514 | 577 |
FILTER_OUT_LIST=jdk_awt jdk_rmi jdk_swing |
578 |
JDK_ALL_STABLE_TARGETS := $(filter-out $(FILTER_OUT_LIST), $(JDK_ALL_TARGETS)) |
|
579 |
jdk_all: $(JDK_ALL_STABLE_TARGETS) |
|
4187
d7111a88f0ec
6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents:
2945
diff
changeset
|
580 |
@$(SummaryInfo) |
d7111a88f0ec
6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents:
2945
diff
changeset
|
581 |
|
d7111a88f0ec
6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents:
2945
diff
changeset
|
582 |
# 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
|
583 |
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
|
584 |
|
d7111a88f0ec
6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents:
2945
diff
changeset
|
585 |
# ------------------------------------------------------------------ |
d7111a88f0ec
6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents:
2945
diff
changeset
|
586 |
|
2400
0d7007d99b0f
6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents:
2
diff
changeset
|
587 |
# 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
|
588 |
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
|
589 |
# 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
|
590 |
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
|
591 |
# 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
|
592 |
JTREG_BASIC_OPTIONS += -a |
4517
48e5b69c7e27
6909373: Add -ea to the testing done by jdk/test/Makefile
ohair
parents:
4514
diff
changeset
|
593 |
# Always turn on assertions |
48e5b69c7e27
6909373: Add -ea to the testing done by jdk/test/Makefile
ohair
parents:
4514
diff
changeset
|
594 |
JTREG_ASSERT_OPTION = -ea -esa |
48e5b69c7e27
6909373: Add -ea to the testing done by jdk/test/Makefile
ohair
parents:
4514
diff
changeset
|
595 |
JTREG_BASIC_OPTIONS += $(JTREG_ASSERT_OPTION) |
4187
d7111a88f0ec
6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents:
2945
diff
changeset
|
596 |
# 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
|
597 |
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
|
598 |
# 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
|
599 |
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
|
600 |
# Ignore tests are not run and completely silent about it |
4517
48e5b69c7e27
6909373: Add -ea to the testing done by jdk/test/Makefile
ohair
parents:
4514
diff
changeset
|
601 |
JTREG_IGNORE_OPTION = -ignore:quiet |
48e5b69c7e27
6909373: Add -ea to the testing done by jdk/test/Makefile
ohair
parents:
4514
diff
changeset
|
602 |
JTREG_BASIC_OPTIONS += $(JTREG_IGNORE_OPTION) |
4514 | 603 |
# Multiple by 4 the timeout numbers |
4517
48e5b69c7e27
6909373: Add -ea to the testing done by jdk/test/Makefile
ohair
parents:
4514
diff
changeset
|
604 |
JTREG_TIMEOUT_OPTION = -timeoutFactor:4 |
48e5b69c7e27
6909373: Add -ea to the testing done by jdk/test/Makefile
ohair
parents:
4514
diff
changeset
|
605 |
JTREG_BASIC_OPTIONS += $(JTREG_TIMEOUT_OPTION) |
4187
d7111a88f0ec
6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents:
2945
diff
changeset
|
606 |
# Boost the max memory for jtreg to avoid gc thrashing |
4517
48e5b69c7e27
6909373: Add -ea to the testing done by jdk/test/Makefile
ohair
parents:
4514
diff
changeset
|
607 |
JTREG_MEMORY_OPTION = -J-Xmx512m |
48e5b69c7e27
6909373: Add -ea to the testing done by jdk/test/Makefile
ohair
parents:
4514
diff
changeset
|
608 |
JTREG_BASIC_OPTIONS += $(JTREG_MEMORY_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
|
609 |
|
4187
d7111a88f0ec
6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents:
2945
diff
changeset
|
610 |
# 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
|
611 |
$(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
|
612 |
|
d7111a88f0ec
6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents:
2945
diff
changeset
|
613 |
# 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
|
614 |
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
|
615 |
@$(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
|
616 |
| $(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
|
617 |
| $(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
|
618 |
( \ |
d7111a88f0ec
6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents:
2945
diff
changeset
|
619 |
( 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
|
620 |
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
|
621 |
$(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
|
622 |
$(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
|
623 |
-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
|
624 |
-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
|
625 |
-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
|
626 |
-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
|
627 |
$(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
|
628 |
$(TESTDIRS) \ |
d7111a88f0ec
6888927: Fix jdk jtreg tests to indicate which ones need othervm, allow for use of samevm option
ohair
parents:
2945
diff
changeset
|
629 |
) ; $(BUNDLE_UP_AND_EXIT) \ |
4342
9f3aa1172803
6905705: Fix broken exit code values in jdk/test/Makefile
ohair
parents:
4335
diff
changeset
|
630 |
) 2>&1 | $(TEE) $(ABS_TEST_OUTPUT_DIR)/output.txt ; $(TESTEXIT) |
2400
0d7007d99b0f
6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents:
2
diff
changeset
|
631 |
|
5611
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
5600
diff
changeset
|
632 |
# Rule that may change execute permissions on shared library files. |
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
5600
diff
changeset
|
633 |
# Files in repositories should never have execute permissions, but there |
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
5600
diff
changeset
|
634 |
# are some tests that have pre-built shared libraries, and these windows |
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
5600
diff
changeset
|
635 |
# dll files must have execute permission. Adding execute permission |
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
5600
diff
changeset
|
636 |
# may happen automatically on windows when using certain versions of mercurial |
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
5600
diff
changeset
|
637 |
# but it cannot be guaranteed. And blindly adding execute permission might |
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
5600
diff
changeset
|
638 |
# be seen as a mercurial 'change', so we avoid adding execute permission to |
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
5600
diff
changeset
|
639 |
# repository files. But testing from a plain source tree needs the chmod a+rx. |
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
5600
diff
changeset
|
640 |
# Used on select directories and applying the chmod to all shared libraries |
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
5600
diff
changeset
|
641 |
# not just dll files. On windows, this may not work with MKS if the files |
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
5600
diff
changeset
|
642 |
# were installed with CYGWIN unzip or untar (MKS chmod may not do anything). |
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
5600
diff
changeset
|
643 |
# And with CYGWIN and sshd service, you may need CYGWIN=ntsec for this to work. |
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
5600
diff
changeset
|
644 |
# |
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
5600
diff
changeset
|
645 |
shared_library_permissions: $(SHARED_LIBRARY_DIR) |
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
5600
diff
changeset
|
646 |
if [ ! -d $(TEST_ROOT)/../.hg ] ; then \ |
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
5600
diff
changeset
|
647 |
$(FIND) $< \( -name \*.dll -o -name \*.DLL -o -name \*.so \) \ |
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
5600
diff
changeset
|
648 |
-exec $(CHMOD) a+rx {} \; ; \ |
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
5600
diff
changeset
|
649 |
fi |
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
5600
diff
changeset
|
650 |
|
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
5600
diff
changeset
|
651 |
PHONY_LIST += jtreg_tests shared_library_permissions |
2400
0d7007d99b0f
6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents:
2
diff
changeset
|
652 |
|
0d7007d99b0f
6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents:
2
diff
changeset
|
653 |
################################################################ |
0d7007d99b0f
6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents:
2
diff
changeset
|
654 |
|
0d7007d99b0f
6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents:
2
diff
changeset
|
655 |
# packtest |
0d7007d99b0f
6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents:
2
diff
changeset
|
656 |
|
0d7007d99b0f
6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents:
2
diff
changeset
|
657 |
# 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
|
658 |
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
|
659 |
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
|
660 |
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
|
661 |
endif |
0d7007d99b0f
6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents:
2
diff
changeset
|
662 |
|
0d7007d99b0f
6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents:
2
diff
changeset
|
663 |
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
|
664 |
( $(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
|
665 |
$(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
|
666 |
-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
|
667 |
$(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
|
668 |
$(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
|
669 |
-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
|
670 |
$(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
|
671 |
$(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
|
672 |
) ; $(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
|
673 |
|
0d7007d99b0f
6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents:
2
diff
changeset
|
674 |
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
|
675 |
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
|
676 |
|
0d7007d99b0f
6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents:
2
diff
changeset
|
677 |
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
|
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 |
################################################################ |
0d7007d99b0f
6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents:
2
diff
changeset
|
680 |
|
2930
58a6440b92dc
6829636: test/java/util/logging/LoggingDeadlock2.java is flaky
mchung
parents:
2400
diff
changeset
|
681 |
# perftest to collect statistics |
58a6440b92dc
6829636: test/java/util/logging/LoggingDeadlock2.java is flaky
mchung
parents:
2400
diff
changeset
|
682 |
|
58a6440b92dc
6829636: test/java/util/logging/LoggingDeadlock2.java is flaky
mchung
parents:
2400
diff
changeset
|
683 |
# Expect JPRT to set JPRT_PACKTEST_HOME. |
5611
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
5600
diff
changeset
|
684 |
PERFTEST_HOME = $(TEST_ROOT)/perf |
2930
58a6440b92dc
6829636: test/java/util/logging/LoggingDeadlock2.java is flaky
mchung
parents:
2400
diff
changeset
|
685 |
ifdef JPRT_PERFTEST_HOME |
58a6440b92dc
6829636: test/java/util/logging/LoggingDeadlock2.java is flaky
mchung
parents:
2400
diff
changeset
|
686 |
PERFTEST_HOME = $(JPRT_PERFTEST_HOME) |
58a6440b92dc
6829636: test/java/util/logging/LoggingDeadlock2.java is flaky
mchung
parents:
2400
diff
changeset
|
687 |
endif |
58a6440b92dc
6829636: test/java/util/logging/LoggingDeadlock2.java is flaky
mchung
parents:
2400
diff
changeset
|
688 |
|
58a6440b92dc
6829636: test/java/util/logging/LoggingDeadlock2.java is flaky
mchung
parents:
2400
diff
changeset
|
689 |
perftest: ( $(PERFTEST_HOME)/perftest \ |
58a6440b92dc
6829636: test/java/util/logging/LoggingDeadlock2.java is flaky
mchung
parents:
2400
diff
changeset
|
690 |
-t $(shell $(GETMIXEDPATH) "$(PRODUCT_HOME)") \ |
58a6440b92dc
6829636: test/java/util/logging/LoggingDeadlock2.java is flaky
mchung
parents:
2400
diff
changeset
|
691 |
-w $(shell $(GETMIXEDPATH) "$(ABS_TEST_OUTPUT_DIR)") \ |
58a6440b92dc
6829636: test/java/util/logging/LoggingDeadlock2.java is flaky
mchung
parents:
2400
diff
changeset
|
692 |
-h $(PERFTEST_HOME) \ |
58a6440b92dc
6829636: test/java/util/logging/LoggingDeadlock2.java is flaky
mchung
parents:
2400
diff
changeset
|
693 |
) ; $(BUNDLE_UP_AND_EXIT) |
58a6440b92dc
6829636: test/java/util/logging/LoggingDeadlock2.java is flaky
mchung
parents:
2400
diff
changeset
|
694 |
|
58a6440b92dc
6829636: test/java/util/logging/LoggingDeadlock2.java is flaky
mchung
parents:
2400
diff
changeset
|
695 |
|
58a6440b92dc
6829636: test/java/util/logging/LoggingDeadlock2.java is flaky
mchung
parents:
2400
diff
changeset
|
696 |
PHONY_LIST += perftest |
58a6440b92dc
6829636: test/java/util/logging/LoggingDeadlock2.java is flaky
mchung
parents:
2400
diff
changeset
|
697 |
|
58a6440b92dc
6829636: test/java/util/logging/LoggingDeadlock2.java is flaky
mchung
parents:
2400
diff
changeset
|
698 |
################################################################ |
58a6440b92dc
6829636: test/java/util/logging/LoggingDeadlock2.java is flaky
mchung
parents:
2400
diff
changeset
|
699 |
|
2400
0d7007d99b0f
6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents:
2
diff
changeset
|
700 |
# 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
|
701 |
|
0d7007d99b0f
6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents:
2
diff
changeset
|
702 |
# 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
|
703 |
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
|
704 |
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
|
705 |
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
|
706 |
endif |
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 |
# 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
|
709 |
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
|
710 |
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
|
711 |
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
|
712 |
endif |
0d7007d99b0f
6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents:
2
diff
changeset
|
713 |
|
0d7007d99b0f
6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents:
2
diff
changeset
|
714 |
# 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
|
715 |
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
|
716 |
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
|
717 |
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
|
718 |
endif |
0d7007d99b0f
6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents:
2
diff
changeset
|
719 |
|
0d7007d99b0f
6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents:
2
diff
changeset
|
720 |
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
|
721 |
|
0d7007d99b0f
6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents:
2
diff
changeset
|
722 |
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
|
723 |
$(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
|
724 |
( $(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
|
725 |
$(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
|
726 |
-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
|
727 |
-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
|
728 |
-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
|
729 |
-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
|
730 |
-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
|
731 |
$(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
|
732 |
$(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
|
733 |
$(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
|
734 |
$(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
|
735 |
) ; $(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
|
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 |
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
|
738 |
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
|
739 |
|
0d7007d99b0f
6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents:
2
diff
changeset
|
740 |
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
|
741 |
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
|
742 |
|
0d7007d99b0f
6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents:
2
diff
changeset
|
743 |
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
|
744 |
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
|
745 |
|
0d7007d99b0f
6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents:
2
diff
changeset
|
746 |
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
|
747 |
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
|
748 |
|
0d7007d99b0f
6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents:
2
diff
changeset
|
749 |
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
|
750 |
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
|
751 |
|
0d7007d99b0f
6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents:
2
diff
changeset
|
752 |
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
|
753 |
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
|
754 |
|
0d7007d99b0f
6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents:
2
diff
changeset
|
755 |
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
|
756 |
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
|
757 |
|
0d7007d99b0f
6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents:
2
diff
changeset
|
758 |
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
|
759 |
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
|
760 |
|
0d7007d99b0f
6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents:
2
diff
changeset
|
761 |
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
|
762 |
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
|
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 |
################################################################ |
0d7007d99b0f
6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents:
2
diff
changeset
|
765 |
|
0d7007d99b0f
6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents:
2
diff
changeset
|
766 |
# jck tests |
2 | 767 |
|
2400
0d7007d99b0f
6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents:
2
diff
changeset
|
768 |
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
|
769 |
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
|
770 |
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
|
771 |
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
|
772 |
|
0d7007d99b0f
6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents:
2
diff
changeset
|
773 |
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
|
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 |
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
|
776 |
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
|
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 |
$(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
|
779 |
$(RM) $@ |
0d7007d99b0f
6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents:
2
diff
changeset
|
780 |
$(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
|
781 |
$(CP) $< $@ |
0d7007d99b0f
6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents:
2
diff
changeset
|
782 |
|
0d7007d99b0f
6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents:
2
diff
changeset
|
783 |
$(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
|
784 |
$(RM) $@ |
0d7007d99b0f
6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents:
2
diff
changeset
|
785 |
$(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
|
786 |
$(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
|
787 |
$(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
|
788 |
$(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
|
789 |
$(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
|
790 |
|
0d7007d99b0f
6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents:
2
diff
changeset
|
791 |
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
|
792 |
$(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
|
793 |
( $(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
|
794 |
-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
|
795 |
-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
|
796 |
-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
|
797 |
-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
|
798 |
-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
|
799 |
-runtests \ |
0d7007d99b0f
6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents:
2
diff
changeset
|
800 |
-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
|
801 |
) ; $(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
|
802 |
|
0d7007d99b0f
6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents:
2
diff
changeset
|
803 |
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
|
804 |
|
0d7007d99b0f
6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents:
2
diff
changeset
|
805 |
################################################################ |
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 |
# 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
|
808 |
|
0d7007d99b0f
6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents:
2
diff
changeset
|
809 |
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
|
810 |
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
|
811 |
|
0d7007d99b0f
6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents:
2
diff
changeset
|
812 |
# 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
|
813 |
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
|
814 |
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
|
815 |
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
|
816 |
endif |
0d7007d99b0f
6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents:
2
diff
changeset
|
817 |
|
0d7007d99b0f
6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents:
2
diff
changeset
|
818 |
# 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
|
819 |
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
|
820 |
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
|
821 |
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
|
822 |
endif |
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 |
# 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
|
825 |
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
|
826 |
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
|
827 |
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
|
828 |
endif |
0d7007d99b0f
6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents:
2
diff
changeset
|
829 |
|
0d7007d99b0f
6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents:
2
diff
changeset
|
830 |
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
|
831 |
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
|
832 |
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
|
833 |
|
0d7007d99b0f
6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents:
2
diff
changeset
|
834 |
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
|
835 |
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
|
836 |
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
|
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 |
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
|
839 |
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
|
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 |
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
|
842 |
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
|
843 |
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
|
844 |
|
0d7007d99b0f
6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents:
2
diff
changeset
|
845 |
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
|
846 |
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
|
847 |
|
0d7007d99b0f
6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents:
2
diff
changeset
|
848 |
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
|
849 |
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
|
850 |
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
|
851 |
|
0d7007d99b0f
6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents:
2
diff
changeset
|
852 |
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
|
853 |
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
|
854 |
|
0d7007d99b0f
6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents:
2
diff
changeset
|
855 |
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
|
856 |
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
|
857 |
|
0d7007d99b0f
6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents:
2
diff
changeset
|
858 |
################################################################ |
0d7007d99b0f
6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents:
2
diff
changeset
|
859 |
|
0d7007d99b0f
6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents:
2
diff
changeset
|
860 |
# 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
|
861 |
|
0d7007d99b0f
6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents:
2
diff
changeset
|
862 |
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
|
863 |
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
|
864 |
|
0d7007d99b0f
6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents:
2
diff
changeset
|
865 |
# 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
|
866 |
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
|
867 |
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
|
868 |
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
|
869 |
endif |
0d7007d99b0f
6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents:
2
diff
changeset
|
870 |
|
0d7007d99b0f
6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents:
2
diff
changeset
|
871 |
# 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
|
872 |
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
|
873 |
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
|
874 |
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
|
875 |
endif |
0d7007d99b0f
6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents:
2
diff
changeset
|
876 |
|
0d7007d99b0f
6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents:
2
diff
changeset
|
877 |
# 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
|
878 |
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
|
879 |
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
|
880 |
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
|
881 |
endif |
0d7007d99b0f
6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents:
2
diff
changeset
|
882 |
|
0d7007d99b0f
6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents:
2
diff
changeset
|
883 |
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
|
884 |
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
|
885 |
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
|
886 |
|
0d7007d99b0f
6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents:
2
diff
changeset
|
887 |
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
|
888 |
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
|
889 |
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
|
890 |
|
0d7007d99b0f
6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents:
2
diff
changeset
|
891 |
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
|
892 |
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
|
893 |
|
0d7007d99b0f
6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents:
2
diff
changeset
|
894 |
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
|
895 |
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
|
896 |
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
|
897 |
|
0d7007d99b0f
6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents:
2
diff
changeset
|
898 |
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
|
899 |
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
|
900 |
|
0d7007d99b0f
6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents:
2
diff
changeset
|
901 |
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
|
902 |
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
|
903 |
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
|
904 |
|
0d7007d99b0f
6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents:
2
diff
changeset
|
905 |
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
|
906 |
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
|
907 |
|
0d7007d99b0f
6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents:
2
diff
changeset
|
908 |
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
|
909 |
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
|
910 |
|
0d7007d99b0f
6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents:
2
diff
changeset
|
911 |
################################################################ |
2 | 912 |
|
913 |
# 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
|
914 |
.PHONY: all clean prep $(PHONY_LIST) |
2 | 915 |
|
2400
0d7007d99b0f
6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents:
2
diff
changeset
|
916 |
################################################################ |
0d7007d99b0f
6502548: test/Makefile needs to be setup to allow for JPRT testrules (NSK and JCK testing too?)
ohair
parents:
2
diff
changeset
|
917 |