< prev index next >

## make/RunTests.gmk

Print this page

     750   endif
     751
     752   ifneq ($$(JTREG_MAX_OUTPUT), )
     753     $1_JTREG_LAUNCHER_OPTIONS += -Djavatest.maxOutputSize=$$(JTREG_MAX_OUTPUT)
     754   endif
     755
     756   ifneq ($$($1_JTREG_MAX_MEM), 0)
     757     $1_JTREG_BASIC_OPTIONS += -vmoption:-Xmx$$($1_JTREG_MAX_MEM)
     758     $1_JTREG_LAUNCHER_OPTIONS += -Xmx$$($1_JTREG_MAX_MEM)
     759   endif
     760
     761   # Make sure the tmp dir is normalized as some tests will react badly otherwise
     762   $1_TEST_TMP_DIR := $$(abspath $$($1_TEST_SUPPORT_DIR)/tmp)
     763
     764   $1_JTREG_BASIC_OPTIONS += -$$($1_JTREG_TEST_MODE) \
     765       -verbose:$$(JTREG_VERBOSE) -retain:$$(JTREG_RETAIN) \
     766       -concurrency:$$($1_JTREG_JOBS) -timeoutFactor:$$(JTREG_TIMEOUT_FACTOR) \
     767       -vmoption:-XX:MaxRAMPercentage=$$($1_JTREG_MAX_RAM_PERCENTAGE) \
     768       -vmoption:-Djava.io.tmpdir="$$($1_TEST_TMP_DIR)"
     769
     770   $1_JTREG_BASIC_OPTIONS += -automatic -ignore:quiet
     771
     772   # Make it possible to specify the JIB_DATA_DIR for tests using the
     773   # JIB Artifact resolver
     774   $1_JTREG_BASIC_OPTIONS += -e:JIB_DATA_DIR
     775   # Some tests needs to find a boot JDK using the JDK8_HOME variable.
     776   $1_JTREG_BASIC_OPTIONS += -e:JDK8_HOME=$$(BOOT_JDK)
     777   # If running on Windows, propagate the _NT_SYMBOL_PATH to enable
     778   # symbol lookup in hserr files
     779   ifeq ($$(call isTargetOs, windows), true)
     780     $1_JTREG_BASIC_OPTIONS += -e:_NT_SYMBOL_PATH
     781   endif
     782
     783   $1_JTREG_BASIC_OPTIONS += \
     784       $$(addprefix -javaoption:, $$(JTREG_JAVA_OPTIONS)) \
     785       $$(addprefix -vmoption:, $$(JTREG_VM_OPTIONS)) \
     786       #
     787
     788   ifeq ($$($1_JTREG_ASSERT), true)
     789     $1_JTREG_BASIC_OPTIONS += -ea -esa
     790   endif
     750   endif
     751
     752   ifneq ($$(JTREG_MAX_OUTPUT), )
     753     $1_JTREG_LAUNCHER_OPTIONS += -Djavatest.maxOutputSize=$$(JTREG_MAX_OUTPUT)
     754   endif
     755
     756   ifneq ($$($1_JTREG_MAX_MEM), 0)
     757     $1_JTREG_BASIC_OPTIONS += -vmoption:-Xmx$$($1_JTREG_MAX_MEM)
     758     $1_JTREG_LAUNCHER_OPTIONS += -Xmx$$($1_JTREG_MAX_MEM)
     759   endif
     760
     761   # Make sure the tmp dir is normalized as some tests will react badly otherwise
     762   $1_TEST_TMP_DIR := $$(abspath $$($1_TEST_SUPPORT_DIR)/tmp)
     763
     764   $1_JTREG_BASIC_OPTIONS += -$$($1_JTREG_TEST_MODE) \
     765       -verbose:$$(JTREG_VERBOSE) -retain:$$(JTREG_RETAIN) \
     766       -concurrency:$$($1_JTREG_JOBS) -timeoutFactor:$$(JTREG_TIMEOUT_FACTOR) \
     767       -vmoption:-XX:MaxRAMPercentage=$$($1_JTREG_MAX_RAM_PERCENTAGE) \
     768       -vmoption:-Djava.io.tmpdir="$$($1_TEST_TMP_DIR)"
     769
     770   $1_JTREG_BASIC_OPTIONS += -automatic -ignore:quiet -Djavatest.security.noSecurityManager=true
     771
     772   # Make it possible to specify the JIB_DATA_DIR for tests using the
     773   # JIB Artifact resolver
     774   $1_JTREG_BASIC_OPTIONS += -e:JIB_DATA_DIR
     775   # Some tests needs to find a boot JDK using the JDK8_HOME variable.
     776   $1_JTREG_BASIC_OPTIONS += -e:JDK8_HOME=$$(BOOT_JDK)
     777   # If running on Windows, propagate the _NT_SYMBOL_PATH to enable
     778   # symbol lookup in hserr files
     779   ifeq ($$(call isTargetOs, windows), true)
     780     $1_JTREG_BASIC_OPTIONS += -e:_NT_SYMBOL_PATH
     781   endif
     782
     783   $1_JTREG_BASIC_OPTIONS += \
     784       $$(addprefix -javaoption:, $$(JTREG_JAVA_OPTIONS)) \
     785       $$(addprefix -vmoption:, $$(JTREG_VM_OPTIONS)) \
     786       #
     787
     788   ifeq ($$($1_JTREG_ASSERT), true)
     789     $1_JTREG_BASIC_OPTIONS += -ea -esa
     790   endif

< prev index next >