245 # Expect JT_HOME to be set for jtreg tests. (home for jtreg)
246 ifndef JT_HOME
247 JT_HOME = $(SLASH_JAVA)/re/jtreg/4.1/promoted/latest/binaries/jtreg
248 ifdef JPRT_JTREG_HOME
249 JT_HOME = $(JPRT_JTREG_HOME)
250 endif
251 endif
252
253 # When called from JPRT the TESTDIRS variable is set to the jtreg tests to run
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
|
245 # Expect JT_HOME to be set for jtreg tests. (home for jtreg)
246 ifndef JT_HOME
247 JT_HOME = $(SLASH_JAVA)/re/jtreg/4.1/promoted/latest/binaries/jtreg
248 ifdef JPRT_JTREG_HOME
249 JT_HOME = $(JPRT_JTREG_HOME)
250 endif
251 endif
252
253 # When called from JPRT the TESTDIRS variable is set to the jtreg tests to run
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 # Use agent mode
266 JTREG_BASIC_OPTIONS += -agentvm
267 # Only run automatic tests
268 JTREG_BASIC_OPTIONS += -a
269 # Report details on all failed or error tests, times too
270 JTREG_BASIC_OPTIONS += -v:fail,error,time
271 # Retain all files for failing tests
272 JTREG_BASIC_OPTIONS += -retain:fail,error
273 # Ignore tests are not run and completely silent about it
274 JTREG_IGNORE_OPTION = -ignore:quiet
275 JTREG_BASIC_OPTIONS += $(JTREG_IGNORE_OPTION)
276 # Add any extra options
277 JTREG_BASIC_OPTIONS += $(EXTRA_JTREG_OPTIONS)
278 # Set other vm and test options
279 JTREG_TEST_OPTIONS = $(JAVA_ARGS:%=-javaoptions:%) $(JAVA_OPTIONS:%=-vmoption:%) $(JAVA_VM_ARGS:%=-vmoption:%)
280
281 # Option to tell jtreg to not run tests marked with "ignore"
282 ifeq ($(PLATFORM), windows)
283 JTREG_KEY_OPTION = -k:!ignore
284 else
285 JTREG_KEY_OPTION = -k:\!ignore
286 endif
|