777 DEPS := build-test-failure-handler, \
778 ))
779 endif
780
781 ifeq ($(BUILD_JTREG_TEST_THREAD_FACTORY), true)
782 # Builds the test thread factory jtreg extension
783 $(eval $(call SetupTarget, build-test-test-thread-factory, \
784 MAKEFILE := test/BuildJtregTestThreadFactory, \
785 TARGET := build, \
786 DEPS := interim-langtools exploded-image, \
787 ))
788
789 # Copies the jtreg test thread factory into the test image
790 $(eval $(call SetupTarget, test-image-test-thread-factory, \
791 MAKEFILE := test/BuildJtregTestThreadFactory, \
792 TARGET := images, \
793 DEPS := build-test-test-thread-factory, \
794 ))
795 endif
796
797 $(eval $(call SetupTarget, build-microbenchmark, \
798 MAKEFILE := test/BuildMicrobenchmark, \
799 DEPS := interim-langtools exploded-image build-test-lib, \
800 ))
801
802 ################################################################################
803 # Run tests
804
805 $(eval $(call SetupTarget, test, \
806 MAKEFILE := RunTests, \
807 ARGS := TEST="$(TEST)", \
808 DEPS := jdk-image test-image $(TEST_DEPS), \
809 ))
810
811 $(eval $(call SetupTarget, exploded-test, \
812 MAKEFILE := RunTests, \
813 ARGS := TEST="$(TEST)" JDK_IMAGE_DIR=$(JDK_OUTPUTDIR), \
814 DEPS := exploded-image test-image $(TEST_DEPS), \
815 ))
816
1293
1294 ifneq ($(JVM_TEST_IMAGE_TARGETS), )
1295 # If JVM_TEST_IMAGE_TARGETS is externally defined, use it instead of the
1296 # standard hotspot set of tests.
1297 test-image: $(JVM_TEST_IMAGE_TARGETS)
1298 else
1299 test-image: test-image-hotspot-jtreg-native
1300 ifneq ($(GTEST_FRAMEWORK_SRC), )
1301 test-image: test-image-hotspot-gtest
1302 endif
1303 endif
1304
1305 ifeq ($(BUILD_FAILURE_HANDLER), true)
1306 test-image: test-image-failure-handler
1307 endif
1308
1309 ifeq ($(BUILD_JTREG_TEST_THREAD_FACTORY), true)
1310 test-image: test-image-test-thread-factory
1311 endif
1312
1313 ifneq ($(JMH_CORE_JAR), )
1314 test-image: build-microbenchmark
1315 endif
1316
1317 ################################################################################
1318
1319 # all-images builds all our deliverables as images.
1320 all-images: product-images static-jdk-image test-image all-docs-images
1321
1322 # all-bundles packages all our deliverables as tar.gz bundles.
1323 all-bundles: product-bundles test-bundles docs-bundles static-libs-bundles
1324
1325 ALL_TARGETS += buildtools hotspot hotspot-libs hotspot-static-libs \
1326 hotspot-gensrc gensrc gendata \
1327 copy java libs static-libs launchers jmods \
1328 jdk.jdwp.agent-gensrc $(ALL_MODULES) demos \
1329 exploded-image-base exploded-image runnable-buildjdk \
1330 create-buildjdk docs-jdk-api docs-javase-api docs-reference-api docs-jdk \
1331 docs-javase docs-reference docs-javadoc mac-bundles product-images legacy-images \
1332 docs-image docs-javase-image docs-reference-image all-docs-images \
|
777 DEPS := build-test-failure-handler, \
778 ))
779 endif
780
781 ifeq ($(BUILD_JTREG_TEST_THREAD_FACTORY), true)
782 # Builds the test thread factory jtreg extension
783 $(eval $(call SetupTarget, build-test-test-thread-factory, \
784 MAKEFILE := test/BuildJtregTestThreadFactory, \
785 TARGET := build, \
786 DEPS := interim-langtools exploded-image, \
787 ))
788
789 # Copies the jtreg test thread factory into the test image
790 $(eval $(call SetupTarget, test-image-test-thread-factory, \
791 MAKEFILE := test/BuildJtregTestThreadFactory, \
792 TARGET := images, \
793 DEPS := build-test-test-thread-factory, \
794 ))
795 endif
796
797 # Builds the value class plugin jtreg extension (JEP 401)
798 $(eval $(call SetupTarget, build-test-value-class-plugin, \
799 MAKEFILE := test/BuildJtregValueClassPlugin, \
800 TARGET := build, \
801 DEPS := interim-langtools exploded-image, \
802 ))
803
804 # Copies the value class plugin into the test image
805 $(eval $(call SetupTarget, test-image-value-class-plugin, \
806 MAKEFILE := test/BuildJtregValueClassPlugin, \
807 TARGET := images, \
808 DEPS := build-test-value-class-plugin, \
809 ))
810
811 $(eval $(call SetupTarget, build-microbenchmark, \
812 MAKEFILE := test/BuildMicrobenchmark, \
813 DEPS := interim-langtools exploded-image build-test-lib, \
814 ))
815
816 ################################################################################
817 # Run tests
818
819 $(eval $(call SetupTarget, test, \
820 MAKEFILE := RunTests, \
821 ARGS := TEST="$(TEST)", \
822 DEPS := jdk-image test-image $(TEST_DEPS), \
823 ))
824
825 $(eval $(call SetupTarget, exploded-test, \
826 MAKEFILE := RunTests, \
827 ARGS := TEST="$(TEST)" JDK_IMAGE_DIR=$(JDK_OUTPUTDIR), \
828 DEPS := exploded-image test-image $(TEST_DEPS), \
829 ))
830
1307
1308 ifneq ($(JVM_TEST_IMAGE_TARGETS), )
1309 # If JVM_TEST_IMAGE_TARGETS is externally defined, use it instead of the
1310 # standard hotspot set of tests.
1311 test-image: $(JVM_TEST_IMAGE_TARGETS)
1312 else
1313 test-image: test-image-hotspot-jtreg-native
1314 ifneq ($(GTEST_FRAMEWORK_SRC), )
1315 test-image: test-image-hotspot-gtest
1316 endif
1317 endif
1318
1319 ifeq ($(BUILD_FAILURE_HANDLER), true)
1320 test-image: test-image-failure-handler
1321 endif
1322
1323 ifeq ($(BUILD_JTREG_TEST_THREAD_FACTORY), true)
1324 test-image: test-image-test-thread-factory
1325 endif
1326
1327 test-image: test-image-value-class-plugin
1328
1329 ifneq ($(JMH_CORE_JAR), )
1330 test-image: build-microbenchmark
1331 endif
1332
1333 ################################################################################
1334
1335 # all-images builds all our deliverables as images.
1336 all-images: product-images static-jdk-image test-image all-docs-images
1337
1338 # all-bundles packages all our deliverables as tar.gz bundles.
1339 all-bundles: product-bundles test-bundles docs-bundles static-libs-bundles
1340
1341 ALL_TARGETS += buildtools hotspot hotspot-libs hotspot-static-libs \
1342 hotspot-gensrc gensrc gendata \
1343 copy java libs static-libs launchers jmods \
1344 jdk.jdwp.agent-gensrc $(ALL_MODULES) demos \
1345 exploded-image-base exploded-image runnable-buildjdk \
1346 create-buildjdk docs-jdk-api docs-javase-api docs-reference-api docs-jdk \
1347 docs-javase docs-reference docs-javadoc mac-bundles product-images legacy-images \
1348 docs-image docs-javase-image docs-reference-image all-docs-images \
|