254 ifdef TESTDIRS 255 TEST_SELECTION = $(TESTDIRS) 256 endif 257 258 ifdef CONCURRENCY 259 EXTRA_JTREG_OPTIONS += -concurrency:$(CONCURRENCY) 260 endif 261 262 # Default JTREG to run 263 JTREG = $(JT_HOME)/bin/jtreg 264 265 # Only run automatic tests 266 JTREG_BASIC_OPTIONS += -a 267 # Report details on all failed or error tests, times too 268 JTREG_BASIC_OPTIONS += -v:fail,error,time 269 # Retain all files for failing tests 270 JTREG_BASIC_OPTIONS += -retain:fail,error 271 # Ignore tests are not run and completely silent about it 272 JTREG_IGNORE_OPTION = -ignore:quiet 273 JTREG_BASIC_OPTIONS += $(JTREG_IGNORE_OPTION) 274 # Add any extra options 275 JTREG_BASIC_OPTIONS += $(EXTRA_JTREG_OPTIONS) 276 # Set other vm and test options 277 JTREG_TEST_OPTIONS = $(JAVA_ARGS:%=-javaoptions:%) $(JAVA_OPTIONS:%=-vmoption:%) $(JAVA_VM_ARGS:%=-vmoption:%) 278 279 # Option to tell jtreg to not run tests marked with "ignore" 280 ifeq ($(PLATFORM), windows) 281 JTREG_KEY_OPTION = -k:!ignore 282 else 283 JTREG_KEY_OPTION = -k:\!ignore 284 endif 285 JTREG_BASIC_OPTIONS += $(JTREG_KEY_OPTION) 286 287 # Make sure jtreg exists 288 $(JTREG): $(JT_HOME) 289 290 jtreg_tests: prep $(PRODUCT_HOME) $(JTREG) 291 ( \ 292 ( JT_HOME=$(shell $(GETMIXEDPATH) "$(JT_HOME)"); \ 293 export JT_HOME; \ | 254 ifdef TESTDIRS 255 TEST_SELECTION = $(TESTDIRS) 256 endif 257 258 ifdef CONCURRENCY 259 EXTRA_JTREG_OPTIONS += -concurrency:$(CONCURRENCY) 260 endif 261 262 # Default JTREG to run 263 JTREG = $(JT_HOME)/bin/jtreg 264 265 # Only run automatic tests 266 JTREG_BASIC_OPTIONS += -a 267 # Report details on all failed or error tests, times too 268 JTREG_BASIC_OPTIONS += -v:fail,error,time 269 # Retain all files for failing tests 270 JTREG_BASIC_OPTIONS += -retain:fail,error 271 # Ignore tests are not run and completely silent about it 272 JTREG_IGNORE_OPTION = -ignore:quiet 273 JTREG_BASIC_OPTIONS += $(JTREG_IGNORE_OPTION) 274 # Multiply by 4 the timeout factor 275 JTREG_TIMEOUT_OPTION = -timeoutFactor:4 276 JTREG_BASIC_OPTIONS += $(JTREG_TIMEOUT_OPTION) 277 # Add any extra options 278 JTREG_BASIC_OPTIONS += $(EXTRA_JTREG_OPTIONS) 279 # Set other vm and test options 280 JTREG_TEST_OPTIONS = $(JAVA_ARGS:%=-javaoptions:%) $(JAVA_OPTIONS:%=-vmoption:%) $(JAVA_VM_ARGS:%=-vmoption:%) 281 282 # Option to tell jtreg to not run tests marked with "ignore" 283 ifeq ($(PLATFORM), windows) 284 JTREG_KEY_OPTION = -k:!ignore 285 else 286 JTREG_KEY_OPTION = -k:\!ignore 287 endif 288 JTREG_BASIC_OPTIONS += $(JTREG_KEY_OPTION) 289 290 # Make sure jtreg exists 291 $(JTREG): $(JT_HOME) 292 293 jtreg_tests: prep $(PRODUCT_HOME) $(JTREG) 294 ( \ 295 ( JT_HOME=$(shell $(GETMIXEDPATH) "$(JT_HOME)"); \ 296 export JT_HOME; \ |