jtreg only load specified @modules? (was 8166450: SMARTCARDIO related tests failed on compilation)

Wang Weijun weijun.wang at oracle.com
Wed Sep 21 14:11:03 UTC 2016


Hi, jtreg-dev

Is it possible for jtreg (probably with an option) to only load modules described in the @modules tags in complication and execution? This will ensure the @modules tags are written correctly without a dedicated tool (or manual check).

Thanks
Max


> Begin forwarded message:
> 
> From: Sergei Kovalev <sergei.kovalev at oracle.com>
> Subject: Re: RFR(s): 8166450: SMARTCARDIO related tests failed on compilation
> Date: September 21, 2016 at 10:06:14 PM GMT+8
> To: Wang Weijun <weijun.wang at oracle.com>
> Cc: security-dev at openjdk.java.net
> 
> Hi Max,
> 
> This is standard VM option. To emulate minimal JRE I'm using "--limit-modules java.base" option.
> 
> 
> 21.09.16 17:04, Wang Weijun wrote:
>> Change looks fine.
>> 
>> One question: When you say the --limit-modules option, is it a new option for jtreg that allows it to automatically choose modules described in the @modules tags? Or it's just the standard VM option and you still need to provide the module names yourself?
>> 
>> Thanks
>> Max
>> 
>>> On Sep 21, 2016, at 8:08 PM, Sergei Kovalev <sergei.kovalev at oracle.com> wrote:
>>> 
>>> Hello team,
>>> 
>>> Could you please review small fix for regression tests related to smartcardio API?
>>> 
>>> BugID: https://bugs.openjdk.java.net/browse/JDK-8166450
>>> WebRev: http://cr.openjdk.java.net/~skovalev/8166450/webrev.00/
>>> 
>>> Issue: unable to run smartcardio related tests bu jtreg by default.
>>> Root cause: missed module declaration in the tests header.
>>> Solution: Adding missed module declaration.
>>> Testing done: Fix tested locally using jtreg and "--limit-modules" command line option.
>>> 
>>> -- 
>>> With best regards,
>>> Sergei
>>> 
> 
> -- 
> With best regards,
> Sergei
> 



More information about the jtreg-dev mailing list