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

test files with multiple test descriptions don't work well in test groups

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3 P3
    • None
    • None
    • tools
    • None

      1. adding a full test name (<filename>#<sub-test-idenitified>) into a test group casues 'file not found' error

      $ jtreg -dir:$(cd ~/ws/code-tools/jtreg/test/explicitIds/; pwd) :beta
      /Users/iignatye/ws/code-tools/jtreg/test/explicitIds/TEST.groups: group beta: file not found: Test.java#beta

      2. a filename can't be used to include tests into a test group, but can be used to exclude tests:
      $ jtreg -dir:$(cd ~/ws/code-tools/jtreg/test/explicitIds/; pwd) :includeTest
      ...
      Test results: no tests selected

      $ jtreg -dir:$(cd ~/ws/code-tools/jtreg/test/explicitIds/; pwd) :excludeTest
      ...
      Test results: passed: 1

      the patch below can be used to illustrate the problems (piggybacking on explicitIds tests of jtreg)

      diff -r 53d3280d9b47 test/explicitIds/TEST.ROOT
      --- a/test/explicitIds/TEST.ROOT Fri Jun 19 21:07:29 2020 -0700
      +++ b/test/explicitIds/TEST.ROOT Wed Jun 24 13:23:37 2020 -0700
      @@ -0,0 +1,1 @@
      +groups = TEST.groups
      diff -r 53d3280d9b47 test/explicitIds/TEST.groups
      --- /dev/null Thu Jan 01 00:00:00 1970 +0000
      +++ b/test/explicitIds/TEST.groups Wed Jun 24 13:23:37 2020 -0700
      @@ -0,0 +1,3 @@
      +includeTest = Test.java
      +excludeTest = / -Test.java
      +beta = Test.java#beta
      diff -r 53d3280d9b47 test/explicitIds/Test2.java
      --- /dev/null Thu Jan 01 00:00:00 1970 +0000
      +++ b/test/explicitIds/Test2.java Wed Jun 24 13:23:37 2020 -0700
      @@ -0,0 +1,4 @@
      +/* @test */
      +public class Test2 {
      + public static void main(String... args) { }
      +}

            Unassigned Unassigned
            iignatyev Igor Ignatyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: