730 MAKEFILE := test/BuildTestLib, \
731 DEPS := exploded-image, \
732 ))
733
734 ifeq ($(BUILD_FAILURE_HANDLER), true)
735 # Builds the failure handler jtreg extension
736 $(eval $(call SetupTarget, build-test-failure-handler, \
737 MAKEFILE := test/BuildFailureHandler, \
738 TARGET := build, \
739 DEPS := interim-langtools, \
740 ))
741
742 # Copies the failure handler jtreg extension into the test image
743 $(eval $(call SetupTarget, test-image-failure-handler, \
744 MAKEFILE := test/BuildFailureHandler, \
745 TARGET := images, \
746 DEPS := build-test-failure-handler, \
747 ))
748 endif
749
750 $(eval $(call SetupTarget, build-microbenchmark, \
751 MAKEFILE := test/BuildMicrobenchmark, \
752 DEPS := interim-langtools exploded-image, \
753 ))
754
755 ################################################################################
756 # Run tests
757
758 $(eval $(call SetupTarget, test, \
759 MAKEFILE := RunTests, \
760 ARGS := TEST="$(TEST)", \
761 DEPS := jdk-image test-image, \
762 ))
763
764 $(eval $(call SetupTarget, exploded-test, \
765 MAKEFILE := RunTests, \
766 ARGS := TEST="$(TEST)" JDK_IMAGE_DIR=$(JDK_OUTPUTDIR), \
767 DEPS := exploded-image test-image, \
768 ))
769
1210 # This target builds the test image
1211 test-image: prepare-test-image test-image-jdk-jtreg-native \
1212 test-image-demos-jdk test-image-libtest-jtreg-native \
1213 test-image-lib-native
1214
1215 ifneq ($(JVM_TEST_IMAGE_TARGETS), )
1216 # If JVM_TEST_IMAGE_TARGETS is externally defined, use it instead of the
1217 # standard hotspot set of tests.
1218 test-image: $(JVM_TEST_IMAGE_TARGETS)
1219 else
1220 test-image: test-image-hotspot-jtreg-native
1221 ifneq ($(GTEST_FRAMEWORK_SRC), )
1222 test-image: test-image-hotspot-gtest
1223 endif
1224 endif
1225
1226 ifeq ($(BUILD_FAILURE_HANDLER), true)
1227 test-image: test-image-failure-handler
1228 endif
1229
1230 ifneq ($(JMH_CORE_JAR), )
1231 test-image: build-microbenchmark
1232 endif
1233
1234 ################################################################################
1235
1236 # all-images builds all our deliverables as images.
1237 all-images: product-images test-image all-docs-images
1238
1239 # all-bundles packages all our deliverables as tar.gz bundles.
1240 all-bundles: product-bundles test-bundles docs-bundles static-libs-bundles
1241
1242 ALL_TARGETS += buildtools hotspot hotspot-libs hotspot-gensrc gensrc gendata \
1243 copy java libs static-libs launchers jmods \
1244 jdk.jdwp.agent-gensrc $(ALL_MODULES) demos \
1245 exploded-image-base exploded-image runnable-buildjdk \
1246 create-buildjdk docs-jdk-api docs-javase-api docs-reference-api docs-jdk \
1247 docs-javase docs-reference docs-javadoc mac-bundles product-images legacy-images \
1248 docs-image docs-javase-image docs-reference-image all-docs-images \
1249 docs-bundles all-docs-bundles test-image all-images \
|
730 MAKEFILE := test/BuildTestLib, \
731 DEPS := exploded-image, \
732 ))
733
734 ifeq ($(BUILD_FAILURE_HANDLER), true)
735 # Builds the failure handler jtreg extension
736 $(eval $(call SetupTarget, build-test-failure-handler, \
737 MAKEFILE := test/BuildFailureHandler, \
738 TARGET := build, \
739 DEPS := interim-langtools, \
740 ))
741
742 # Copies the failure handler jtreg extension into the test image
743 $(eval $(call SetupTarget, test-image-failure-handler, \
744 MAKEFILE := test/BuildFailureHandler, \
745 TARGET := images, \
746 DEPS := build-test-failure-handler, \
747 ))
748 endif
749
750 ifeq ($(BUILD_JTREG_TEST_THREAD_FACTORY), true)
751 # Builds the test thread factory jtreg extension
752 $(eval $(call SetupTarget, build-test-test-thread-factory, \
753 MAKEFILE := test/BuildJtregTestThreadFactory, \
754 TARGET := build, \
755 DEPS := interim-langtools, \
756 ))
757
758 # Copies the jtreg test thread factory into the test image
759 $(eval $(call SetupTarget, test-image-test-thread-factory, \
760 MAKEFILE := test/BuildJtregTestThreadFactory, \
761 TARGET := images, \
762 DEPS := build-test-test-thread-factory, \
763 ))
764 endif
765
766 $(eval $(call SetupTarget, build-microbenchmark, \
767 MAKEFILE := test/BuildMicrobenchmark, \
768 DEPS := interim-langtools exploded-image, \
769 ))
770
771 ################################################################################
772 # Run tests
773
774 $(eval $(call SetupTarget, test, \
775 MAKEFILE := RunTests, \
776 ARGS := TEST="$(TEST)", \
777 DEPS := jdk-image test-image, \
778 ))
779
780 $(eval $(call SetupTarget, exploded-test, \
781 MAKEFILE := RunTests, \
782 ARGS := TEST="$(TEST)" JDK_IMAGE_DIR=$(JDK_OUTPUTDIR), \
783 DEPS := exploded-image test-image, \
784 ))
785
1226 # This target builds the test image
1227 test-image: prepare-test-image test-image-jdk-jtreg-native \
1228 test-image-demos-jdk test-image-libtest-jtreg-native \
1229 test-image-lib-native
1230
1231 ifneq ($(JVM_TEST_IMAGE_TARGETS), )
1232 # If JVM_TEST_IMAGE_TARGETS is externally defined, use it instead of the
1233 # standard hotspot set of tests.
1234 test-image: $(JVM_TEST_IMAGE_TARGETS)
1235 else
1236 test-image: test-image-hotspot-jtreg-native
1237 ifneq ($(GTEST_FRAMEWORK_SRC), )
1238 test-image: test-image-hotspot-gtest
1239 endif
1240 endif
1241
1242 ifeq ($(BUILD_FAILURE_HANDLER), true)
1243 test-image: test-image-failure-handler
1244 endif
1245
1246 ifeq ($(BUILD_JTREG_TEST_THREAD_FACTORY), true)
1247 test-image: test-image-test-thread-factory
1248 endif
1249
1250 ifneq ($(JMH_CORE_JAR), )
1251 test-image: build-microbenchmark
1252 endif
1253
1254 ################################################################################
1255
1256 # all-images builds all our deliverables as images.
1257 all-images: product-images test-image all-docs-images
1258
1259 # all-bundles packages all our deliverables as tar.gz bundles.
1260 all-bundles: product-bundles test-bundles docs-bundles static-libs-bundles
1261
1262 ALL_TARGETS += buildtools hotspot hotspot-libs hotspot-gensrc gensrc gendata \
1263 copy java libs static-libs launchers jmods \
1264 jdk.jdwp.agent-gensrc $(ALL_MODULES) demos \
1265 exploded-image-base exploded-image runnable-buildjdk \
1266 create-buildjdk docs-jdk-api docs-javase-api docs-reference-api docs-jdk \
1267 docs-javase docs-reference docs-javadoc mac-bundles product-images legacy-images \
1268 docs-image docs-javase-image docs-reference-image all-docs-images \
1269 docs-bundles all-docs-bundles test-image all-images \
|