testing JShell (langtools/test/jdk/jshell)?
Grigory Ptashko
grigory.ptashko at gmail.com
Sun Apr 10 14:33:46 UTC 2016
Trying to run tests with the script I get the following error:
/Users/macbook/work/jtreg/bin/jtreg -jdk:/Users/macbook/work/openjdk9/build/macosx-x86_64-normal-server-slowdebug/images/jdk/ -r:/Users/macbook/work/openjdk9/build/test/JTlang/JTreport -w:/Users/macbook/work/openjdk9/build/test/JTlang/JTwork -verbose:all -enablesystemassertions -samevm jdk/jshell/
Error: Unexpected exception occurred! java.lang.NumberFormatException: For input string: "ip"
java.lang.NumberFormatException: For input string: "ip"
at java.lang.NumberFormatException.forInputString(java.base at 9-internal/NumberFormatException.java:65)
at java.lang.Integer.parseInt(java.base at 9-internal/Integer.java:695)
at java.lang.Integer.parseInt(java.base at 9-internal/Integer.java:813)
at com.sun.javatest.regtest.Version.getBuild(Version.java:186)
at com.sun.javatest.regtest.Version.compareTo(Version.java:168)
at com.sun.javatest.regtest.Main.run(Main.java:1091)
at com.sun.javatest.regtest.Main.run(Main.java:1037)
at com.sun.javatest.regtest.Main.main(Main.java:951)
The openjdk9 sources are up-to-date and freshly built.
What am I doing wrong?
> On 9 апр. 2016 г., at 6:13, Robert Field <robert.field at oracle.com> wrote:
>
> Hi Grigory,
>
> You will need jtreg (Download jtreg/jtreg), get 4.2
>
> http://openjdk.java.net/jtreg/
>
> Attached is my personal script for running jshell tests. Which would need customization to your environment, at a minimum, JAVA_HOME would need to be updated.
>
> -Robert
>
> On 04/08/16 13:33, Grigory Ptashko wrote:
>> Hello.
>>
>> I'd like to know what is the proper way to test JShell. I mean to run all the
>> tests that are in the langtools/test/jdk/jshell?
>> I'm totally new to jdk development.
>> This is how my usual process set up:
>>
>> 1. I edit the sources with Intellij IDEA. I launched "ant idea" in the
>> langtools/make folder. And got the idea project which I se now.
>>
>> 2. Then I build the jdk with "make CONF=... images". I do it every time after
>> editing sources. It turns out that I use Idea only for browsing and editing
>> sources.
>>
>> 3. Then in the images folder I get the full JDK image which I deploy to ios and
>> test it with my own app.
>>
>> So, where in my process (and how) must the tests be included?
>>
>> Btw, if it is possible I'd like to run only langtools/test/jdk/jshell tests. And
>> not for the whole jdk.
>>
>> Thank you.
>>
>> --
>> Best regards,
>> Grigory Ptashko
>>
>> +7 (916) 1489766
>> grigory.ptashko at gmail.com
>> facebook.com/GrigoryPtashko
>>
>
> <xtestk.txt>
--
Best regards,
Grigory Ptashko
+7 (916) 1489766
grigory.ptashko at gmail.com
facebook.com/GrigoryPtashko
More information about the kulla-dev
mailing list