harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ivan Popov (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-3226) [jdktools][build] update build scripts to enable building and running tests
Date Thu, 22 Feb 2007 12:18:05 GMT

     [ https://issues.apache.org/jira/browse/HARMONY-3226?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Ivan Popov updated HARMONY-3226:

    Attachment: tests_support_in_build_scripts.patch

I'm attaching  patch for jdktools build scripts which enables building and running tests from
jdktools modules.

This patch is based on the '004.run-test.patch' from HARMONY-2180. But I've also made some
refactoring of the build scripts to enable per-module support for building binaries and running
tests. I also removed some redundant items copy-pasted from classlib builds.

This patch uses property "hy.deploy" to point to the existing Harmony deploy binaries. By
default it points to "working_vm/build/deploy" directory unless property "hy.hdk" is specified
in ant command line. Before tests are started, jre directory from "hy.deploy" is copied to
the local deploy/jdk directory and then tests are run against this local JRE. However, if
property "test.jre.home" is specified in ant command line, then copying is not performed and
tests are just started against specified JRE.

This enables running tests with default binaries (built with federated build), against existing
HDK, or against any random JRE, for example, RI JRE.

I've tested modified scripts on both Windows and Linux and they appeared working well.
To check this run federated build, go to jdktools directory, and run "ant test" command. You
may also specify particular module to run tests, for example, -Dbuild.module=jpda .

Several JPDA tests fail and one test hangs because of problems in JPDA implementation. Hung
test produces empty output, so junitreport task prints error message:

[junitreport] [Fatal Error] :-1:-1: Premature end of file.

That's OK for the scripts, because this problem does not affects other tests results. Particular
test failures will be considered in a separate issues.

This update does not provide support for exclude lists, it can be added later. 
However, one of javah tests is not compiled on Linux because it uses non-ascii symbols in
source file. I hardcoded exclusion of this test in the build script and submitted separate
HARMONY-3230. Now this does not prevent running other tests.

> [jdktools][build] update build scripts to enable building and running tests
> ---------------------------------------------------------------------------
>                 Key: HARMONY-3226
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3226
>             Project: Harmony
>          Issue Type: Improvement
>          Components: JDK
>         Environment: Windows, Linux
>            Reporter: Ivan Popov
>         Attachments: tests_support_in_build_scripts.patch
> Build scripts of jdktools module needs update to enable building and running tests provided
in jdktools modules (especially JPDA tests).

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message