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) { }
+}
$ 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) { }
+}