< prev index next >

test/TestCommon.gmk

Print this page
rev 49544 : [mq]: fixvsquotes


 429 JTREG_IGNORE_OPTION = -ignore:quiet
 430 JTREG_BASIC_OPTIONS += $(JTREG_IGNORE_OPTION)
 431 # Multiply by 4 the timeout factor
 432 JTREG_TIMEOUT_OPTION =  -timeoutFactor:4
 433 JTREG_BASIC_OPTIONS += $(JTREG_TIMEOUT_OPTION)
 434 ifeq ($(LIMIT_JTREG_VM_MEMORY), true)
 435   # Set the max memory for jtreg control vm
 436   JTREG_MEMORY_OPTION = -J-Xmx512m
 437   JTREG_BASIC_OPTIONS += $(JTREG_MEMORY_OPTION)
 438   # Set the max memory for jtreg target test vms
 439   JTREG_TESTVM_MEMORY_OPTION = -vmoption:-Xmx512m
 440   JTREG_TEST_OPTIONS += $(JTREG_TESTVM_MEMORY_OPTION)
 441 endif
 442 # Make it possible to specify the JIB_DATA_DIR for tests using the
 443 # JIB Artifact resolver
 444 JTREG_BASIC_OPTIONS += -e:JIB_DATA_DIR
 445 # Give tests access to JT_JAVA, see JDK-8141609
 446 JTREG_BASIC_OPTIONS += -e:JDK8_HOME=${JT_JAVA}
 447 # Give aot tests access to Visual Studio installation
 448 ifneq ($(VS120COMNTOOLS), )
 449   JTREG_BASIC_OPTIONS += -e:VS120COMNTOOLS=$(shell $(GETMIXEDPATH) "$(VS120COMNTOOLS)")
 450 endif
 451 # Set other vm and test options
 452 JTREG_TEST_OPTIONS += $(JAVA_ARGS:%=-javaoptions:%) $(JAVA_VM_ARGS:%=-vmoption:%)
 453 ifneq ($(JIB_JAR), )
 454   JTREG_BASIC_OPTIONS += -cpa:$(shell $(GETMIXEDPATH) "$(JIB_JAR)")
 455 endif
 456 ifeq ($(IGNORE_MARKED_TESTS), true)
 457   # Option to tell jtreg to not run tests marked with "ignore"
 458   ifeq ($(PLATFORM), windows)
 459     JTREG_KEY_OPTION = -k:!ignore
 460   else
 461     JTREG_KEY_OPTION = -k:\!ignore
 462   endif
 463   JTREG_BASIC_OPTIONS += $(JTREG_KEY_OPTION)
 464 endif
 465 
 466 # Make sure jtreg exists
 467 ifeq ($(USE_WINDOWS_EXISTENCE_CHECK), true)
 468   jtreg_exists:
 469         test -d $(shell $(GETMIXEDPATH) "$(JT_HOME)")




 429 JTREG_IGNORE_OPTION = -ignore:quiet
 430 JTREG_BASIC_OPTIONS += $(JTREG_IGNORE_OPTION)
 431 # Multiply by 4 the timeout factor
 432 JTREG_TIMEOUT_OPTION =  -timeoutFactor:4
 433 JTREG_BASIC_OPTIONS += $(JTREG_TIMEOUT_OPTION)
 434 ifeq ($(LIMIT_JTREG_VM_MEMORY), true)
 435   # Set the max memory for jtreg control vm
 436   JTREG_MEMORY_OPTION = -J-Xmx512m
 437   JTREG_BASIC_OPTIONS += $(JTREG_MEMORY_OPTION)
 438   # Set the max memory for jtreg target test vms
 439   JTREG_TESTVM_MEMORY_OPTION = -vmoption:-Xmx512m
 440   JTREG_TEST_OPTIONS += $(JTREG_TESTVM_MEMORY_OPTION)
 441 endif
 442 # Make it possible to specify the JIB_DATA_DIR for tests using the
 443 # JIB Artifact resolver
 444 JTREG_BASIC_OPTIONS += -e:JIB_DATA_DIR
 445 # Give tests access to JT_JAVA, see JDK-8141609
 446 JTREG_BASIC_OPTIONS += -e:JDK8_HOME=${JT_JAVA}
 447 # Give aot tests access to Visual Studio installation
 448 ifneq ($(VS120COMNTOOLS), )
 449   JTREG_BASIC_OPTIONS += -e:VS120COMNTOOLS="$(shell $(GETMIXEDPATH) "$(patsubst %\,%,$(VS120COMNTOOLS))")"
 450 endif
 451 # Set other vm and test options
 452 JTREG_TEST_OPTIONS += $(JAVA_ARGS:%=-javaoptions:%) $(JAVA_VM_ARGS:%=-vmoption:%)
 453 ifneq ($(JIB_JAR), )
 454   JTREG_BASIC_OPTIONS += -cpa:$(shell $(GETMIXEDPATH) "$(JIB_JAR)")
 455 endif
 456 ifeq ($(IGNORE_MARKED_TESTS), true)
 457   # Option to tell jtreg to not run tests marked with "ignore"
 458   ifeq ($(PLATFORM), windows)
 459     JTREG_KEY_OPTION = -k:!ignore
 460   else
 461     JTREG_KEY_OPTION = -k:\!ignore
 462   endif
 463   JTREG_BASIC_OPTIONS += $(JTREG_KEY_OPTION)
 464 endif
 465 
 466 # Make sure jtreg exists
 467 ifeq ($(USE_WINDOWS_EXISTENCE_CHECK), true)
 468   jtreg_exists:
 469         test -d $(shell $(GETMIXEDPATH) "$(JT_HOME)")


< prev index next >