Integrated: 8267162 Add jtreg test group definitions for langtools

Maurizio Cimadamore mcimadamore at openjdk.java.net
Mon May 17 12:58:37 UTC 2021


On Fri, 14 May 2021 14:36:51 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:

> This patch adds test group definitions for langtools, so that langtools tests can be more easily discovered when running make.
> 
> For instance, with this patch, typing:
> 
> 
> $ make run-test-langtools_
> 
> 
> and then hit tab (on Linux) reveals the following possible completions:
> 
> 
> run-test-langtools_all                   run-test-langtools_javac                 run-test-langtools_javadoc               run-test-langtools_javap                 run-test-langtools_jdeprscan             run-test-langtools_jdeps                 run-test-langtools_jshell                run-test-langtools_jshell_unstable       run-test-langtools_sjavac
> run-test-langtools_all-only              run-test-langtools_javac-only            run-test-langtools_javadoc-only          run-test-langtools_javap-only            run-test-langtools_jdeprscan-only        run-test-langtools_jdeps-only            run-test-langtools_jshell-only           run-test-langtools_jshell_unstable-only  run-test-langtools_sjavac-only
> 
> 
> (the `-only` targets are added by make - the others are the ones added by this patch).
> 
> I've added a group for every major tool:
> 
> * javac
> * javadoc
> * jshell
> * javap
> * jdeps
> * jdeprscan
> * sjavac
> 
> Plus a target (`langtools_all`) which runs all langtools test. For every tool target, the group also run shared tests (e.g. the coding rules tests).
> 
> I also reorganized tier1 and tier2 groups a little: both tiers were referring to a group of jshell tests which is less stable than the others, so has been moved to tier2. Instead of repeating the list of test twice, I've defined away the list of unstable test in a group, `langtools_jshell_unstable` and then defined tier1 as `langtools_all - langtools_jshell_unstable` while tier2 is defined as simply `langtools_jshell_unstable`.

This pull request has now been integrated.

Changeset: dd5a84c6
Author:    Maurizio Cimadamore <mcimadamore at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/dd5a84c68c4f6128c3568c6f4fc1302c6aaadf01
Stats:     65 lines in 1 file changed: 43 ins; 15 del; 7 mod

8267162: Add jtreg test group definitions for langtools

Reviewed-by: jjg

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

PR: https://git.openjdk.java.net/jdk/pull/4033


More information about the compiler-dev mailing list