author | iignatyev |
Fri, 02 Nov 2018 16:27:55 -0700 | |
changeset 52396 | e292e94b448a |
parent 52082 | c99e4c010022 |
permissions | -rw-r--r-- |
1 | 1 |
# |
48624
5f86c562a39e
8194636: Apply CONCURRENCY_FACTOR to max value in concurrency calculation
ctornqvi
parents:
48096
diff
changeset
|
2 |
# Copyright (c) 1995, 2018, Oracle and/or its affiliates. All rights reserved. |
1 | 3 |
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 |
# |
|
5 |
# This code is free software; you can redistribute it and/or modify it |
|
6 |
# under the terms of the GNU General Public License version 2 only, as |
|
51016 | 7 |
# published by the Free Software Foundation. |
1 | 8 |
# |
9 |
# This code is distributed in the hope that it will be useful, but WITHOUT |
|
10 |
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
11 |
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
12 |
# version 2 for more details (a copy is included in the LICENSE file that |
|
13 |
# accompanied this code). |
|
14 |
# |
|
15 |
# You should have received a copy of the GNU General Public License version |
|
16 |
# 2 along with this work; if not, write to the Free Software Foundation, |
|
17 |
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
18 |
# |
|
5547
f4b087cbb361
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
2868
diff
changeset
|
19 |
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
f4b087cbb361
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
2868
diff
changeset
|
20 |
# or visit www.oracle.com if you need additional information or have any |
f4b087cbb361
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
2868
diff
changeset
|
21 |
# questions. |
1132
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
22 |
# |
1 | 23 |
# |
24 |
||
42429 | 25 |
NATIVE_TEST_PATH := hotspot/jtreg/native |
1 | 26 |
|
42429 | 27 |
CLEAN_BEFORE_PREP := true |
12225 | 28 |
|
42429 | 29 |
USE_JTREG_VERSION := 4.1 |
30 |
||
31 |
USE_JTREG_ASSERT := false |
|
25628 | 32 |
|
42429 | 33 |
LIMIT_JTREG_VM_MEMORY := false |
38255
5784bccf53b0
8148244: Finalize and integrate GTest implementation
iignatyev
parents:
37299
diff
changeset
|
34 |
|
42429 | 35 |
IGNORE_MARKED_TESTS := true |
38255
5784bccf53b0
8148244: Finalize and integrate GTest implementation
iignatyev
parents:
37299
diff
changeset
|
36 |
|
42429 | 37 |
# Include the common base file with most of the logic |
47218 | 38 |
include ../../TestCommon.gmk |
1132
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
39 |
|
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
40 |
################################################################ |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
41 |
# Default make rule (runs jtreg_tests) |
25628 | 42 |
all: hotspot_all |
1132
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
43 |
@$(ECHO) "Testing completed successfully" |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
44 |
|
25628 | 45 |
# Support "hotspot_" prefixed test make targets (too) |
46 |
# The hotspot_% targets are used by the top level Makefile |
|
47 |
# Unless explicitly defined below, hotspot_<x> is interpreted as a jtreg test group name |
|
24433
492c1fb41098
8042804: Support invoking Hotspot tests from top level
mikael
parents:
22234
diff
changeset
|
48 |
hotspot_%: |
25628 | 49 |
$(ECHO) "Running tests: $@" |
50 |
$(MAKE) -j 1 TEST_SELECTION=":$@" UNIQUE_DIR=$@ jtreg_tests; |
|
24433
492c1fb41098
8042804: Support invoking Hotspot tests from top level
mikael
parents:
22234
diff
changeset
|
51 |
|
1132
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
52 |
################################################################ |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
53 |
|
30267 | 54 |
# Set up the directory in which the jvm directories live (client/, server/, etc.) |
55 |
ifeq ($(PLATFORM),windows) |
|
56 |
JVMS_DIR := $(PRODUCT_HOME)/bin |
|
42633
0c23e9d8fccf
8066474: Remove the lib/ directory from Linux and Solaris images
erikj
parents:
42045
diff
changeset
|
57 |
else |
30267 | 58 |
JVMS_DIR := $(PRODUCT_HOME)/lib |
59 |
endif |
|
60 |
||
61 |
# Use the existance of a directory as a sign that jvm variant is available |
|
62 |
CANDIDATE_JVM_VARIANTS := client minimal server |
|
63 |
JVM_VARIANTS := $(strip $(foreach x,$(CANDIDATE_JVM_VARIANTS),$(if $(wildcard $(JVMS_DIR)/$(x)),$(x)))) |
|
64 |
||
2868
051eb4af737f
6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents:
2105
diff
changeset
|
65 |
################################################################ |
051eb4af737f
6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents:
2105
diff
changeset
|
66 |
|
38255
5784bccf53b0
8148244: Finalize and integrate GTest implementation
iignatyev
parents:
37299
diff
changeset
|
67 |
# Run the native gtest tests from the test image |
5784bccf53b0
8148244: Finalize and integrate GTest implementation
iignatyev
parents:
37299
diff
changeset
|
68 |
|
42429 | 69 |
define NEWLINE |
70 |
||
71 |
||
72 |
endef |
|
73 |
||
74 |
||
38255
5784bccf53b0
8148244: Finalize and integrate GTest implementation
iignatyev
parents:
37299
diff
changeset
|
75 |
hotspot_gtest: |
5784bccf53b0
8148244: Finalize and integrate GTest implementation
iignatyev
parents:
37299
diff
changeset
|
76 |
$(foreach v, $(JVM_VARIANTS), \ |
5784bccf53b0
8148244: Finalize and integrate GTest implementation
iignatyev
parents:
37299
diff
changeset
|
77 |
$(MAKE) hotspot_gtest$v $(NEWLINE) ) |
5784bccf53b0
8148244: Finalize and integrate GTest implementation
iignatyev
parents:
37299
diff
changeset
|
78 |
|
5784bccf53b0
8148244: Finalize and integrate GTest implementation
iignatyev
parents:
37299
diff
changeset
|
79 |
hotspot_gtestserver hotspot_gtestclient hotspot_gtestminimal: hotspot_gtest%: |
5784bccf53b0
8148244: Finalize and integrate GTest implementation
iignatyev
parents:
37299
diff
changeset
|
80 |
$(TESTNATIVE_DIR)/hotspot/gtest/$*/gtestLauncher \ |
5784bccf53b0
8148244: Finalize and integrate GTest implementation
iignatyev
parents:
37299
diff
changeset
|
81 |
-jdk $(shell $(GETMIXEDPATH) "$(PRODUCT_HOME)") |
5784bccf53b0
8148244: Finalize and integrate GTest implementation
iignatyev
parents:
37299
diff
changeset
|
82 |
|
5784bccf53b0
8148244: Finalize and integrate GTest implementation
iignatyev
parents:
37299
diff
changeset
|
83 |
PHONY_LIST += hotspot_gtest hotspot_gtestserver hotspot_gtestclient \ |
5784bccf53b0
8148244: Finalize and integrate GTest implementation
iignatyev
parents:
37299
diff
changeset
|
84 |
hotspot_gtestminimal |