Details

    • Type: Sub-task Sub-task
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.4
    • Fix Version/s: 1.1 M1
    • Component/s: XML tests
    • Labels:
      None
    • Number of attachments :
      1

      Description

      Add to CTF header an optional element specifies the "minimum JVM for this test." Thus, an entire test directory will be executed or skipped depending on the currently-in-use JVM that is running the test.

      This will allow us to add tests to the CTF on more recent JVMs that the minimum that we support.

      Since our current minimum platform is Java 1.3, this will allow us to add tests that require Java 1.4 or Java 5 or Java 6.

      This will be done on the entire TestDescriptor.xml level and not on the UnitTest level, because otherwise we'd be trying to compile or not compile individual source files based on the JVM version, and it's not worth adding that sort of complexity.

        Issue Links

          Activity

          Hide
          Edward Kuns added a comment -

          Attaching a patch to provide this functionality.

          Show
          Edward Kuns added a comment - Attaching a patch to provide this functionality.
          Hide
          Edward Kuns added a comment -

          Delivered. We can now add Java 5 "enum" tests to the CTF.
          And if we need to add code that uses "enum" to the CTF, we can have it compiled with "-soruce 1.4" so it'll compile no matter what JVM the tester is using.

          I also quieted somewhat (under Java 5) the complaints about unchecked generics, and in normal (non-verbose) mode I suppressed more warnings and limited errors on any individual compilation to 5. If you specify -verbose then you'll see ALL the warnings and errors.

          If you don't like limiting the errors per compilatoin to 5 under a normal CTF execution, let me know.

          Show
          Edward Kuns added a comment - Delivered. We can now add Java 5 "enum" tests to the CTF. And if we need to add code that uses "enum" to the CTF, we can have it compiled with "-soruce 1.4" so it'll compile no matter what JVM the tester is using. I also quieted somewhat (under Java 5) the complaints about unchecked generics, and in normal (non-verbose) mode I suppressed more warnings and limited errors on any individual compilation to 5. If you specify -verbose then you'll see ALL the warnings and errors. If you don't like limiting the errors per compilatoin to 5 under a normal CTF execution, let me know.

            People

            • Assignee:
              Edward Kuns
              Reporter:
              Edward Kuns
            • Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: