343 # jtreg verbosity setting 344 # Default is to report details on all failed or error tests, times too 345 JTREG_VERBOSE ?= fail,error,time 346 JTREG_BASIC_OPTIONS += $(if $(JTREG_VERBOSE),-v:$(JTREG_VERBOSE)) 347 # Retain all files for failing tests 348 JTREG_BASIC_OPTIONS += -retain:fail,error 349 # Ignore tests are not run and completely silent about it 350 JTREG_IGNORE_OPTION = -ignore:quiet 351 JTREG_BASIC_OPTIONS += $(JTREG_IGNORE_OPTION) 352 # Multiply by 4 the timeout factor 353 JTREG_TIMEOUT_OPTION = -timeoutFactor:4 354 JTREG_BASIC_OPTIONS += $(JTREG_TIMEOUT_OPTION) 355 ifeq ($(LIMIT_JTREG_VM_MEMORY), true) 356 # Set the max memory for jtreg control vm 357 JTREG_MEMORY_OPTION = -J-Xmx512m 358 JTREG_BASIC_OPTIONS += $(JTREG_MEMORY_OPTION) 359 # Set the max memory for jtreg target test vms 360 JTREG_TESTVM_MEMORY_OPTION = -vmoption:-Xmx512m 361 JTREG_TEST_OPTIONS += $(JTREG_TESTVM_MEMORY_OPTION) 362 endif 363 # Give tests access to JT_JAVA, see JDK-8141609 364 JTREG_BASIC_OPTIONS += -e:JDK8_HOME=${JT_JAVA} 365 # Give aot tests access to Visual Studio installation 366 ifneq ($(VS120COMNTOOLS), ) 367 JTREG_BASIC_OPTIONS += -e:VS120COMNTOOLS=$(shell $(GETMIXEDPATH) "$(VS120COMNTOOLS)") 368 endif 369 # Set other vm and test options 370 JTREG_TEST_OPTIONS += $(JAVA_ARGS:%=-javaoptions:%) $(JAVA_VM_ARGS:%=-vmoption:%) 371 ifneq ($(JIB_JAR), ) 372 JTREG_BASIC_OPTIONS += -cpa:$(shell $(GETMIXEDPATH) "$(JIB_JAR)") 373 endif 374 ifeq ($(IGNORE_MARKED_TESTS), true) 375 # Option to tell jtreg to not run tests marked with "ignore" 376 ifeq ($(PLATFORM), windows) 377 JTREG_KEY_OPTION = -k:!ignore 378 else 379 JTREG_KEY_OPTION = -k:\!ignore 380 endif 381 JTREG_BASIC_OPTIONS += $(JTREG_KEY_OPTION) 382 endif | 343 # jtreg verbosity setting 344 # Default is to report details on all failed or error tests, times too 345 JTREG_VERBOSE ?= fail,error,time 346 JTREG_BASIC_OPTIONS += $(if $(JTREG_VERBOSE),-v:$(JTREG_VERBOSE)) 347 # Retain all files for failing tests 348 JTREG_BASIC_OPTIONS += -retain:fail,error 349 # Ignore tests are not run and completely silent about it 350 JTREG_IGNORE_OPTION = -ignore:quiet 351 JTREG_BASIC_OPTIONS += $(JTREG_IGNORE_OPTION) 352 # Multiply by 4 the timeout factor 353 JTREG_TIMEOUT_OPTION = -timeoutFactor:4 354 JTREG_BASIC_OPTIONS += $(JTREG_TIMEOUT_OPTION) 355 ifeq ($(LIMIT_JTREG_VM_MEMORY), true) 356 # Set the max memory for jtreg control vm 357 JTREG_MEMORY_OPTION = -J-Xmx512m 358 JTREG_BASIC_OPTIONS += $(JTREG_MEMORY_OPTION) 359 # Set the max memory for jtreg target test vms 360 JTREG_TESTVM_MEMORY_OPTION = -vmoption:-Xmx512m 361 JTREG_TEST_OPTIONS += $(JTREG_TESTVM_MEMORY_OPTION) 362 endif 363 # Make it possible to specify the JIB_DATA_DIR for tests using the 364 # JIB Artifact resolver 365 JTREG_BASIC_OPTIONS += -e:JIB_DATA_DIR 366 # Give tests access to JT_JAVA, see JDK-8141609 367 JTREG_BASIC_OPTIONS += -e:JDK8_HOME=${JT_JAVA} 368 # Give aot tests access to Visual Studio installation 369 ifneq ($(VS120COMNTOOLS), ) 370 JTREG_BASIC_OPTIONS += -e:VS120COMNTOOLS=$(shell $(GETMIXEDPATH) "$(VS120COMNTOOLS)") 371 endif 372 # Set other vm and test options 373 JTREG_TEST_OPTIONS += $(JAVA_ARGS:%=-javaoptions:%) $(JAVA_VM_ARGS:%=-vmoption:%) 374 ifneq ($(JIB_JAR), ) 375 JTREG_BASIC_OPTIONS += -cpa:$(shell $(GETMIXEDPATH) "$(JIB_JAR)") 376 endif 377 ifeq ($(IGNORE_MARKED_TESTS), true) 378 # Option to tell jtreg to not run tests marked with "ignore" 379 ifeq ($(PLATFORM), windows) 380 JTREG_KEY_OPTION = -k:!ignore 381 else 382 JTREG_KEY_OPTION = -k:\!ignore 383 endif 384 JTREG_BASIC_OPTIONS += $(JTREG_KEY_OPTION) 385 endif |