274 # How to create the test bundle (pass or fail, we want to create this) 275 # Follow command with ";$(BUNDLE_UP_AND_EXIT)", so it always gets executed. 276 ZIP_UP_RESULTS = ( $(MKDIR) -p `dirname $(ARCHIVE_BUNDLE)` \ 277 && $(CD) $(ABS_TEST_OUTPUT_DIR) \ 278 && $(ZIP) -q -r $(ARCHIVE_BUNDLE) . ) 279 SUMMARY_TXT = $(shell $(GETMIXEDPATH) "$(ABS_TEST_OUTPUT_DIR)")/JTreport/text/summary.txt 280 STATS_TXT_NAME = Stats.txt 281 STATS_TXT = $(shell $(GETMIXEDPATH) "$(ABS_TEST_OUTPUT_DIR)")/$(STATS_TXT_NAME) 282 RUNLIST = $(shell $(GETMIXEDPATH) "$(ABS_TEST_OUTPUT_DIR)")/runlist.txt 283 PASSLIST = $(shell $(GETMIXEDPATH) "$(ABS_TEST_OUTPUT_DIR)")/passlist.txt 284 FAILLIST = $(shell $(GETMIXEDPATH) "$(ABS_TEST_OUTPUT_DIR)")/faillist.txt 285 EXITCODE = $(shell $(GETMIXEDPATH) "$(ABS_TEST_OUTPUT_DIR)")/exitcode.txt 286 287 TESTEXIT = \ 288 if [ ! -s $(EXITCODE) ] ; then \ 289 $(ECHO) "ERROR: EXITCODE file not filled in."; \ 290 $(ECHO) "1" > $(EXITCODE); \ 291 fi ; \ 292 testExitCode=`$(CAT) $(EXITCODE)`; \ 293 $(ECHO) "EXIT CODE: $${testExitCode}"; \ 294 exit ${testExitCode} 295 296 BUNDLE_UP_AND_EXIT = \ 297 ( \ 298 jtregExitCode=$$? && \ 299 _summary="$(SUMMARY_TXT)"; \ 300 $(RM) -f $(STATS_TXT) $(RUNLIST) $(PASSLIST) $(FAILLIST) $(EXITCODE); \ 301 $(ECHO) "$${jtregExitCode}" > $(EXITCODE); \ 302 if [ -r "$${_summary}" ] ; then \ 303 $(ECHO) "Summary: $${_summary}" > $(STATS_TXT); \ 304 $(EXPAND) $${_summary} | $(EGREP) -v ' Not run\.' > $(RUNLIST); \ 305 $(EGREP) ' Passed\.' $(RUNLIST) \ 306 | $(EGREP) -v ' Error\.' \ 307 | $(EGREP) -v ' Failed\.' > $(PASSLIST); \ 308 ( $(EGREP) ' Failed\.' $(RUNLIST); \ 309 $(EGREP) ' Error\.' $(RUNLIST); \ 310 $(EGREP) -v ' Passed\.' $(RUNLIST) ) \ 311 | $(SORT) | $(UNIQ) > $(FAILLIST); \ 312 if [ $${jtregExitCode} != 0 -o -s $(FAILLIST) ] ; then \ 313 $(EXPAND) $(FAILLIST) \ 314 | $(CUT) -d' ' -f1 \ 315 | $(SED) -e 's@^@FAILED: @' >> $(STATS_TXT); \ 316 if [ $${jtregExitCode} = 0 ] ; then \ 317 jtregExitCode=1; \ 318 fi; \ 319 fi; \ 320 runc="`$(CAT) $(RUNLIST) | $(WC) -l | $(AWK) '{print $$1;}'`"; \ 321 passc="`$(CAT) $(PASSLIST) | $(WC) -l | $(AWK) '{print $$1;}'`"; \ 322 failc="`$(CAT) $(FAILLIST) | $(WC) -l | $(AWK) '{print $$1;}'`"; \ 323 exclc="`$(CAT) $(EXCLUDELIST) | $(WC) -l | $(AWK) '{print $$1;}'`"; \ 401 done 402 @$(ECHO) "# at least one line" >> $@.temp2 403 @( $(EGREP) -v '^#' $@.temp2 ; true ) > $@ 404 @$(ECHO) "Excluding list contains `$(EXPAND) $@ | $(WC) -l` items" 405 endif 406 407 # Select list of directories that exist 408 define TestDirs 409 $(foreach i,$1,$(wildcard ${i})) $(foreach i,$1,$(wildcard closed/${i})) 410 endef 411 # Running batches of tests with or without samevm 412 define RunSamevmBatch 413 $(ECHO) "Running tests in samevm mode: $(call TestDirs, $?)" 414 $(MAKE) TESTDIRS="$(call TestDirs, $?)" USE_JTREG_SAMEVM=true UNIQUE_DIR=$@ jtreg_tests 415 endef 416 define RunOthervmBatch 417 $(ECHO) "Running tests in othervm mode: $(call TestDirs, $?)" 418 $(MAKE) TESTDIRS="$(call TestDirs, $?)" USE_JTREG_SAMEVM=false UNIQUE_DIR=$@ jtreg_tests 419 endef 420 define SummaryInfo 421 $(ECHO) "Summary for: $?" 422 $(CAT) $(?:%=$(ABS_TEST_OUTPUT_DIR)/%/$(STATS_TXT_NAME)) 423 endef 424 425 # ------------------------------------------------------------------ 426 427 # Batches of tests (somewhat arbitrary assigments to jdk_* targets) 428 JDK_ALL_TARGETS = 429 430 # Stable othervm testruns (minus items from PROBLEM_LIST) 431 # Using samevm has problems, and doesn't help performance as much as others. 432 JDK_ALL_TARGETS += jdk_awt 433 jdk_awt: com/sun/awt java/awt sun/awt 434 $(call RunOthervmBatch) 435 436 # Stable samevm testruns (minus items from PROBLEM_LIST) 437 JDK_ALL_TARGETS += jdk_beans1 438 jdk_beans1: java/beans/beancontext java/beans/PropertyChangeSupport \ 439 java/beans/Introspector java/beans/Performance \ 440 java/beans/VetoableChangeSupport java/beans/Statement 441 $(call RunSamevmBatch) 442 443 # Stable othervm testruns (minus items from PROBLEM_LIST) 444 # Using samevm has serious problems with these tests 445 JDK_ALL_TARGETS += jdk_beans2 446 jdk_beans2: java/beans/Beans java/beans/EventHandler java/beans/XMLDecoder \ 447 java/beans/PropertyEditor 448 $(call RunOthervmBatch) 449 JDK_ALL_TARGETS += jdk_beans3 450 jdk_beans3: java/beans/XMLEncoder 451 $(call RunOthervmBatch) 452 453 jdk_beans: jdk_beans1 jdk_beans2 jdk_beans3 454 @$(SummaryInfo) 455 456 # Stable samevm testruns (minus items from PROBLEM_LIST) 457 JDK_ALL_TARGETS += jdk_io 458 jdk_io: java/io 459 $(call RunSamevmBatch) 460 461 # Stable samevm testruns (minus items from PROBLEM_LIST) 462 JDK_ALL_TARGETS += jdk_lang 463 jdk_lang: java/lang 464 $(call RunSamevmBatch) 465 466 # Stable othervm testruns (minus items from PROBLEM_LIST) 467 # Using samevm has serious problems with these tests 468 JDK_ALL_TARGETS += jdk_management1 469 jdk_management1: javax/management 470 $(call RunOthervmBatch) 471 472 # Stable othervm testruns (minus items from PROBLEM_LIST) 473 # Using samevm has serious problems with these tests 474 JDK_ALL_TARGETS += jdk_management2 475 jdk_management2: com/sun/jmx com/sun/management sun/management 476 $(call RunOthervmBatch) 477 478 jdk_management: jdk_management1 jdk_management2 479 @$(SummaryInfo) 480 481 # Stable samevm testruns (minus items from PROBLEM_LIST) 482 JDK_ALL_TARGETS += jdk_math 483 jdk_math: java/math 484 $(call RunSamevmBatch) 485 486 # Stable samevm testruns (minus items from PROBLEM_LIST) 487 JDK_ALL_TARGETS += jdk_misc 488 jdk_misc: demo javax/imageio javax/naming javax/print javax/script \ 489 javax/smartcardio javax/sound com/sun/java com/sun/jndi \ 490 com/sun/org sun/misc sun/pisces 491 $(call RunSamevmBatch) 492 493 # Stable samevm testruns (minus items from PROBLEM_LIST) 494 JDK_ALL_TARGETS += jdk_net 495 jdk_net: com/sun/net java/net sun/net 496 $(call RunSamevmBatch) 497 498 # Stable samevm testruns (minus items from PROBLEM_LIST) 499 JDK_ALL_TARGETS += jdk_nio1 500 jdk_nio1: java/nio/file 501 $(call RunSamevmBatch) 502 503 # Stable othervm testruns (minus items from PROBLEM_LIST) 504 # Using samevm has serious problems with these tests 505 JDK_ALL_TARGETS += jdk_nio2 506 jdk_nio2: java/nio/Buffer java/nio/ByteOrder \ 507 java/nio/channels java/nio/BufferPoolMXBean java/nio/MappedByteBuffer 508 $(call RunOthervmBatch) 509 JDK_ALL_TARGETS += jdk_nio3 510 jdk_nio3: com/sun/nio sun/nio 511 $(call RunOthervmBatch) 512 513 jdk_nio: jdk_nio1 jdk_nio2 jdk_nio3 514 @$(SummaryInfo) 515 516 # Stable othervm testruns (minus items from PROBLEM_LIST) 517 # Using samevm has serious problems with these tests 518 JDK_ALL_TARGETS += jdk_rmi 519 jdk_rmi: java/rmi javax/rmi sun/rmi 520 $(call RunOthervmBatch) 521 522 # Stable samevm testruns (minus items from PROBLEM_LIST) 523 JDK_ALL_TARGETS += jdk_security1 524 jdk_security1: java/security 525 $(call RunSamevmBatch) 526 527 # Stable othervm testruns (minus items from PROBLEM_LIST) 528 # Using samevm has serious problems with these tests 529 JDK_ALL_TARGETS += jdk_security2 530 jdk_security2: javax/crypto com/sun/crypto 531 $(call RunOthervmBatch) 532 JDK_ALL_TARGETS += jdk_security3 533 jdk_security3: com/sun/security lib/security javax/security sun/security 534 $(call RunOthervmBatch) 535 536 jdk_security: jdk_security1 jdk_security2 jdk_security3 537 @$(SummaryInfo) 538 539 # Stable othervm testruns (minus items from PROBLEM_LIST) 540 # Using samevm has problems, and doesn't help performance as much as others. 541 JDK_ALL_TARGETS += jdk_swing 542 jdk_swing: javax/swing sun/java2d 543 $(call RunOthervmBatch) 544 545 # Stable samevm testruns (minus items from PROBLEM_LIST) 546 JDK_ALL_TARGETS += jdk_text 547 jdk_text: java/text sun/text 548 $(call RunSamevmBatch) 549 550 # Stable othervm testruns (minus items from PROBLEM_LIST) 551 # Using samevm has serious problems with these tests 552 JDK_ALL_TARGETS += jdk_tools1 553 jdk_tools1: com/sun/jdi 554 $(call RunSamevmBatch) 555 JDK_ALL_TARGETS += jdk_tools2 556 jdk_tools2: com/sun/tools sun/jvmstat sun/tools tools vm com/sun/servicetag com/sun/tracing 557 $(call RunOthervmBatch) 558 559 jdk_tools: jdk_tools1 jdk_tools2 560 @$(SummaryInfo) 561 562 # Stable samevm testruns (minus items from PROBLEM_LIST) 563 JDK_ALL_TARGETS += jdk_util 564 jdk_util: java/util sun/util 565 $(call RunSamevmBatch) 566 567 # ------------------------------------------------------------------ 568 569 # Run all tests 570 jdk_all: $(filter-out jdk_awt jdk_rmi jdk_swing, $(JDK_ALL_TARGETS)) 571 @$(SummaryInfo) 572 573 # These are all phony targets 574 PHONY_LIST += $(JDK_ALL_TARGETS) 575 576 # ------------------------------------------------------------------ 577 578 # Default JTREG to run (win32 script works for everybody) 579 JTREG = $(JT_HOME)/win32/bin/jtreg 580 # Add any extra options (samevm etc.) 581 JTREG_BASIC_OPTIONS += $(EXTRA_JTREG_OPTIONS) 582 # Only run automatic tests 583 JTREG_BASIC_OPTIONS += -a 584 # Report details on all failed or error tests, times too 585 JTREG_BASIC_OPTIONS += -v:fail,error,time 586 # Retain all files for failing tests 587 JTREG_BASIC_OPTIONS += -retain:fail,error 588 # Ignore tests are not run and completely silent about it 589 JTREG_BASIC_OPTIONS += -ignore:quiet 590 # Multiple by 2 the timeout numbers 591 JTREG_BASIC_OPTIONS += -timeoutFactor:2 592 # Boost the max memory for jtreg to avoid gc thrashing 593 JTREG_BASIC_OPTIONS += -J-Xmx512m 594 595 # Make sure jtreg exists 596 $(JTREG): $(JT_HOME) 597 598 # Run jtreg 599 jtreg_tests: prep $(PRODUCT_HOME) $(JTREG) $(EXCLUDELIST) 600 @$(EXPAND) $(EXCLUDELIST) \ 601 | $(CUT) -d' ' -f1 \ 602 | $(SED) -e 's@^@Excluding: @' 603 ( \ 604 ( JT_HOME=$(shell $(GETMIXEDPATH) "$(JT_HOME)"); \ 605 export JT_HOME; \ 606 $(PREP_DISPLAY) && \ 607 $(shell $(GETMIXEDPATH) "$(JTREG)") \ 608 $(JTREG_BASIC_OPTIONS) \ 609 -r:$(shell $(GETMIXEDPATH) "$(ABS_TEST_OUTPUT_DIR)")/JTreport \ 610 -w:$(shell $(GETMIXEDPATH) "$(ABS_TEST_OUTPUT_DIR)")/JTwork \ 611 -jdk:$(shell $(GETMIXEDPATH) "$(PRODUCT_HOME)") \ | 274 # How to create the test bundle (pass or fail, we want to create this) 275 # Follow command with ";$(BUNDLE_UP_AND_EXIT)", so it always gets executed. 276 ZIP_UP_RESULTS = ( $(MKDIR) -p `dirname $(ARCHIVE_BUNDLE)` \ 277 && $(CD) $(ABS_TEST_OUTPUT_DIR) \ 278 && $(ZIP) -q -r $(ARCHIVE_BUNDLE) . ) 279 SUMMARY_TXT = $(shell $(GETMIXEDPATH) "$(ABS_TEST_OUTPUT_DIR)")/JTreport/text/summary.txt 280 STATS_TXT_NAME = Stats.txt 281 STATS_TXT = $(shell $(GETMIXEDPATH) "$(ABS_TEST_OUTPUT_DIR)")/$(STATS_TXT_NAME) 282 RUNLIST = $(shell $(GETMIXEDPATH) "$(ABS_TEST_OUTPUT_DIR)")/runlist.txt 283 PASSLIST = $(shell $(GETMIXEDPATH) "$(ABS_TEST_OUTPUT_DIR)")/passlist.txt 284 FAILLIST = $(shell $(GETMIXEDPATH) "$(ABS_TEST_OUTPUT_DIR)")/faillist.txt 285 EXITCODE = $(shell $(GETMIXEDPATH) "$(ABS_TEST_OUTPUT_DIR)")/exitcode.txt 286 287 TESTEXIT = \ 288 if [ ! -s $(EXITCODE) ] ; then \ 289 $(ECHO) "ERROR: EXITCODE file not filled in."; \ 290 $(ECHO) "1" > $(EXITCODE); \ 291 fi ; \ 292 testExitCode=`$(CAT) $(EXITCODE)`; \ 293 $(ECHO) "EXIT CODE: $${testExitCode}"; \ 294 exit $${testExitCode} 295 296 BUNDLE_UP_AND_EXIT = \ 297 ( \ 298 jtregExitCode=$$? && \ 299 _summary="$(SUMMARY_TXT)"; \ 300 $(RM) -f $(STATS_TXT) $(RUNLIST) $(PASSLIST) $(FAILLIST) $(EXITCODE); \ 301 $(ECHO) "$${jtregExitCode}" > $(EXITCODE); \ 302 if [ -r "$${_summary}" ] ; then \ 303 $(ECHO) "Summary: $(UNIQUE_DIR)" > $(STATS_TXT); \ 304 $(EXPAND) $${_summary} | $(EGREP) -v ' Not run\.' > $(RUNLIST); \ 305 $(EGREP) ' Passed\.' $(RUNLIST) \ 306 | $(EGREP) -v ' Error\.' \ 307 | $(EGREP) -v ' Failed\.' > $(PASSLIST); \ 308 ( $(EGREP) ' Failed\.' $(RUNLIST); \ 309 $(EGREP) ' Error\.' $(RUNLIST); \ 310 $(EGREP) -v ' Passed\.' $(RUNLIST) ) \ 311 | $(SORT) | $(UNIQ) > $(FAILLIST); \ 312 if [ $${jtregExitCode} != 0 -o -s $(FAILLIST) ] ; then \ 313 $(EXPAND) $(FAILLIST) \ 314 | $(CUT) -d' ' -f1 \ 315 | $(SED) -e 's@^@FAILED: @' >> $(STATS_TXT); \ 316 if [ $${jtregExitCode} = 0 ] ; then \ 317 jtregExitCode=1; \ 318 fi; \ 319 fi; \ 320 runc="`$(CAT) $(RUNLIST) | $(WC) -l | $(AWK) '{print $$1;}'`"; \ 321 passc="`$(CAT) $(PASSLIST) | $(WC) -l | $(AWK) '{print $$1;}'`"; \ 322 failc="`$(CAT) $(FAILLIST) | $(WC) -l | $(AWK) '{print $$1;}'`"; \ 323 exclc="`$(CAT) $(EXCLUDELIST) | $(WC) -l | $(AWK) '{print $$1;}'`"; \ 401 done 402 @$(ECHO) "# at least one line" >> $@.temp2 403 @( $(EGREP) -v '^#' $@.temp2 ; true ) > $@ 404 @$(ECHO) "Excluding list contains `$(EXPAND) $@ | $(WC) -l` items" 405 endif 406 407 # Select list of directories that exist 408 define TestDirs 409 $(foreach i,$1,$(wildcard ${i})) $(foreach i,$1,$(wildcard closed/${i})) 410 endef 411 # Running batches of tests with or without samevm 412 define RunSamevmBatch 413 $(ECHO) "Running tests in samevm mode: $(call TestDirs, $?)" 414 $(MAKE) TESTDIRS="$(call TestDirs, $?)" USE_JTREG_SAMEVM=true UNIQUE_DIR=$@ jtreg_tests 415 endef 416 define RunOthervmBatch 417 $(ECHO) "Running tests in othervm mode: $(call TestDirs, $?)" 418 $(MAKE) TESTDIRS="$(call TestDirs, $?)" USE_JTREG_SAMEVM=false UNIQUE_DIR=$@ jtreg_tests 419 endef 420 define SummaryInfo 421 $(ECHO) "########################################################" 422 $(CAT) $(?:%=$(ABS_TEST_OUTPUT_DIR)/%/$(STATS_TXT_NAME)) 423 $(ECHO) "########################################################" 424 endef 425 426 # ------------------------------------------------------------------ 427 428 # Batches of tests (somewhat arbitrary assigments to jdk_* targets) 429 JDK_ALL_TARGETS = 430 431 # Stable othervm testruns (minus items from PROBLEM_LIST) 432 # Using samevm has problems, and doesn't help performance as much as others. 433 JDK_ALL_TARGETS += jdk_awt 434 jdk_awt: com/sun/awt java/awt sun/awt 435 $(call RunOthervmBatch) 436 437 # Stable samevm testruns (minus items from PROBLEM_LIST) 438 JDK_ALL_TARGETS += jdk_beans1 439 jdk_beans1: java/beans/beancontext java/beans/PropertyChangeSupport \ 440 java/beans/Introspector java/beans/Performance \ 441 java/beans/VetoableChangeSupport java/beans/Statement 442 $(call RunSamevmBatch) 443 444 # Stable othervm testruns (minus items from PROBLEM_LIST) 445 # Using samevm has serious problems with these tests 446 JDK_ALL_TARGETS += jdk_beans2 447 jdk_beans2: java/beans/Beans java/beans/EventHandler java/beans/XMLDecoder \ 448 java/beans/PropertyEditor 449 $(call RunOthervmBatch) 450 451 # Stable othervm testruns (minus items from PROBLEM_LIST) 452 # Using samevm has serious problems with these tests 453 JDK_ALL_TARGETS += jdk_beans3 454 jdk_beans3: java/beans/XMLEncoder 455 $(call RunOthervmBatch) 456 457 # All beans tests 458 jdk_beans: jdk_beans1 jdk_beans2 jdk_beans3 459 @$(SummaryInfo) 460 461 # Stable samevm testruns (minus items from PROBLEM_LIST) 462 JDK_ALL_TARGETS += jdk_io 463 jdk_io: java/io 464 $(call RunSamevmBatch) 465 466 # Stable samevm testruns (minus items from PROBLEM_LIST) 467 JDK_ALL_TARGETS += jdk_lang 468 jdk_lang: java/lang 469 $(call RunSamevmBatch) 470 471 # Stable othervm testruns (minus items from PROBLEM_LIST) 472 # Using samevm has serious problems with these tests 473 JDK_ALL_TARGETS += jdk_management1 474 jdk_management1: javax/management 475 $(call RunOthervmBatch) 476 477 # Stable othervm testruns (minus items from PROBLEM_LIST) 478 # Using samevm has serious problems with these tests 479 JDK_ALL_TARGETS += jdk_management2 480 jdk_management2: com/sun/jmx com/sun/management sun/management 481 $(call RunOthervmBatch) 482 483 # All management tests 484 jdk_management: jdk_management1 jdk_management2 485 @$(SummaryInfo) 486 487 # Stable samevm testruns (minus items from PROBLEM_LIST) 488 JDK_ALL_TARGETS += jdk_math 489 jdk_math: java/math 490 $(call RunSamevmBatch) 491 492 # Stable samevm testruns (minus items from PROBLEM_LIST) 493 JDK_ALL_TARGETS += jdk_misc 494 jdk_misc: demo javax/imageio javax/naming javax/print javax/script \ 495 javax/smartcardio javax/sound com/sun/java com/sun/jndi \ 496 com/sun/org sun/misc sun/pisces 497 $(call RunSamevmBatch) 498 499 # Stable samevm testruns (minus items from PROBLEM_LIST) 500 JDK_ALL_TARGETS += jdk_net 501 jdk_net: com/sun/net java/net sun/net 502 $(call RunSamevmBatch) 503 504 # Stable samevm testruns (minus items from PROBLEM_LIST) 505 JDK_ALL_TARGETS += jdk_nio1 506 jdk_nio1: java/nio/file 507 $(call RunSamevmBatch) 508 509 # Stable othervm testruns (minus items from PROBLEM_LIST) 510 # Using samevm has serious problems with these tests 511 JDK_ALL_TARGETS += jdk_nio2 512 jdk_nio2: java/nio/Buffer java/nio/ByteOrder \ 513 java/nio/channels java/nio/BufferPoolMXBean java/nio/MappedByteBuffer 514 $(call RunOthervmBatch) 515 516 # Stable othervm testruns (minus items from PROBLEM_LIST) 517 # Using samevm has serious problems with these tests 518 JDK_ALL_TARGETS += jdk_nio3 519 jdk_nio3: com/sun/nio sun/nio 520 $(call RunOthervmBatch) 521 522 # All nio tests 523 jdk_nio: jdk_nio1 jdk_nio2 jdk_nio3 524 @$(SummaryInfo) 525 526 # Stable othervm testruns (minus items from PROBLEM_LIST) 527 # Using samevm has serious problems with these tests 528 JDK_ALL_TARGETS += jdk_rmi 529 jdk_rmi: java/rmi javax/rmi sun/rmi 530 $(call RunOthervmBatch) 531 532 # Stable samevm testruns (minus items from PROBLEM_LIST) 533 JDK_ALL_TARGETS += jdk_security1 534 jdk_security1: java/security 535 $(call RunSamevmBatch) 536 537 # Stable othervm testruns (minus items from PROBLEM_LIST) 538 # Using samevm has serious problems with these tests 539 JDK_ALL_TARGETS += jdk_security2 540 jdk_security2: javax/crypto com/sun/crypto 541 $(call RunOthervmBatch) 542 543 # Stable othervm testruns (minus items from PROBLEM_LIST) 544 # Using samevm has serious problems with these tests 545 JDK_ALL_TARGETS += jdk_security3 546 jdk_security3: com/sun/security lib/security javax/security sun/security 547 $(call RunOthervmBatch) 548 549 # All security tests 550 jdk_security: jdk_security1 jdk_security2 jdk_security3 551 @$(SummaryInfo) 552 553 # Stable othervm testruns (minus items from PROBLEM_LIST) 554 # Using samevm has problems, and doesn't help performance as much as others. 555 JDK_ALL_TARGETS += jdk_swing 556 jdk_swing: javax/swing sun/java2d 557 $(call RunOthervmBatch) 558 559 # Stable samevm testruns (minus items from PROBLEM_LIST) 560 JDK_ALL_TARGETS += jdk_text 561 jdk_text: java/text sun/text 562 $(call RunSamevmBatch) 563 564 # Stable samevm testruns (minus items from PROBLEM_LIST) 565 JDK_ALL_TARGETS += jdk_tools1 566 jdk_tools1: com/sun/jdi 567 $(call RunSamevmBatch) 568 569 # Stable othervm testruns (minus items from PROBLEM_LIST) 570 # Using samevm has serious problems with these tests 571 JDK_ALL_TARGETS += jdk_tools2 572 jdk_tools2: com/sun/tools sun/jvmstat sun/tools tools vm com/sun/servicetag com/sun/tracing 573 $(call RunOthervmBatch) 574 575 # All tools tests 576 jdk_tools: jdk_tools1 jdk_tools2 577 @$(SummaryInfo) 578 579 # Stable samevm testruns (minus items from PROBLEM_LIST) 580 JDK_ALL_TARGETS += jdk_util 581 jdk_util: java/util sun/util 582 $(call RunSamevmBatch) 583 584 # ------------------------------------------------------------------ 585 586 # Run all tests 587 FILTER_OUT_LIST=jdk_awt jdk_rmi jdk_swing 588 JDK_ALL_STABLE_TARGETS := $(filter-out $(FILTER_OUT_LIST), $(JDK_ALL_TARGETS)) 589 jdk_all: $(JDK_ALL_STABLE_TARGETS) 590 @$(SummaryInfo) 591 592 # These are all phony targets 593 PHONY_LIST += $(JDK_ALL_TARGETS) 594 595 # ------------------------------------------------------------------ 596 597 # Default JTREG to run (win32 script works for everybody) 598 JTREG = $(JT_HOME)/win32/bin/jtreg 599 # Add any extra options (samevm etc.) 600 JTREG_BASIC_OPTIONS += $(EXTRA_JTREG_OPTIONS) 601 # Only run automatic tests 602 JTREG_BASIC_OPTIONS += -a 603 # Report details on all failed or error tests, times too 604 JTREG_BASIC_OPTIONS += -v:fail,error,time 605 # Retain all files for failing tests 606 JTREG_BASIC_OPTIONS += -retain:fail,error 607 # Ignore tests are not run and completely silent about it 608 JTREG_BASIC_OPTIONS += -ignore:quiet 609 # Multiple by 4 the timeout numbers 610 JTREG_BASIC_OPTIONS += -timeoutFactor:4 611 # Boost the max memory for jtreg to avoid gc thrashing 612 JTREG_BASIC_OPTIONS += -J-Xmx512m 613 614 # Make sure jtreg exists 615 $(JTREG): $(JT_HOME) 616 617 # Run jtreg 618 jtreg_tests: prep $(PRODUCT_HOME) $(JTREG) $(EXCLUDELIST) 619 @$(EXPAND) $(EXCLUDELIST) \ 620 | $(CUT) -d' ' -f1 \ 621 | $(SED) -e 's@^@Excluding: @' 622 ( \ 623 ( JT_HOME=$(shell $(GETMIXEDPATH) "$(JT_HOME)"); \ 624 export JT_HOME; \ 625 $(PREP_DISPLAY) && \ 626 $(shell $(GETMIXEDPATH) "$(JTREG)") \ 627 $(JTREG_BASIC_OPTIONS) \ 628 -r:$(shell $(GETMIXEDPATH) "$(ABS_TEST_OUTPUT_DIR)")/JTreport \ 629 -w:$(shell $(GETMIXEDPATH) "$(ABS_TEST_OUTPUT_DIR)")/JTwork \ 630 -jdk:$(shell $(GETMIXEDPATH) "$(PRODUCT_HOME)") \ |