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

Christian Hagedorn chagedorn at openjdk.org
Fri May 16 09:13:14 UTC 2025


On Fri, 16 May 2025 07:06:04 GMT, Christian Hagedorn <chagedorn at openjdk.org> wrote:

>> Emanuel Peter has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Elaborate why there is only one Renderer
>
> test/hotspot/jtreg/compiler/lib/template_framework/Template.java line 88:
> 
>> 86:  * To get an executable test, we define a Template that produces a class body with a main method. The Template
>> 87:  * takes a list of types, and calls the {@code testTemplate} defined above for each type and operator. We use
>> 88:  * the {@code TestFramework} to call our {@code @Test} methods.
> 
> For the first mention, you can also add a link:
> Suggestion:
> 
>  * the {@link TestFramework} to call our {@code @Test} methods.
> 
> Also requires:
> 
> import compiler.lib.ir_framework.TestFramework;

Just a side note, maybe it's time to bite the bullet and finally rename `TestFramework` to `IRFramework` given that we have many frameworks now designed for tests... :shrug:

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

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


More information about the hotspot-compiler-dev mailing list