@@ -1100,16 +1100,23 @@ endif
1100
1100
# This target builds the documentation image
1101
1101
docs-image: docs-jdk
1102
1102
1103
- # If not already set, set the JVM specific targets to build the test image
1104
- JVM_TEST_IMAGE_TARGETS ?= test-image-hotspot -jtreg-native test-image-hotspot-gtest
1103
+ # This target builds the test image
1104
+ test-image: prepare-test-image test-image-jdk -jtreg-native test-image-demos-jdk
1105
1105
1106
- ifeq ($(INCLUDE_GRAAL), true)
1107
- JVM_TEST_IMAGE_TARGETS += test-image-hotspot-jtreg-graal
1108
- endif
1106
+ ifneq ($(JVM_TEST_IMAGE_TARGETS), )
1107
+ # If JVM_TEST_IMAGE_TARGETS is externally defined, use it instead of the
1108
+ # standard hotspot set of tests.
1109
+ test-image: $(JVM_TEST_IMAGE_TARGETS)
1110
+ else
1111
+ test-image: test-image-hotspot-jtreg-native
1112
+ ifeq ($(BUILD_GTEST), true)
1113
+ test-image: test-image-hotspot-gtest
1114
+ endif
1109
1115
1110
- # This target builds the test image
1111
- test-image: prepare-test-image test-image-jdk-jtreg-native \
1112
- test-image-demos-jdk $(JVM_TEST_IMAGE_TARGETS)
1116
+ ifeq ($(INCLUDE_GRAAL), true)
1117
+ test-image: test-image-hotspot-jtreg-graal
1118
+ endif
1119
+ endif
1113
1120
1114
1121
ifeq ($(BUILD_FAILURE_HANDLER), true)
1115
1122
test-image: test-image-failure-handler
0 commit comments