hotspot/test/Makefile
author weijun
Thu, 11 May 2017 07:33:23 +0800
changeset 45063 0909d3bcbacb
parent 42659 b264f522c689
child 46570 676d6539e0e0
permissions -rw-r--r--
8179389: X509Certificate generateCRLs is extremely slow using a PEM crl list Reviewed-by: mullan
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
     1
#
40346
7a3fd6016780 8162670: make of jtreg_tests fails if no tests are run, causing jprt test runs to also fail
cjplummer
parents: 38317
diff changeset
     2
# Copyright (c) 1995, 2016, 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
42429
2435ff181f94 8170629: Remove code duplication in test makefiles
ihse
parents: 42144
diff changeset
     7
# published by the Free Software Foundation.  Oracle designates this
2435ff181f94 8170629: Remove code duplication in test makefiles
ihse
parents: 42144
diff changeset
     8
# particular file as subject to the "Classpath" exception as provided
2435ff181f94 8170629: Remove code duplication in test makefiles
ihse
parents: 42144
diff changeset
     9
# by Oracle in the LICENSE file that accompanied this code.
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    10
#
489c9b5090e2 Initial load
duke
parents:
diff changeset
    11
# This code is distributed in the hope that it will be useful, but WITHOUT
489c9b5090e2 Initial load
duke
parents:
diff changeset
    12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
489c9b5090e2 Initial load
duke
parents:
diff changeset
    13
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
489c9b5090e2 Initial load
duke
parents:
diff changeset
    14
# version 2 for more details (a copy is included in the LICENSE file that
489c9b5090e2 Initial load
duke
parents:
diff changeset
    15
# accompanied this code).
489c9b5090e2 Initial load
duke
parents:
diff changeset
    16
#
489c9b5090e2 Initial load
duke
parents:
diff changeset
    17
# You should have received a copy of the GNU General Public License version
489c9b5090e2 Initial load
duke
parents:
diff changeset
    18
# 2 along with this work; if not, write to the Free Software Foundation,
489c9b5090e2 Initial load
duke
parents:
diff changeset
    19
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    20
#
5547
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 2868
diff changeset
    21
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 2868
diff changeset
    22
# 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
    23
# questions.
1132
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
    24
#
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    25
#
489c9b5090e2 Initial load
duke
parents:
diff changeset
    26
42429
2435ff181f94 8170629: Remove code duplication in test makefiles
ihse
parents: 42144
diff changeset
    27
NATIVE_TEST_PATH := hotspot/jtreg/native
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    28
42429
2435ff181f94 8170629: Remove code duplication in test makefiles
ihse
parents: 42144
diff changeset
    29
TREAT_EXIT_CODE_1_AS_0 := true
27695
c6e0ac3339ac 8059732: improve hotspot_*test targets
iignatyev
parents: 26922
diff changeset
    30
42429
2435ff181f94 8170629: Remove code duplication in test makefiles
ihse
parents: 42144
diff changeset
    31
CLEAN_BEFORE_PREP := true
12225
232f136e7b60 7152791: wbapi tests fail on cygwin
mgerdin
parents: 12095
diff changeset
    32
42429
2435ff181f94 8170629: Remove code duplication in test makefiles
ihse
parents: 42144
diff changeset
    33
USE_JTREG_VERSION := 4.1
2435ff181f94 8170629: Remove code duplication in test makefiles
ihse
parents: 42144
diff changeset
    34
2435ff181f94 8170629: Remove code duplication in test makefiles
ihse
parents: 42144
diff changeset
    35
USE_JTREG_ASSERT := false
25628
ca4c7cff1573 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 24433
diff changeset
    36
42429
2435ff181f94 8170629: Remove code duplication in test makefiles
ihse
parents: 42144
diff changeset
    37
LIMIT_JTREG_VM_MEMORY := false
38255
5784bccf53b0 8148244: Finalize and integrate GTest implementation
iignatyev
parents: 37299
diff changeset
    38
42429
2435ff181f94 8170629: Remove code duplication in test makefiles
ihse
parents: 42144
diff changeset
    39
IGNORE_MARKED_TESTS := true
38255
5784bccf53b0 8148244: Finalize and integrate GTest implementation
iignatyev
parents: 37299
diff changeset
    40
25628
ca4c7cff1573 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 24433
diff changeset
    41
# Get OS name from uname (Cygwin inexplicably adds _NT-5.1)
42429
2435ff181f94 8170629: Remove code duplication in test makefiles
ihse
parents: 42144
diff changeset
    42
UNAME_S := $(shell uname -s | cut -f1 -d_)
2435ff181f94 8170629: Remove code duplication in test makefiles
ihse
parents: 42144
diff changeset
    43
25628
ca4c7cff1573 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 24433
diff changeset
    44
ifeq ($(UNAME_S), SunOS)
41720
93c64aa0b62f 8166738: Enable concurrency in Hotspot jtreg testing
ctornqvi
parents: 40346
diff changeset
    45
  NUM_CORES := $(shell LC_MESSAGES=C /usr/sbin/psrinfo -v | grep -c on-line)
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    46
endif
25628
ca4c7cff1573 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 24433
diff changeset
    47
ifeq ($(UNAME_S), Linux)
41720
93c64aa0b62f 8166738: Enable concurrency in Hotspot jtreg testing
ctornqvi
parents: 40346
diff changeset
    48
  NUM_CORES := $(shell cat /proc/cpuinfo  | grep -c processor)
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    49
endif
25628
ca4c7cff1573 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 24433
diff changeset
    50
ifeq ($(UNAME_S), Darwin)
41720
93c64aa0b62f 8166738: Enable concurrency in Hotspot jtreg testing
ctornqvi
parents: 40346
diff changeset
    51
  NUM_CORES := $(shell /usr/sbin/sysctl -n hw.ncpu)
10565
dc90c239f4ec 7089790: integrate bsd-port changes
never
parents: 7662
diff changeset
    52
endif
42429
2435ff181f94 8170629: Remove code duplication in test makefiles
ihse
parents: 42144
diff changeset
    53
ifeq ($(findstring CYGWIN,$(UNAME_S)), CYGWIN)
41720
93c64aa0b62f 8166738: Enable concurrency in Hotspot jtreg testing
ctornqvi
parents: 40346
diff changeset
    54
  ifneq ($(NUMBER_OF_PROCESSORS), )
93c64aa0b62f 8166738: Enable concurrency in Hotspot jtreg testing
ctornqvi
parents: 40346
diff changeset
    55
    NUM_CORES := $(NUMBER_OF_PROCESSORS)
93c64aa0b62f 8166738: Enable concurrency in Hotspot jtreg testing
ctornqvi
parents: 40346
diff changeset
    56
  else
93c64aa0b62f 8166738: Enable concurrency in Hotspot jtreg testing
ctornqvi
parents: 40346
diff changeset
    57
    ifneq ($(HOTSPOT_BUILD_JOBS), )
93c64aa0b62f 8166738: Enable concurrency in Hotspot jtreg testing
ctornqvi
parents: 40346
diff changeset
    58
      NUM_CORES := $(HOTSPOT_BUILD_JOBS)
42429
2435ff181f94 8170629: Remove code duplication in test makefiles
ihse
parents: 42144
diff changeset
    59
    else
2435ff181f94 8170629: Remove code duplication in test makefiles
ihse
parents: 42144
diff changeset
    60
      NUM_CORES := 1 # fallback
41720
93c64aa0b62f 8166738: Enable concurrency in Hotspot jtreg testing
ctornqvi
parents: 40346
diff changeset
    61
    endif
93c64aa0b62f 8166738: Enable concurrency in Hotspot jtreg testing
ctornqvi
parents: 40346
diff changeset
    62
  endif
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    63
endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
    64
42429
2435ff181f94 8170629: Remove code duplication in test makefiles
ihse
parents: 42144
diff changeset
    65
# Concurrency based on min(cores / 2, 12)
2435ff181f94 8170629: Remove code duplication in test makefiles
ihse
parents: 42144
diff changeset
    66
CONCURRENCY := $(shell expr $(NUM_CORES) / 2)
2435ff181f94 8170629: Remove code duplication in test makefiles
ihse
parents: 42144
diff changeset
    67
ifeq ($(CONCURRENCY), 0)
2435ff181f94 8170629: Remove code duplication in test makefiles
ihse
parents: 42144
diff changeset
    68
  CONCURRENCY := 1
2435ff181f94 8170629: Remove code duplication in test makefiles
ihse
parents: 42144
diff changeset
    69
else ifeq ($(shell expr $(CONCURRENCY) \> 12), 1)
2435ff181f94 8170629: Remove code duplication in test makefiles
ihse
parents: 42144
diff changeset
    70
  CONCURRENCY := 12
37299
db3b0d4c3bda 8149777: Enable enhanced failure handler for "make test"
erikj
parents: 35526
diff changeset
    71
endif
db3b0d4c3bda 8149777: Enable enhanced failure handler for "make test"
erikj
parents: 35526
diff changeset
    72
42429
2435ff181f94 8170629: Remove code duplication in test makefiles
ihse
parents: 42144
diff changeset
    73
# Make sure MaxRAMFraction is high enough to not cause OOM or swapping since we may end up with a lot of JVM's
2435ff181f94 8170629: Remove code duplication in test makefiles
ihse
parents: 42144
diff changeset
    74
JTREG_BASIC_OPTIONS += -vmoption:-XX:MaxRAMFraction=$(shell expr $(CONCURRENCY) \* 4)
25628
ca4c7cff1573 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 24433
diff changeset
    75
42429
2435ff181f94 8170629: Remove code duplication in test makefiles
ihse
parents: 42144
diff changeset
    76
# Include the common base file with most of the logic
2435ff181f94 8170629: Remove code duplication in test makefiles
ihse
parents: 42144
diff changeset
    77
include ../../test/TestCommon.gmk
1132
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
    78
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
    79
################################################################
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
    80
# Default make rule (runs jtreg_tests)
25628
ca4c7cff1573 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 24433
diff changeset
    81
all: hotspot_all
1132
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
    82
	@$(ECHO) "Testing completed successfully"
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
    83
25628
ca4c7cff1573 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 24433
diff changeset
    84
# Support "hotspot_" prefixed test make targets (too)
ca4c7cff1573 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 24433
diff changeset
    85
# The hotspot_% targets are used by the top level Makefile
ca4c7cff1573 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 24433
diff changeset
    86
# 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
    87
hotspot_%:
25628
ca4c7cff1573 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 24433
diff changeset
    88
	$(ECHO) "Running tests: $@"
ca4c7cff1573 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 24433
diff changeset
    89
	$(MAKE) -j 1 TEST_SELECTION=":$@" UNIQUE_DIR=$@ jtreg_tests;
24433
492c1fb41098 8042804: Support invoking Hotspot tests from top level
mikael
parents: 22234
diff changeset
    90
33588
13edf132ffa0 8139256: Add Makefile target to run internal VM tests
ehelin
parents: 30595
diff changeset
    91
hotspot_internal:
13edf132ffa0 8139256: Add Makefile target to run internal VM tests
ehelin
parents: 30595
diff changeset
    92
	$(ALT_OUTPUTDIR)/jdk/bin/java -XX:+ExecuteInternalVMTests -XX:+ShowMessageBoxOnError -version
13edf132ffa0 8139256: Add Makefile target to run internal VM tests
ehelin
parents: 30595
diff changeset
    93
1132
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
    94
################################################################
42429
2435ff181f94 8170629: Remove code duplication in test makefiles
ihse
parents: 42144
diff changeset
    95
ALT_MAKE ?= closed
30569
28d0b4c56125 8074016: Add convenient way of adding custom test targets to hotspot's test makefile
iaberg
parents: 30560
diff changeset
    96
-include $(ALT_MAKE)/Makefile
28d0b4c56125 8074016: Add convenient way of adding custom test targets to hotspot's test makefile
iaberg
parents: 30560
diff changeset
    97
27695
c6e0ac3339ac 8059732: improve hotspot_*test targets
iignatyev
parents: 26922
diff changeset
    98
# flags used to execute java in test targets
29179
8836e3bd543b 8072842: Add support for building native JTReg tests
ihse
parents: 29075
diff changeset
    99
TEST_FLAGS += -version -Xinternalversion -X -help
27695
c6e0ac3339ac 8059732: improve hotspot_*test targets
iignatyev
parents: 26922
diff changeset
   100
c6e0ac3339ac 8059732: improve hotspot_*test targets
iignatyev
parents: 26922
diff changeset
   101
sanitytest: prep $(PRODUCT_HOME)
c6e0ac3339ac 8059732: improve hotspot_*test targets
iignatyev
parents: 26922
diff changeset
   102
	@for flag in $(TEST_FLAGS);                                             \
c6e0ac3339ac 8059732: improve hotspot_*test targets
iignatyev
parents: 26922
diff changeset
   103
	do                                                                      \
c6e0ac3339ac 8059732: improve hotspot_*test targets
iignatyev
parents: 26922
diff changeset
   104
	    echo Executing java $(JAVA_OPTIONS) $$flag;                         \
c6e0ac3339ac 8059732: improve hotspot_*test targets
iignatyev
parents: 26922
diff changeset
   105
	    $(PRODUCT_HOME)/bin/java $(JAVA_OPTIONS) $$flag;                    \
c6e0ac3339ac 8059732: improve hotspot_*test targets
iignatyev
parents: 26922
diff changeset
   106
	    res=$$?;                                                            \
c6e0ac3339ac 8059732: improve hotspot_*test targets
iignatyev
parents: 26922
diff changeset
   107
	    if [ $$res -ne 0 ]; then                                            \
c6e0ac3339ac 8059732: improve hotspot_*test targets
iignatyev
parents: 26922
diff changeset
   108
	        exit $$res;                                                     \
c6e0ac3339ac 8059732: improve hotspot_*test targets
iignatyev
parents: 26922
diff changeset
   109
	    fi;                                                                 \
c6e0ac3339ac 8059732: improve hotspot_*test targets
iignatyev
parents: 26922
diff changeset
   110
	done
c6e0ac3339ac 8059732: improve hotspot_*test targets
iignatyev
parents: 26922
diff changeset
   111
c6e0ac3339ac 8059732: improve hotspot_*test targets
iignatyev
parents: 26922
diff changeset
   112
PHONY_LIST += sanitytest
c6e0ac3339ac 8059732: improve hotspot_*test targets
iignatyev
parents: 26922
diff changeset
   113
1132
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   114
################################################################
915051915ce9 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 1
diff changeset
   115
30267
e35e0c092042 8078017: Introduce hotspot_basicvmtest
mikael
parents: 29179
diff changeset
   116
# basicvmtest (make sure various basic java options work)
e35e0c092042 8078017: Introduce hotspot_basicvmtest
mikael
parents: 29179
diff changeset
   117
e35e0c092042 8078017: Introduce hotspot_basicvmtest
mikael
parents: 29179
diff changeset
   118
# Set up the directory in which the jvm directories live (client/, server/, etc.)
e35e0c092042 8078017: Introduce hotspot_basicvmtest
mikael
parents: 29179
diff changeset
   119
ifeq ($(PLATFORM),windows)
e35e0c092042 8078017: Introduce hotspot_basicvmtest
mikael
parents: 29179
diff changeset
   120
JVMS_DIR := $(PRODUCT_HOME)/bin
42633
0c23e9d8fccf 8066474: Remove the lib/ directory from Linux and Solaris images
erikj
parents: 42045
diff changeset
   121
else
30267
e35e0c092042 8078017: Introduce hotspot_basicvmtest
mikael
parents: 29179
diff changeset
   122
JVMS_DIR := $(PRODUCT_HOME)/lib
e35e0c092042 8078017: Introduce hotspot_basicvmtest
mikael
parents: 29179
diff changeset
   123
endif
e35e0c092042 8078017: Introduce hotspot_basicvmtest
mikael
parents: 29179
diff changeset
   124
e35e0c092042 8078017: Introduce hotspot_basicvmtest
mikael
parents: 29179
diff changeset
   125
# Use the existance of a directory as a sign that jvm variant is available
e35e0c092042 8078017: Introduce hotspot_basicvmtest
mikael
parents: 29179
diff changeset
   126
CANDIDATE_JVM_VARIANTS := client minimal server
e35e0c092042 8078017: Introduce hotspot_basicvmtest
mikael
parents: 29179
diff changeset
   127
JVM_VARIANTS := $(strip $(foreach x,$(CANDIDATE_JVM_VARIANTS),$(if $(wildcard $(JVMS_DIR)/$(x)),$(x))))
e35e0c092042 8078017: Introduce hotspot_basicvmtest
mikael
parents: 29179
diff changeset
   128
e35e0c092042 8078017: Introduce hotspot_basicvmtest
mikael
parents: 29179
diff changeset
   129
hotspot_basicvmtest:
e35e0c092042 8078017: Introduce hotspot_basicvmtest
mikael
parents: 29179
diff changeset
   130
	for variant in $(JVM_VARIANTS);                                           \
e35e0c092042 8078017: Introduce hotspot_basicvmtest
mikael
parents: 29179
diff changeset
   131
	do                                                                        \
e35e0c092042 8078017: Introduce hotspot_basicvmtest
mikael
parents: 29179
diff changeset
   132
	    $(MAKE) JAVA_ARGS="$(JAVA_ARGS) -$$variant" hotspot_$${variant}test;  \
30594
e1b420c520a0 8079545: [TESTBUG] hotspot_basicvmtest doesn't fail even if VM crashes
mikael
parents: 30280
diff changeset
   133
	    res=$$?;                                                              \
e1b420c520a0 8079545: [TESTBUG] hotspot_basicvmtest doesn't fail even if VM crashes
mikael
parents: 30280
diff changeset
   134
	    if [ $$res -ne 0 ]; then                                              \
e1b420c520a0 8079545: [TESTBUG] hotspot_basicvmtest doesn't fail even if VM crashes
mikael
parents: 30280
diff changeset
   135
	        exit $$res;                                                       \
e1b420c520a0 8079545: [TESTBUG] hotspot_basicvmtest doesn't fail even if VM crashes
mikael
parents: 30280
diff changeset
   136
	    fi;                                                                   \
30267
e35e0c092042 8078017: Introduce hotspot_basicvmtest
mikael
parents: 29179
diff changeset
   137
	done
e35e0c092042 8078017: Introduce hotspot_basicvmtest
mikael
parents: 29179
diff changeset
   138
e35e0c092042 8078017: Introduce hotspot_basicvmtest
mikael
parents: 29179
diff changeset
   139
PHONY_LIST += hotspot_basicvmtest
e35e0c092042 8078017: Introduce hotspot_basicvmtest
mikael
parents: 29179
diff changeset
   140
e35e0c092042 8078017: Introduce hotspot_basicvmtest
mikael
parents: 29179
diff changeset
   141
################################################################
e35e0c092042 8078017: Introduce hotspot_basicvmtest
mikael
parents: 29179
diff changeset
   142
2868
051eb4af737f 6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents: 2105
diff changeset
   143
# clienttest (make sure various basic java client options work)
051eb4af737f 6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents: 2105
diff changeset
   144
27695
c6e0ac3339ac 8059732: improve hotspot_*test targets
iignatyev
parents: 26922
diff changeset
   145
hotspot_clienttest clienttest: sanitytest
2868
051eb4af737f 6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents: 2105
diff changeset
   146
	$(RM) $(PRODUCT_HOME)/jre/lib/*/client/classes.jsa
051eb4af737f 6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents: 2105
diff changeset
   147
	$(RM) $(PRODUCT_HOME)/jre/bin/client/classes.jsa
051eb4af737f 6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents: 2105
diff changeset
   148
	$(PRODUCT_HOME)/bin/java $(JAVA_OPTIONS) -Xshare:dump
051eb4af737f 6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents: 2105
diff changeset
   149
25628
ca4c7cff1573 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 24433
diff changeset
   150
PHONY_LIST += hotspot_clienttest clienttest
2868
051eb4af737f 6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents: 2105
diff changeset
   151
051eb4af737f 6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents: 2105
diff changeset
   152
################################################################
051eb4af737f 6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents: 2105
diff changeset
   153
26921
de18c35bc62d 8058919: Add sanity test for minimal VM in test/Makefile
dholmes
parents: 25628
diff changeset
   154
# minimaltest (make sure various basic java minimal options work)
de18c35bc62d 8058919: Add sanity test for minimal VM in test/Makefile
dholmes
parents: 25628
diff changeset
   155
27695
c6e0ac3339ac 8059732: improve hotspot_*test targets
iignatyev
parents: 26922
diff changeset
   156
hotspot_minimaltest minimaltest: sanitytest
26921
de18c35bc62d 8058919: Add sanity test for minimal VM in test/Makefile
dholmes
parents: 25628
diff changeset
   157
de18c35bc62d 8058919: Add sanity test for minimal VM in test/Makefile
dholmes
parents: 25628
diff changeset
   158
PHONY_LIST += hotspot_minimaltest minimaltest
de18c35bc62d 8058919: Add sanity test for minimal VM in test/Makefile
dholmes
parents: 25628
diff changeset
   159
de18c35bc62d 8058919: Add sanity test for minimal VM in test/Makefile
dholmes
parents: 25628
diff changeset
   160
################################################################
de18c35bc62d 8058919: Add sanity test for minimal VM in test/Makefile
dholmes
parents: 25628
diff changeset
   161
2868
051eb4af737f 6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents: 2105
diff changeset
   162
# servertest (make sure various basic java server options work)
051eb4af737f 6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents: 2105
diff changeset
   163
27695
c6e0ac3339ac 8059732: improve hotspot_*test targets
iignatyev
parents: 26922
diff changeset
   164
hotspot_servertest servertest: sanitytest
2868
051eb4af737f 6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents: 2105
diff changeset
   165
25628
ca4c7cff1573 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 24433
diff changeset
   166
PHONY_LIST += hotspot_servertest servertest
2868
051eb4af737f 6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents: 2105
diff changeset
   167
051eb4af737f 6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents: 2105
diff changeset
   168
################################################################
051eb4af737f 6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents: 2105
diff changeset
   169
38255
5784bccf53b0 8148244: Finalize and integrate GTest implementation
iignatyev
parents: 37299
diff changeset
   170
# Run the native gtest tests from the test image
5784bccf53b0 8148244: Finalize and integrate GTest implementation
iignatyev
parents: 37299
diff changeset
   171
42429
2435ff181f94 8170629: Remove code duplication in test makefiles
ihse
parents: 42144
diff changeset
   172
define NEWLINE
2435ff181f94 8170629: Remove code duplication in test makefiles
ihse
parents: 42144
diff changeset
   173
2435ff181f94 8170629: Remove code duplication in test makefiles
ihse
parents: 42144
diff changeset
   174
2435ff181f94 8170629: Remove code duplication in test makefiles
ihse
parents: 42144
diff changeset
   175
endef
2435ff181f94 8170629: Remove code duplication in test makefiles
ihse
parents: 42144
diff changeset
   176
2435ff181f94 8170629: Remove code duplication in test makefiles
ihse
parents: 42144
diff changeset
   177
38255
5784bccf53b0 8148244: Finalize and integrate GTest implementation
iignatyev
parents: 37299
diff changeset
   178
hotspot_gtest:
5784bccf53b0 8148244: Finalize and integrate GTest implementation
iignatyev
parents: 37299
diff changeset
   179
	$(foreach v, $(JVM_VARIANTS), \
5784bccf53b0 8148244: Finalize and integrate GTest implementation
iignatyev
parents: 37299
diff changeset
   180
	  $(MAKE) hotspot_gtest$v $(NEWLINE) )
5784bccf53b0 8148244: Finalize and integrate GTest implementation
iignatyev
parents: 37299
diff changeset
   181
5784bccf53b0 8148244: Finalize and integrate GTest implementation
iignatyev
parents: 37299
diff changeset
   182
hotspot_gtestserver hotspot_gtestclient hotspot_gtestminimal: hotspot_gtest%:
5784bccf53b0 8148244: Finalize and integrate GTest implementation
iignatyev
parents: 37299
diff changeset
   183
	$(TESTNATIVE_DIR)/hotspot/gtest/$*/gtestLauncher \
5784bccf53b0 8148244: Finalize and integrate GTest implementation
iignatyev
parents: 37299
diff changeset
   184
	    -jdk $(shell $(GETMIXEDPATH) "$(PRODUCT_HOME)")
5784bccf53b0 8148244: Finalize and integrate GTest implementation
iignatyev
parents: 37299
diff changeset
   185
5784bccf53b0 8148244: Finalize and integrate GTest implementation
iignatyev
parents: 37299
diff changeset
   186
PHONY_LIST += hotspot_gtest hotspot_gtestserver hotspot_gtestclient \
5784bccf53b0 8148244: Finalize and integrate GTest implementation
iignatyev
parents: 37299
diff changeset
   187
    hotspot_gtestminimal