Uploaded image for project: 'Code Tools'
  1. Code Tools
  2. CODETOOLS-7900263

Allow group exclusion via the command-line

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P3 P3
    • None
    • None
    • tools
    • None

      The groups facility allows you to both combine groups into larger groups and to exclude groups to reduce the test coverage. This is used to great effect to handle tests for optional components - eg something that exists in a full JDK but not a jre - in its simplest form:

      jdk = \
        :jre \
        :needs_jdk

      jre = \
        test/ \ # all tests
       -:needs_jdk

      needs_jdk = ...

      However there are a number of "optional" components leading to a combinatorial explosion of potentially needed groups. Rather than explicitly defining all these groups it would be very convenient to be able to implicitly define a new group on the command-line by selecting various existing groups for includusion and exclusion. E.g.:

      jtreg :jdk -x :needs_a -x :needs_b

            cstein Christian Stein
            dholmes David Holmes
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: