289 @$(RM) $(ARCHIVE_BUNDLE) 290 291 ################################################################ 292 293 # jtreg tests 294 295 # Expect JT_HOME to be set for jtreg tests. (home for jtreg) 296 ifndef JT_HOME 297 JT_HOME = $(SLASH_JAVA)/re/jtreg/4.1/promoted/latest/binaries/jtreg 298 ifdef JPRT_JTREG_HOME 299 JT_HOME = $(JPRT_JTREG_HOME) 300 endif 301 endif 302 303 # When called from JPRT the TESTDIRS variable is set to the jtreg tests to run 304 ifdef TESTDIRS 305 TEST_SELECTION = $(TESTDIRS) 306 endif 307 308 ifdef CONCURRENCY 309 EXTRA_JTREG_OPTIONS += -concurrency:$(CONCURRENCY) 310 endif 311 312 # Default JTREG to run 313 JTREG = $(JT_HOME)/bin/jtreg 314 315 # Use agent mode 316 JTREG_BASIC_OPTIONS += -agentvm 317 # Only run automatic tests 318 JTREG_BASIC_OPTIONS += -a 319 # Report details on all failed or error tests, times too 320 JTREG_BASIC_OPTIONS += -v:fail,error,time 321 # Retain all files for failing tests 322 JTREG_BASIC_OPTIONS += -retain:fail,error 323 # Ignore tests are not run and completely silent about it 324 JTREG_IGNORE_OPTION = -ignore:quiet 325 JTREG_BASIC_OPTIONS += $(JTREG_IGNORE_OPTION) 326 # Multiply by 4 the timeout factor 327 JTREG_TIMEOUT_OPTION = -timeoutFactor:4 328 JTREG_BASIC_OPTIONS += $(JTREG_TIMEOUT_OPTION) 329 # Add any extra options 330 JTREG_BASIC_OPTIONS += $(EXTRA_JTREG_OPTIONS) 331 # Set other vm and test options 332 JTREG_TEST_OPTIONS = $(JAVA_ARGS:%=-javaoptions:%) $(JAVA_OPTIONS:%=-vmoption:%) $(JAVA_VM_ARGS:%=-vmoption:%) 333 334 # Option to tell jtreg to not run tests marked with "ignore" 335 ifeq ($(PLATFORM), windows) 336 JTREG_KEY_OPTION = -k:!ignore 337 else 338 JTREG_KEY_OPTION = -k:\!ignore 339 endif 340 JTREG_BASIC_OPTIONS += $(JTREG_KEY_OPTION) 341 342 -include $(ALT_MAKE)/Makefile 343 344 # Make sure jtreg exists 345 $(JTREG): $(JT_HOME) 346 347 jtreg_tests: prep $(PRODUCT_HOME) $(JTREG) 348 ( \ 349 ( JT_HOME=$(shell $(GETMIXEDPATH) "$(JT_HOME)"); \ 350 export JT_HOME; \ | 289 @$(RM) $(ARCHIVE_BUNDLE) 290 291 ################################################################ 292 293 # jtreg tests 294 295 # Expect JT_HOME to be set for jtreg tests. (home for jtreg) 296 ifndef JT_HOME 297 JT_HOME = $(SLASH_JAVA)/re/jtreg/4.1/promoted/latest/binaries/jtreg 298 ifdef JPRT_JTREG_HOME 299 JT_HOME = $(JPRT_JTREG_HOME) 300 endif 301 endif 302 303 # When called from JPRT the TESTDIRS variable is set to the jtreg tests to run 304 ifdef TESTDIRS 305 TEST_SELECTION = $(TESTDIRS) 306 endif 307 308 ifdef CONCURRENCY 309 JTREG_BASIC_OPTIONS += -concurrency:$(CONCURRENCY) 310 endif 311 ifdef EXTRA_JTREG_OPTIONS 312 JTREG_BASIC_OPTIONS += $(EXTRA_JTREG_OPTIONS) 313 endif 314 315 # Default JTREG to run 316 JTREG = $(JT_HOME)/bin/jtreg 317 318 # Use agent mode 319 JTREG_BASIC_OPTIONS += -agentvm 320 # Only run automatic tests 321 JTREG_BASIC_OPTIONS += -a 322 # Report details on all failed or error tests, times too 323 JTREG_BASIC_OPTIONS += -v:fail,error,time 324 # Retain all files for failing tests 325 JTREG_BASIC_OPTIONS += -retain:fail,error 326 # Ignore tests are not run and completely silent about it 327 JTREG_IGNORE_OPTION = -ignore:quiet 328 JTREG_BASIC_OPTIONS += $(JTREG_IGNORE_OPTION) 329 # Multiply by 4 the timeout factor 330 JTREG_TIMEOUT_OPTION = -timeoutFactor:4 331 JTREG_BASIC_OPTIONS += $(JTREG_TIMEOUT_OPTION) 332 # Set other vm and test options 333 JTREG_TEST_OPTIONS = $(JAVA_ARGS:%=-javaoptions:%) $(JAVA_OPTIONS:%=-vmoption:%) $(JAVA_VM_ARGS:%=-vmoption:%) 334 335 # Option to tell jtreg to not run tests marked with "ignore" 336 ifeq ($(PLATFORM), windows) 337 JTREG_KEY_OPTION = -k:!ignore 338 else 339 JTREG_KEY_OPTION = -k:\!ignore 340 endif 341 JTREG_BASIC_OPTIONS += $(JTREG_KEY_OPTION) 342 343 -include $(ALT_MAKE)/Makefile 344 345 # Make sure jtreg exists 346 $(JTREG): $(JT_HOME) 347 348 jtreg_tests: prep $(PRODUCT_HOME) $(JTREG) 349 ( \ 350 ( JT_HOME=$(shell $(GETMIXEDPATH) "$(JT_HOME)"); \ 351 export JT_HOME; \ |