need to build a DLL for an openjdk test
staffan.larsen at oracle.com
Thu Jun 4 08:18:49 UTC 2015
> On 4 jun 2015, at 07:10, David Holmes <david.holmes at oracle.com> wrote:
> On 4/06/2015 11:43 AM, Pete Brunet wrote:
>> Cross posting to build-dev for possible insight regarding Jon's last
>> paragraph below.
> See jdk/make/test/JtregNative.gmk and other references to test-image.
There are example tests in jdk/test/native_sanity - take a look at those.
>> On 6/3/15 8:13 PM, Jonathan Gibbons wrote:
>>> On 06/03/2015 04:27 PM, Pete Brunet wrote:
>>>> Hi, As part of my test I need to build a simple DLL and then load it
>>>> from my test class. Can jtreg build the DLL or will I need to create it
>>>> and include it in my test directory? -Pete
>>> jtreg cannot directly compile native code. In theory, you could do it
>>> in a shell script, but that immediately becomes a rats nest of "which
>>> platform, and where do I find the compilers?"
>>> If you are talking about native code and tests in OpenJDK
>>> repositories, then it is not acceptable to stash binaries in OpenJDK
>>> repositories. But, there is an infrastructure in place for an OpenJDK
>>> build to build native libraries to be made available to test code.
>>> Perhaps someone else on this list can explain how that works.
>>> -- Jon
More information about the jtreg-use