test/hotspot/jtreg/Makefile
author iignatyev
Fri, 02 Nov 2018 16:27:55 -0700
changeset 52396 e292e94b448a
parent 52082 c99e4c010022
permissions -rw-r--r--
8213058: remove ExecuteInternalVMTests and VerboseInternalVMTests flags Reviewed-by: erikj, dholmes, ihse
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
     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
489c9b5090e2 Initial load
duke
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
489c9b5090e2 Initial load
duke
parents:
diff changeset
     4
#
489c9b5090e2 Initial load
duke
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
489c9b5090e2 Initial load
duke
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
51016
a926b7737d3b 8206287: fix legal notice in hotspot tests
iignatyev
parents: 48677
diff changeset
     7
# published by the Free Software Foundation.
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
     8
#
489c9b5090e2 Initial load
duke
parents:
diff changeset
     9
# This code is distributed in the hope that it will be useful, but WITHOUT
489c9b5090e2 Initial load
duke
parents:
diff changeset
    10
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
489c9b5090e2 Initial load
duke
parents:
diff changeset
    11
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
489c9b5090e2 Initial load
duke
parents:
diff changeset
    12
# version 2 for more details (a copy is included in the LICENSE file that
489c9b5090e2 Initial load
duke
parents:
diff changeset
    13
# accompanied this code).
489c9b5090e2 Initial load
duke
parents:
diff changeset
    14
#
489c9b5090e2 Initial load
duke
parents:
diff changeset
    15
# You should have received a copy of the GNU General Public License version
489c9b5090e2 Initial load
duke
parents:
diff changeset
    16
# 2 along with this work; if not, write to the Free Software Foundation,
489c9b5090e2 Initial load
duke
parents:
diff changeset
    17
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    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
489c9b5090e2 Initial load
duke
parents:
diff changeset
    23
#
489c9b5090e2 Initial load
duke
parents:
diff changeset
    24
42429
2435ff181f94 8170629: Remove code duplication in test makefiles
ihse
parents: 42144
diff changeset
    25
NATIVE_TEST_PATH := hotspot/jtreg/native
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    26
42429
2435ff181f94 8170629: Remove code duplication in test makefiles
ihse
parents: 42144
diff changeset
    27
CLEAN_BEFORE_PREP := true
12225
232f136e7b60 7152791: wbapi tests fail on cygwin
mgerdin
parents: 12095
diff changeset
    28
42429
2435ff181f94 8170629: Remove code duplication in test makefiles
ihse
parents: 42144
diff changeset
    29
USE_JTREG_VERSION := 4.1
2435ff181f94 8170629: Remove code duplication in test makefiles
ihse
parents: 42144
diff changeset
    30
2435ff181f94 8170629: Remove code duplication in test makefiles
ihse
parents: 42144
diff changeset
    31
USE_JTREG_ASSERT := false
25628
ca4c7cff1573 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 24433
diff changeset
    32
42429
2435ff181f94 8170629: Remove code duplication in test makefiles
ihse
parents: 42144
diff changeset
    33
LIMIT_JTREG_VM_MEMORY := false
38255
5784bccf53b0 8148244: Finalize and integrate GTest implementation
iignatyev
parents: 37299
diff changeset
    34
42429
2435ff181f94 8170629: Remove code duplication in test makefiles
ihse
parents: 42144
diff changeset
    35
IGNORE_MARKED_TESTS := true
38255
5784bccf53b0 8148244: Finalize and integrate GTest implementation
iignatyev
parents: 37299
diff changeset
    36
42429
2435ff181f94 8170629: Remove code duplication in test makefiles
ihse
parents: 42144
diff changeset
    37
# Include the common base file with most of the logic
47218
918745561887 8187445: Forest Consolidation: Make tests work
erikj
parents: 47216
diff changeset
    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
ca4c7cff1573 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 24433
diff changeset
    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
ca4c7cff1573 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 24433
diff changeset
    45
# Support "hotspot_" prefixed test make targets (too)
ca4c7cff1573 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 24433
diff changeset
    46
# The hotspot_% targets are used by the top level Makefile
ca4c7cff1573 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 24433
diff changeset
    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
ca4c7cff1573 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 24433
diff changeset
    49
	$(ECHO) "Running tests: $@"
ca4c7cff1573 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 24433
diff changeset
    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
e35e0c092042 8078017: Introduce hotspot_basicvmtest
mikael
parents: 29179
diff changeset
    54
# Set up the directory in which the jvm directories live (client/, server/, etc.)
e35e0c092042 8078017: Introduce hotspot_basicvmtest
mikael
parents: 29179
diff changeset
    55
ifeq ($(PLATFORM),windows)
e35e0c092042 8078017: Introduce hotspot_basicvmtest
mikael
parents: 29179
diff changeset
    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
e35e0c092042 8078017: Introduce hotspot_basicvmtest
mikael
parents: 29179
diff changeset
    58
JVMS_DIR := $(PRODUCT_HOME)/lib
e35e0c092042 8078017: Introduce hotspot_basicvmtest
mikael
parents: 29179
diff changeset
    59
endif
e35e0c092042 8078017: Introduce hotspot_basicvmtest
mikael
parents: 29179
diff changeset
    60
e35e0c092042 8078017: Introduce hotspot_basicvmtest
mikael
parents: 29179
diff changeset
    61
# Use the existance of a directory as a sign that jvm variant is available
e35e0c092042 8078017: Introduce hotspot_basicvmtest
mikael
parents: 29179
diff changeset
    62
CANDIDATE_JVM_VARIANTS := client minimal server
e35e0c092042 8078017: Introduce hotspot_basicvmtest
mikael
parents: 29179
diff changeset
    63
JVM_VARIANTS := $(strip $(foreach x,$(CANDIDATE_JVM_VARIANTS),$(if $(wildcard $(JVMS_DIR)/$(x)),$(x))))
e35e0c092042 8078017: Introduce hotspot_basicvmtest
mikael
parents: 29179
diff changeset
    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
2435ff181f94 8170629: Remove code duplication in test makefiles
ihse
parents: 42144
diff changeset
    69
define NEWLINE
2435ff181f94 8170629: Remove code duplication in test makefiles
ihse
parents: 42144
diff changeset
    70
2435ff181f94 8170629: Remove code duplication in test makefiles
ihse
parents: 42144
diff changeset
    71
2435ff181f94 8170629: Remove code duplication in test makefiles
ihse
parents: 42144
diff changeset
    72
endef
2435ff181f94 8170629: Remove code duplication in test makefiles
ihse
parents: 42144
diff changeset
    73
2435ff181f94 8170629: Remove code duplication in test makefiles
ihse
parents: 42144
diff changeset
    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