Add support for make run-test to support running manual JTREG tests

XMLWordPrintable


      It is currently not possible to run a manual JTREG test via make run-test:
      ----------------
       make run-test TEST="open/test/jdk/jdk/nio/zipfs/TestLocOffsetFromZip64EF.java" JTREG="OPTIONS=-manual"
      Building target 'run-test' in configuration 'macosx-x64'
      Creating jdk image
      Creating CDS archive for jdk image
      Creating CDS-NOCOOPS archive for jdk image
      Running tests using JTREG control variable 'OPTIONS=-manual'
      Test selection 'open/test/jdk/jdk/nio/zipfs/TestLocOffsetFromZip64EF.java', will run:
      * jtreg:open/test/jdk/jdk/nio/zipfs/TestLocOffsetFromZip64EF.java

      Running test 'jtreg:open/test/jdk/jdk/nio/zipfs/TestLocOffsetFromZip64EF.java'
      Error: Invalid option combination: -automatic and -manual
      Usage:
               jtreg options... tests...

      Tests can be given as files or folders containing test files, or by means of
      test groups. Long lists of options and tests may be encapsulated in "at-files".

      For brief details about a topic, use "-help <term> ...". The argument <term> is
      a command option or other word related to the topic. Use "-help all" to show all
      of the help entries.

      Information is available for the following topics.

      Verbose Options
                      These options control the amount of output written to the
                      console while running tests

      Documentation Options
                      Options for additional documentation

      General Options

      Timeout Options
                      These options control the behavior when tests run longer than
                      their specified timeout value.
      Agent Pool Options
                      Options to configure the size of the pool of VMs used to execute
                      tests in agent mode.
      Test Selection Options
                      These options can be used to refine the set of tests to be
                      executed.

      Test Mode Options
                      Each test consists of a series of steps, called actions. The
                      jtreg harness provides different modes, which determine the JVM
                      to use to execute each action. The default is to run each action
                      in a new JVM.

      JDK-related Options
                      By default, tests will be run using the default JVM in the test
                      JDK. You can pass all applicable JVM options via using
                      -vmoption; in addition, many common JVM options are also
                      supported directly. For full details of any option, consult the
                      documentation for that version of the JDK, or try using "java
                      -help" or "java -X". If an option is not applicable to a
                      particular platform or JDK release, it will be rejected.

      JCov-related options
                      jtreg provides support for using the jcov code coverage tool to
                      gather code coverage information while tests are being run. At a
                      minimum, you must specify where to find the classes to be
                      monitored, and where to find source code for those classes. For
                      more details, see the JCov User Guide and the command line help
                      for the jcov programs: Instr, Grabber, GrabberManager and
                      RepGen.

      Tests Specifying collections of tests.


      Copyright (c) 1999, 2019, Oracle and/or its affiliates. All rights reserved.
      Use is subject to license terms.

      Finished running test 'jtreg:open/test/jdk/jdk/nio/zipfs/TestLocOffsetFromZip64EF.java'
      Test report is stored in /Users/ljanders/Documents/git-workspaces/jdk/build/macosx-x64/test-results/jtreg_open_test_jdk_jdk_nio_zipfs_TestLocOffsetFromZip64EF_java

      ----------------

      It would be beneficial to provide this support to make it easier for developers and to avoid a separate process for running JTREG tests

            Assignee:
            Unassigned
            Reporter:
            Lance Andersen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: