Hadoop Common
  1. Hadoop Common
  2. HADOOP-7026

Adding new target to build.xml to run tests without compiling

    Details

    • Type: New Feature New Feature
    • Status: Open
    • Priority: Trivial Trivial
    • Resolution: Unresolved
    • Affects Version/s: 0.21.0
    • Fix Version/s: 0.21.0
    • Component/s: build, test
    • Labels:
      None
    • Environment:

      SLE v. 11, Apache Harmony 6

    • Tags:
      testing

      Description

      While testing Apache Harmony Select (lightweight version of Harmony) with Hadoop Common we had to first build with Harmony and then test using Harmony Select using the test-core target. This was done in an effort to investigate any issues with Harmony Select in running common. However, the test-core target also compiles the classes which we are unable to do with Harmony Select. A new target is proposed that only runs the tests without compiling them.

      1. HADOOP-7026.patch
        1 kB
        Guillermo Cabrera

        Activity

        Hide
        Konstantin Boudnik added a comment -

        I'm not sure if there's any special policy of the sort. But it seems to be reasonable to 'hide' such targets away. I think I have left another feedback in other JIRA about having a target to run tests from a test jar. Would it be reasonable to have instead of the proposed change?

        Show
        Konstantin Boudnik added a comment - I'm not sure if there's any special policy of the sort. But it seems to be reasonable to 'hide' such targets away. I think I have left another feedback in other JIRA about having a target to run tests from a test jar. Would it be reasonable to have instead of the proposed change?
        Hide
        Guillermo Cabrera added a comment -

        Thanks for the feedback Konstantin, do you know if this policy (lack of description on target hiding it from top-level targets) is the same across all other Hadoop projects.

        Show
        Guillermo Cabrera added a comment - Thanks for the feedback Konstantin, do you know if this policy (lack of description on target hiding it from top-level targets) is the same across all other Hadoop projects.
        Hide
        Konstantin Boudnik added a comment -

        As this target seems to be serving purposes kinda unrelated to the component in question I'd suggest to, at least, remove its description to hide it from top-level targets' list.

        Show
        Konstantin Boudnik added a comment - As this target seems to be serving purposes kinda unrelated to the component in question I'd suggest to, at least, remove its description to hide it from top-level targets' list.
        Hide
        Guillermo Cabrera added a comment -

        Adds a new target that only runs and does not compile tests. Makes assumption that common has already been built using a separate JDK

        Show
        Guillermo Cabrera added a comment - Adds a new target that only runs and does not compile tests. Makes assumption that common has already been built using a separate JDK

          People

          • Assignee:
            Unassigned
            Reporter:
            Guillermo Cabrera
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:

              Development