RFR: 7903443: Propagate verbose flag to agents [v2]

Jonathan Gibbons jjg at openjdk.org
Wed May 29 19:06:18 UTC 2024


On Wed, 29 May 2024 04:06:45 GMT, Christian Stein <cstein at openjdk.org> wrote:

>> I guess it is expected to be available, by construction in the build, so this was effectively just an assertion, right?
>
> Yes. Without this assertion in place, an IDE-based launch of `jtreg`'s main program is possible. For example, here are the options for a test run for all self-tests in `test/junit`:
> 
> -Djunit.path=<ABSOLUTE-PATH-TO>/jtreg/build/deps/junit/junit-platform-console-standalone-1.10.2.jar
> com.sun.javatest.regtest.Main
> -v:pass,error,fail
> test/junit
> 
> I tried to provide an empty `jars.properties` instead of removing the check, but that didn't work out.

Which tests are you hoping to run by having the IDE invoke the main program directly?  And how about you hoping to invoke `jtreg` -- on the source directory or on the generated `.jar` files?

If you are hoping to run JDK tests, I can believe that the IDE can make JUnit and TestNG available -- but what about asmtools -- which is also normally in `jars.properties`.

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

PR Review Comment: https://git.openjdk.org/jtreg/pull/187#discussion_r1619352883


More information about the jtreg-dev mailing list