Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8230726 Improve jpackage jtreg tests
  3. JDK-8232279

Extend functionality of jtreg test helpers

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: internal
    • Fix Version/s: internal
    • Component/s: tools
    • Labels:
    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      Need more functionality from test helpers introduced in JDK-8230726:
      - Add support for parameterized tests. Currently helpers allow to specify parameters passed in test functions. This is sufficient for simple tests, but is not sufficient for tests that would require more than one parameter.
      - Get rid of duplicating functions in JPackageCommand class to get path of app launchers, runtime directory, etc. Currently there are two sets of these functions. One for the case when JPackageCommand instance is configured to produce platform package and another for app image building. This is overly complicated.
      - Add helper functions to lookup for text in commands output. There are a lot of cases when the test parses command output checking if particular text is or is not present in command output. It would be good to have helper to reduce `output.stream().filter(...).findFirst()...` boilerplate.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              asemenyuk Alexey Semenyuk
              Reporter:
              asemenyuk Alexey Semenyuk
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: