MINA SSHD
  1. MINA SSHD
  2. SSHD-71

Skip tests if native library is not available

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.4.0
    • Fix Version/s: 0.4.0
    • Labels:
      None

      Description

      When building the sshd project straight away, we get some errors :

      Tests in error:
      testAgent(org.apache.sshd.AgentTest)

      -------------------------------------------------------------------------------
      Test set: org.apache.sshd.AgentTest
      -------------------------------------------------------------------------------
      Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.009
      sec <<< FAILURE!
      testAgent(org.apache.sshd.AgentTest) Time elapsed: 0.006 sec <<< ERROR!
      java.lang.UnsatisfiedLinkError: no tcnative-1 in java.library.path, no
      libtcnative-1 in ...

      We should add a profile in Maven to avoid such an error. Of course, some doco on how to build SSHd with this native lib should be added on the web site too

      1. SSHD-71.patch
        2 kB
        Stephen Connolly

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        37d 23h 42m 1 Guillaume Nodet 11/Feb/10 13:19
        Guillaume Nodet made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Guillaume Nodet [ gnt ]
        Resolution Fixed [ 1 ]
        Hide
        Guillaume Nodet added a comment -

        Sending trunk/sshd-core/src/test/java/org/apache/sshd/AgentTest.java
        Transmitting file data .
        Committed revision 908957.

        Show
        Guillaume Nodet added a comment - Sending trunk/sshd-core/src/test/java/org/apache/sshd/AgentTest.java Transmitting file data . Committed revision 908957.
        Guillaume Nodet made changes -
        Summary Add a profile to avoid maven failure because of the lack of a native lib Skip tests if native library is not available
        Stephen Connolly made changes -
        Field Original Value New Value
        Attachment SSHD-71.patch [ 12430724 ]
        Hide
        Stephen Connolly added a comment -

        Alternatively, just assumeThat the agent is present, that will cause the test to be skipped when the assumption is false

        Show
        Stephen Connolly added a comment - Alternatively, just assumeThat the agent is present, that will cause the test to be skipped when the assumption is false
        Emmanuel Lecharny created issue -

          People

          • Assignee:
            Guillaume Nodet
            Reporter:
            Emmanuel Lecharny
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development