787 DEPS := build-test-failure-handler, \
788 ))
789 endif
790
791 ifeq ($(BUILD_JTREG_TEST_THREAD_FACTORY), true)
792 # Builds the test thread factory jtreg extension
793 $(eval $(call SetupTarget, build-test-test-thread-factory, \
794 MAKEFILE := test/BuildJtregTestThreadFactory, \
795 TARGET := build, \
796 DEPS := interim-langtools exploded-image, \
797 ))
798
799 # Copies the jtreg test thread factory into the test image
800 $(eval $(call SetupTarget, test-image-test-thread-factory, \
801 MAKEFILE := test/BuildJtregTestThreadFactory, \
802 TARGET := images, \
803 DEPS := build-test-test-thread-factory, \
804 ))
805 endif
806
807 $(eval $(call SetupTarget, build-microbenchmark, \
808 MAKEFILE := test/BuildMicrobenchmark, \
809 DEPS := interim-langtools exploded-image build-test-lib, \
810 ))
811
812 ################################################################################
813 # Run tests
814
815 $(eval $(call SetupTarget, test, \
816 MAKEFILE := RunTests, \
817 ARGS := TEST="$(TEST)", \
818 DEPS := jdk-image test-image $(TEST_DEPS), \
819 ))
820
821 $(eval $(call SetupTarget, exploded-test, \
822 MAKEFILE := RunTests, \
823 ARGS := TEST="$(TEST)" JDK_IMAGE_DIR=$(JDK_OUTPUTDIR), \
824 DEPS := exploded-image test-image $(TEST_DEPS), \
825 ))
826
1311
1312 ifneq ($(JVM_TEST_IMAGE_TARGETS), )
1313 # If JVM_TEST_IMAGE_TARGETS is externally defined, use it instead of the
1314 # standard hotspot set of tests.
1315 test-image: $(JVM_TEST_IMAGE_TARGETS)
1316 else
1317 test-image: test-image-hotspot-jtreg-native
1318 ifneq ($(GTEST_FRAMEWORK_SRC), )
1319 test-image: test-image-hotspot-gtest
1320 endif
1321 endif
1322
1323 ifeq ($(BUILD_FAILURE_HANDLER), true)
1324 test-image: test-image-failure-handler
1325 endif
1326
1327 ifeq ($(BUILD_JTREG_TEST_THREAD_FACTORY), true)
1328 test-image: test-image-test-thread-factory
1329 endif
1330
1331 ifneq ($(JMH_CORE_JAR), )
1332 test-image: build-microbenchmark
1333 endif
1334
1335 ################################################################################
1336
1337 # all-images builds all our deliverables as images.
1338 all-images: product-images static-jdk-image test-image all-docs-images
1339
1340 # all-bundles packages all our deliverables as tar.gz bundles.
1341 all-bundles: product-bundles test-bundles docs-bundles static-libs-bundles
1342
1343 ALL_TARGETS += buildtools hotspot hotspot-libs hotspot-static-libs \
1344 hotspot-gensrc gensrc gendata \
1345 copy java libs static-libs launchers jmods \
1346 jdk.jdwp.agent-gensrc $(ALL_MODULES) demos \
1347 exploded-image-base exploded-image runnable-buildjdk \
1348 create-buildjdk docs-jdk-api docs-javase-api docs-reference-api docs-jdk \
1349 docs-javase docs-reference docs-javadoc mac-bundles product-images legacy-images \
1350 docs-image docs-javase-image docs-reference-image all-docs-images \
|
787 DEPS := build-test-failure-handler, \
788 ))
789 endif
790
791 ifeq ($(BUILD_JTREG_TEST_THREAD_FACTORY), true)
792 # Builds the test thread factory jtreg extension
793 $(eval $(call SetupTarget, build-test-test-thread-factory, \
794 MAKEFILE := test/BuildJtregTestThreadFactory, \
795 TARGET := build, \
796 DEPS := interim-langtools exploded-image, \
797 ))
798
799 # Copies the jtreg test thread factory into the test image
800 $(eval $(call SetupTarget, test-image-test-thread-factory, \
801 MAKEFILE := test/BuildJtregTestThreadFactory, \
802 TARGET := images, \
803 DEPS := build-test-test-thread-factory, \
804 ))
805 endif
806
807 # Builds the value class plugin jtreg extension (JEP 401)
808 $(eval $(call SetupTarget, build-test-value-class-plugin, \
809 MAKEFILE := test/BuildJtregValueClassPlugin, \
810 TARGET := build, \
811 DEPS := interim-langtools exploded-image, \
812 ))
813
814 # Copies the value class plugin into the test image
815 $(eval $(call SetupTarget, test-image-value-class-plugin, \
816 MAKEFILE := test/BuildJtregValueClassPlugin, \
817 TARGET := images, \
818 DEPS := build-test-value-class-plugin, \
819 ))
820
821 $(eval $(call SetupTarget, build-microbenchmark, \
822 MAKEFILE := test/BuildMicrobenchmark, \
823 DEPS := interim-langtools exploded-image build-test-lib, \
824 ))
825
826 ################################################################################
827 # Run tests
828
829 $(eval $(call SetupTarget, test, \
830 MAKEFILE := RunTests, \
831 ARGS := TEST="$(TEST)", \
832 DEPS := jdk-image test-image $(TEST_DEPS), \
833 ))
834
835 $(eval $(call SetupTarget, exploded-test, \
836 MAKEFILE := RunTests, \
837 ARGS := TEST="$(TEST)" JDK_IMAGE_DIR=$(JDK_OUTPUTDIR), \
838 DEPS := exploded-image test-image $(TEST_DEPS), \
839 ))
840
1325
1326 ifneq ($(JVM_TEST_IMAGE_TARGETS), )
1327 # If JVM_TEST_IMAGE_TARGETS is externally defined, use it instead of the
1328 # standard hotspot set of tests.
1329 test-image: $(JVM_TEST_IMAGE_TARGETS)
1330 else
1331 test-image: test-image-hotspot-jtreg-native
1332 ifneq ($(GTEST_FRAMEWORK_SRC), )
1333 test-image: test-image-hotspot-gtest
1334 endif
1335 endif
1336
1337 ifeq ($(BUILD_FAILURE_HANDLER), true)
1338 test-image: test-image-failure-handler
1339 endif
1340
1341 ifeq ($(BUILD_JTREG_TEST_THREAD_FACTORY), true)
1342 test-image: test-image-test-thread-factory
1343 endif
1344
1345 test-image: test-image-value-class-plugin
1346
1347 ifneq ($(JMH_CORE_JAR), )
1348 test-image: build-microbenchmark
1349 endif
1350
1351 ################################################################################
1352
1353 # all-images builds all our deliverables as images.
1354 all-images: product-images static-jdk-image test-image all-docs-images
1355
1356 # all-bundles packages all our deliverables as tar.gz bundles.
1357 all-bundles: product-bundles test-bundles docs-bundles static-libs-bundles
1358
1359 ALL_TARGETS += buildtools hotspot hotspot-libs hotspot-static-libs \
1360 hotspot-gensrc gensrc gendata \
1361 copy java libs static-libs launchers jmods \
1362 jdk.jdwp.agent-gensrc $(ALL_MODULES) demos \
1363 exploded-image-base exploded-image runnable-buildjdk \
1364 create-buildjdk docs-jdk-api docs-javase-api docs-reference-api docs-jdk \
1365 docs-javase docs-reference docs-javadoc mac-bundles product-images legacy-images \
1366 docs-image docs-javase-image docs-reference-image all-docs-images \
|