RFR: 8344942: Template-Based Testing Framework [v9]

Christian Hagedorn chagedorn at openjdk.org
Fri May 30 10:43:16 UTC 2025


On Wed, 7 May 2025 20:21:33 GMT, Emanuel Peter <epeter at openjdk.org> wrote:

>> test/hotspot/jtreg/testlibrary_tests/template_framework/examples/TestTutorial.java line 61:
>> 
>>> 59:         CompileFramework comp = new CompileFramework();
>>> 60: 
>>> 61:         // Add java source files.
>> 
>> Maybe it would also be nice to see the actually generated strings for the templates. Should we add an easy way to do this just for the tutorials in this file? Maybe we can do it by asking the user to pass an environment property like `-DPrintTemplates=true` or something like that. Or is there already a way provided by the framework to print the resulting templates on demand?
>
> There is `-DCompileFrameworkVerbose=true`, which will print the code that the CompileFramework compiles. I think that would be good enough, right?

If it does not print more verbose logs than just the code, then it's fine.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/24217#discussion_r2115336730


More information about the hotspot-compiler-dev mailing list