Proposal: jtreg tests with native components
Jonathan Gibbons
jonathan.gibbons at oracle.com
Mon Apr 28 18:24:53 UTC 2014
On 04/28/2014 11:18 AM, Sergey Bylokhov wrote:
> Hello,
> I know it is crazy idea but why we cannot prebuild all tests at once
> and use only one jar like jck do?
>
Because the test execution model is intentionally different from JCK and
other test harnesses like TestNG and JUnit.
jtreg specifies that a test is a series of actions, some of which may be
compilation steps and some of which may be execution steps. It is not
the case that all tests want to be compiled up front and then executed.
If you're testing consistent (or inconsistent) compilation, for example,
you may want to compile some classes one way, then try compiling and
using them a different way, as a way of testing separate compilation.
There's a bunch of tests like that for serialization as well.
Bottom line: JDK tests are not always plain old API tests.
-- Jon
More information about the build-dev
mailing list