297 @$(MKDIR) -p $(ABS_TEST_OUTPUT_DIR)
298 @$(MKDIR) -p `dirname $(ARCHIVE_BUNDLE)`
299
300 # Cleanup
301 clean:
302 @$(RM) -r $(ABS_TEST_OUTPUT_DIR)
303 @$(RM) $(ARCHIVE_BUNDLE)
304
305 ################################################################
306
307 # jtreg tests
308
309 # Expect JT_HOME to be set for jtreg tests. (home for jtreg)
310 ifndef JT_HOME
311 JT_HOME = $(SLASH_JAVA)/re/jtreg/4.1/promoted/latest/binaries/jtreg
312 ifdef JPRT_JTREG_HOME
313 JT_HOME = $(JPRT_JTREG_HOME)
314 endif
315 endif
316
317 # When called from JPRT the TESTDIRS variable is set to the jtreg tests to run
318 ifdef TESTDIRS
319 TEST_SELECTION = $(TESTDIRS)
320 endif
321
322 # Concurrency based on min(cores / 2, 12)
323 ifdef NUM_CORES
324 CONCURRENCY := $(shell expr $(NUM_CORES) / 2)
325 ifeq ($(CONCURRENCY), 0)
326 CONCURRENCY := 1
327 else ifeq ($(shell expr $(CONCURRENCY) \> 12), 1)
328 CONCURRENCY := 12
329 endif
330 else
331 CONCURRENCY := 1
332 endif
333 JTREG_BASIC_OPTIONS += -concurrency:$(CONCURRENCY)
334
335 # Make sure MaxRAMFraction is high enough to not cause OOM or swapping since we may end up with a lot of JVM's
336 JTREG_BASIC_OPTIONS += -vmoption:-XX:MaxRAMFraction=$(shell expr $(CONCURRENCY) \* 4)
|
297 @$(MKDIR) -p $(ABS_TEST_OUTPUT_DIR)
298 @$(MKDIR) -p `dirname $(ARCHIVE_BUNDLE)`
299
300 # Cleanup
301 clean:
302 @$(RM) -r $(ABS_TEST_OUTPUT_DIR)
303 @$(RM) $(ARCHIVE_BUNDLE)
304
305 ################################################################
306
307 # jtreg tests
308
309 # Expect JT_HOME to be set for jtreg tests. (home for jtreg)
310 ifndef JT_HOME
311 JT_HOME = $(SLASH_JAVA)/re/jtreg/4.1/promoted/latest/binaries/jtreg
312 ifdef JPRT_JTREG_HOME
313 JT_HOME = $(JPRT_JTREG_HOME)
314 endif
315 endif
316
317 # Problematic tests to be excluded
318 PROBLEM_LISTS=$(call MixedDirs,$(wildcard ProblemList.txt closed/ProblemList.txt))
319
320 # Create exclude list for this platform and arch
321 ifdef NO_EXCLUDES
322 JTREG_EXCLUSIONS =
323 else
324 JTREG_EXCLUSIONS = $(PROBLEM_LISTS:%=-exclude:%)
325 endif
326
327 # convert list of directories to dos paths
328 define MixedDirs
329 $(foreach i,$1,$(shell $(GETMIXEDPATH) "${i}"))
330 endef
331
332 # When called from JPRT the TESTDIRS variable is set to the jtreg tests to run
333 ifdef TESTDIRS
334 TEST_SELECTION = $(TESTDIRS)
335 endif
336
337 # Concurrency based on min(cores / 2, 12)
338 ifdef NUM_CORES
339 CONCURRENCY := $(shell expr $(NUM_CORES) / 2)
340 ifeq ($(CONCURRENCY), 0)
341 CONCURRENCY := 1
342 else ifeq ($(shell expr $(CONCURRENCY) \> 12), 1)
343 CONCURRENCY := 12
344 endif
345 else
346 CONCURRENCY := 1
347 endif
348 JTREG_BASIC_OPTIONS += -concurrency:$(CONCURRENCY)
349
350 # Make sure MaxRAMFraction is high enough to not cause OOM or swapping since we may end up with a lot of JVM's
351 JTREG_BASIC_OPTIONS += -vmoption:-XX:MaxRAMFraction=$(shell expr $(CONCURRENCY) \* 4)
|