< prev index next >

make/test/JtregGraalUnit.gmk

Print this page




  49 
  50     # This evaluation is expensive and should only be done if this target was
  51     # explicitly called.
  52     ifneq ($(filter build-test-hotspot-jtreg-graal, $(MAKECMDGOALS)), )
  53 
  54       TEST_COMPILE_CP := \
  55           $(JDK_OUTPUTDIR)/modules/jdk.internal.vm.compiler \
  56           $(JDK_OUTPUTDIR)/modules/jdk.internal.vm.ci \
  57           $(LIB_OUTPUTDIR)/junit-4.12.jar \
  58           $(LIB_OUTPUTDIR)/asm-5.0.4.jar \
  59           $(LIB_OUTPUTDIR)/asm-tree-5.0.4.jar \
  60           $(LIB_OUTPUTDIR)/java-allocation-instrumenter.jar \
  61           $(LIB_OUTPUTDIR)/hamcrest-core-1.3.jar
  62 
  63       TEST_JAVAC_FLAGS := \
  64           -Xlint:none \
  65           -processorpath $(BUILDTOOLS_OUTPUTDIR)/jdk.vm.compiler.replacements.verifier.jar \
  66           --add-exports jdk.unsupported/sun.misc=ALL-UNNAMED \
  67           --add-exports java.base/jdk.internal.misc=ALL-UNNAMED \
  68 
  69       ### Copy 3rd party libs
  70       $(eval $(call SetupCopyFiles, COPY_GRAALUNIT_LIBS, \
  71           FILES := $(wildcard $(GRAALUNIT_LIB)/*.jar), \
  72           DEST := $(LIB_OUTPUTDIR), \
  73       ))
  74 
  75       TARGETS_EXTRA_LIB += $(COPY_GRAALUNIT_LIBS)
  76 
  77       ### Compile graalunit tests
  78       $(eval $(call SetupJavaCompilation, BUILD_VM_COMPILER_TESTS, \
  79           SETUP := GENERATE_USINGJDKBYTECODE, \
  80           SRC := \
  81               $(SRC_DIR)/jdk.internal.vm.compiler.collections.test/src \
  82               $(SRC_DIR)/org.graalvm.compiler.api.directives.test/src \
  83               $(SRC_DIR)/org.graalvm.compiler.api.test/src \
  84               $(SRC_DIR)/org.graalvm.compiler.asm.aarch64.test/src \
  85               $(SRC_DIR)/org.graalvm.compiler.asm.amd64.test/src \
  86               $(SRC_DIR)/org.graalvm.compiler.asm.sparc.test/src \
  87               $(SRC_DIR)/org.graalvm.compiler.asm.test/src \
  88               $(SRC_DIR)/org.graalvm.compiler.core.aarch64.test/src \
  89               $(SRC_DIR)/org.graalvm.compiler.core.amd64.test/src \
  90               $(SRC_DIR)/org.graalvm.compiler.core.jdk9.test/src \
  91               $(SRC_DIR)/org.graalvm.compiler.core.test/src \
  92               $(SRC_DIR)/org.graalvm.compiler.debug.test/src \
  93               $(SRC_DIR)/org.graalvm.compiler.graph.test/src \
  94               $(SRC_DIR)/org.graalvm.compiler.hotspot.aarch64.test/src \
  95               $(SRC_DIR)/org.graalvm.compiler.hotspot.amd64.test/src \
  96               $(SRC_DIR)/org.graalvm.compiler.hotspot.jdk9.test/src \
  97               $(SRC_DIR)/org.graalvm.compiler.hotspot.lir.test/src \
  98               $(SRC_DIR)/org.graalvm.compiler.hotspot.sparc.test/src \
  99               $(SRC_DIR)/org.graalvm.compiler.hotspot.test/src \
 100               $(SRC_DIR)/org.graalvm.compiler.jtt/src \
 101               $(SRC_DIR)/org.graalvm.compiler.lir.jtt/src \
 102               $(SRC_DIR)/org.graalvm.compiler.lir.test/src \
 103               $(SRC_DIR)/org.graalvm.compiler.loop.test/src \
 104               $(SRC_DIR)/org.graalvm.compiler.nodes.test/src \
 105               $(SRC_DIR)/org.graalvm.compiler.options.test/src \
 106               $(SRC_DIR)/org.graalvm.compiler.phases.common.test/src \
 107               $(SRC_DIR)/org.graalvm.compiler.replacements.jdk12.test/src \
 108               $(SRC_DIR)/org.graalvm.compiler.replacements.jdk9.test/src \
 109               $(SRC_DIR)/org.graalvm.compiler.replacements.test/src \
 110               $(SRC_DIR)/org.graalvm.compiler.test/src \
 111               $(SRC_DIR)/org.graalvm.util.test/src \
 112               , \
 113           EXCLUDE_FILES := org/graalvm/compiler/core/test/VerifyDebugUsageTest.java, \
 114           BIN := $(COMPILE_OUTPUTDIR)/jdk.vm.compiler.tests, \
 115           CLASSPATH := $(TEST_COMPILE_CP), \
 116           ADD_JAVAC_FLAGS := $(TEST_JAVAC_FLAGS), \
 117       ))
 118 
 119       TARGETS_BUILD += $(BUILD_VM_COMPILER_TESTS)
 120 
 121       ### Compile graalunit tests which require -XDstringConcat=inline
 122       $(eval $(call SetupJavaCompilation, BUILD_VM_COMPILER_TESTS_SET2, \
 123           SETUP := GENERATE_USINGJDKBYTECODE, \
 124           DEPENDS := $(BUILD_VM_COMPILER_TESTS), \
 125           SRC := $(SRC_DIR)/org.graalvm.compiler.core.test/src, \
 126           INCLUDE_FILES := org/graalvm/compiler/core/test/VerifyDebugUsageTest.java, \
 127           BIN := $(COMPILE_OUTPUTDIR)/jdk.vm.compiler.tests, \
 128           CLASSPATH := \
 129               $(TEST_COMPILE_CP) \
 130               $(COMPILE_OUTPUTDIR)/jdk.vm.compiler.tests \
 131               , \
 132           ADD_JAVAC_FLAGS := \
 133               $(TEST_JAVAC_FLAGS) \
 134               -XDstringConcat=inline \
 135               , \
 136       ))
 137 




  49 
  50     # This evaluation is expensive and should only be done if this target was
  51     # explicitly called.
  52     ifneq ($(filter build-test-hotspot-jtreg-graal, $(MAKECMDGOALS)), )
  53 
  54       TEST_COMPILE_CP := \
  55           $(JDK_OUTPUTDIR)/modules/jdk.internal.vm.compiler \
  56           $(JDK_OUTPUTDIR)/modules/jdk.internal.vm.ci \
  57           $(LIB_OUTPUTDIR)/junit-4.12.jar \
  58           $(LIB_OUTPUTDIR)/asm-5.0.4.jar \
  59           $(LIB_OUTPUTDIR)/asm-tree-5.0.4.jar \
  60           $(LIB_OUTPUTDIR)/java-allocation-instrumenter.jar \
  61           $(LIB_OUTPUTDIR)/hamcrest-core-1.3.jar
  62 
  63       TEST_JAVAC_FLAGS := \
  64           -Xlint:none \
  65           -processorpath $(BUILDTOOLS_OUTPUTDIR)/jdk.vm.compiler.replacements.verifier.jar \
  66           --add-exports jdk.unsupported/sun.misc=ALL-UNNAMED \
  67           --add-exports java.base/jdk.internal.misc=ALL-UNNAMED \
  68 
  69     TARGETS_EXTRA_LIB += $(COPY_GRAALUNIT_LIBS)




  70 
  71       TARGETS_EXTRA_LIB += $(COPY_GRAALUNIT_LIBS)
  72 
  73     TARGETS_BUILD += $(BUILD_VM_COMPILER_TESTS)








































  74 
  75       TARGETS_BUILD += $(BUILD_VM_COMPILER_TESTS)
  76 
  77       ### Compile graalunit tests which require -XDstringConcat=inline
  78       $(eval $(call SetupJavaCompilation, BUILD_VM_COMPILER_TESTS_SET2, \
  79           SETUP := GENERATE_USINGJDKBYTECODE, \
  80           DEPENDS := $(BUILD_VM_COMPILER_TESTS), \
  81           SRC := $(SRC_DIR)/org.graalvm.compiler.core.test/src, \
  82           INCLUDE_FILES := org/graalvm/compiler/core/test/VerifyDebugUsageTest.java, \
  83           BIN := $(COMPILE_OUTPUTDIR)/jdk.vm.compiler.tests, \
  84           CLASSPATH := \
  85               $(TEST_COMPILE_CP) \
  86               $(COMPILE_OUTPUTDIR)/jdk.vm.compiler.tests \
  87               , \
  88           ADD_JAVAC_FLAGS := \
  89               $(TEST_JAVAC_FLAGS) \
  90               -XDstringConcat=inline \
  91               , \
  92       ))
  93 


< prev index next >