640
641 # Default JTREG to run (win32 script works for everybody)
642 JTREG = $(JT_HOME)/win32/bin/jtreg
643 # Add any extra options (agentvm etc.)
644 JTREG_BASIC_OPTIONS += $(EXTRA_JTREG_OPTIONS)
645 # Only run automatic tests
646 JTREG_BASIC_OPTIONS += -a
647 # Always turn on assertions
648 JTREG_ASSERT_OPTION = -ea -esa
649 JTREG_BASIC_OPTIONS += $(JTREG_ASSERT_OPTION)
650 # Report details on all failed or error tests, times too
651 JTREG_BASIC_OPTIONS += -v:fail,error,time
652 # Retain all files for failing tests
653 JTREG_BASIC_OPTIONS += -retain:fail,error
654 # Ignore tests are not run and completely silent about it
655 JTREG_IGNORE_OPTION = -ignore:quiet
656 JTREG_BASIC_OPTIONS += $(JTREG_IGNORE_OPTION)
657 # Multiple by 4 the timeout numbers
658 JTREG_TIMEOUT_OPTION = -timeoutFactor:4
659 JTREG_BASIC_OPTIONS += $(JTREG_TIMEOUT_OPTION)
660 # Boost the max memory for jtreg to avoid gc thrashing
661 JTREG_MEMORY_OPTION = -J-Xmx512m
662 JTREG_BASIC_OPTIONS += $(JTREG_MEMORY_OPTION)
663
664 # Make sure jtreg exists
665 $(JTREG): $(JT_HOME)
666
667 # Run jtreg
668 jtreg_tests: prep $(PRODUCT_HOME) $(JTREG) $(EXCLUDELIST)
669 @$(EXPAND) $(EXCLUDELIST) \
670 | $(CUT) -d' ' -f1 \
671 | $(SED) -e 's@^@Excluding: @'
672 ( \
673 ( JT_HOME=$(shell $(GETMIXEDPATH) "$(JT_HOME)"); \
674 export JT_HOME; \
675 $(shell $(GETMIXEDPATH) "$(JTREG)") \
676 $(JTREG_BASIC_OPTIONS) \
677 -r:$(shell $(GETMIXEDPATH) "$(ABS_TEST_OUTPUT_DIR)")/JTreport \
678 -w:$(shell $(GETMIXEDPATH) "$(ABS_TEST_OUTPUT_DIR)")/JTwork \
679 -jdk:$(shell $(GETMIXEDPATH) "$(PRODUCT_HOME)") \
680 -exclude:$(shell $(GETMIXEDPATH) "$(EXCLUDELIST)") \
681 $(JTREG_TEST_OPTIONS) \
682 $(TESTDIRS) \
|
640
641 # Default JTREG to run (win32 script works for everybody)
642 JTREG = $(JT_HOME)/win32/bin/jtreg
643 # Add any extra options (agentvm etc.)
644 JTREG_BASIC_OPTIONS += $(EXTRA_JTREG_OPTIONS)
645 # Only run automatic tests
646 JTREG_BASIC_OPTIONS += -a
647 # Always turn on assertions
648 JTREG_ASSERT_OPTION = -ea -esa
649 JTREG_BASIC_OPTIONS += $(JTREG_ASSERT_OPTION)
650 # Report details on all failed or error tests, times too
651 JTREG_BASIC_OPTIONS += -v:fail,error,time
652 # Retain all files for failing tests
653 JTREG_BASIC_OPTIONS += -retain:fail,error
654 # Ignore tests are not run and completely silent about it
655 JTREG_IGNORE_OPTION = -ignore:quiet
656 JTREG_BASIC_OPTIONS += $(JTREG_IGNORE_OPTION)
657 # Multiple by 4 the timeout numbers
658 JTREG_TIMEOUT_OPTION = -timeoutFactor:4
659 JTREG_BASIC_OPTIONS += $(JTREG_TIMEOUT_OPTION)
660 # Set the max memory for jtreg control vm
661 JTREG_MEMORY_OPTION = -J-Xmx512m
662 JTREG_BASIC_OPTIONS += $(JTREG_MEMORY_OPTION)
663 # Set the max memory for jtreg target test vms
664 JTREG_TESTVM_MEMORY_OPTION = -vmoption:-Xmx512m
665 JTREG_BASIC_OPTIONS += $(JTREG_TESTVM_MEMORY_OPTION)
666
667 # Make sure jtreg exists
668 $(JTREG): $(JT_HOME)
669
670 # Run jtreg
671 jtreg_tests: prep $(PRODUCT_HOME) $(JTREG) $(EXCLUDELIST)
672 @$(EXPAND) $(EXCLUDELIST) \
673 | $(CUT) -d' ' -f1 \
674 | $(SED) -e 's@^@Excluding: @'
675 ( \
676 ( JT_HOME=$(shell $(GETMIXEDPATH) "$(JT_HOME)"); \
677 export JT_HOME; \
678 $(shell $(GETMIXEDPATH) "$(JTREG)") \
679 $(JTREG_BASIC_OPTIONS) \
680 -r:$(shell $(GETMIXEDPATH) "$(ABS_TEST_OUTPUT_DIR)")/JTreport \
681 -w:$(shell $(GETMIXEDPATH) "$(ABS_TEST_OUTPUT_DIR)")/JTwork \
682 -jdk:$(shell $(GETMIXEDPATH) "$(PRODUCT_HOME)") \
683 -exclude:$(shell $(GETMIXEDPATH) "$(EXCLUDELIST)") \
684 $(JTREG_TEST_OPTIONS) \
685 $(TESTDIRS) \
|