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

Jonathan Gibbons jonathan.gibbons at oracle.com
Wed Sep 21 17:16:42 UTC 2016


Max,

Does --limit-modules not give you the effect you are asking for?

--limit-modules wil reduce the default set of observable modules. jtreg 
will use --add-modules for any necessary modules specified in @modules.

-- Jon

On 09/21/2016 07:11 AM, Wang Weijun wrote:
> 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