test with a 3rd party jar file?
Rob McKenna
rob.mckenna at oracle.com
Mon Jun 24 22:42:20 UTC 2013
Some interesting conversations were had lately about shell scripts
during Joe Darcy's recent infrastructure tech talk. In particular around
the idea of a "jdk.testing" package to provide libraries that would help
with the types of operations seen in shell scripts. I'm really hoping to
spend some time on this myself over the coming weeks. (in an effort to
at least understand why we need shell scripts and whether we could do
something else instead)
In any case it should be possible to simply replace the script with a
java program that does the same thing. That would require fiddling with
Process however, and its debatable as to whether that would result in
fewer test failures. (shell scripts counting for a proportionally large
number of those failures) JSR199 might help to reduce the amount of
ProcessBuilders required in this instance.
-Rob
On 24/06/13 20:50, Seán Coffey wrote:
> You should be able to do it with scripts. Mandy designed something
> similar recently :
>
> http://opengrok.ie.oracle.com:8080/opengrok/xref/jdk7u-cpu/jdk/test/closed/java/util/logging/SystemLoggerTest.sh
>
>
> In the recent infrastructure meeting, scripts for tests were frowned
> upon. I don't see any alternative unless jtreg is able to handle this
> relatively simple (common?) setup request.
>
> regards,
> Sean.
>
>
> On 24/06/13 18:33, huizhe wang wrote:
>> Hi,
>>
>> Does anyone know if it's possible to automate a test with a 3rd party
>> jar file on the bootclasspath or java.endorsed.dirs?
>>
>> I have a test that I run manually with Apache Xerces jar.
>>
>> Thanks,
>> Joe
>>
>>
>> -------- Original Message --------
>> Subject: [JBS] (JDK-8016773) Regression: diff. behavior with
>> user-defined SAXParser
>> Date: Mon, 24 Jun 2013 17:04:02 +0000 (UTC)
>> From: Pavel Stepanov (JBS) <jbs at jbs.oracle.com>
>> To: huizhe.wang at oracle.com
>>
>>
>>
>> Pavel Stepanov
>> <https://jbs.oracle.com/bugs/secure/ViewProfile.jspa?name=pastepan>
>> commented on Backport JDK-8016773
>> <https://jbs.oracle.com/bugs/browse/JDK-8016773>
>> *Regression: diff. behavior with user-defined SAXParser*
>> <https://jbs.oracle.com/bugs/browse/JDK-8016773>
>>
>>
>>
>> so, does this mean it is impossible to write regresion test?
>>
>> This message is automatically generated by JIRA.
>> If you think it was sent incorrectly, please contact your JIRA
>> administrators
>> <https://jbs.oracle.com/bugs/secure/ContactAdministrators%21default.jspa>.
>> For more information on JIRA, see:
>> http://www.atlassian.com/software/jira
>>
>>
>>
>
More information about the core-libs-dev
mailing list