Uploaded image for project: 'MINA SSHD'
  1. MINA SSHD
  2. SSHD-71

Skip tests if native library is not available

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: 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

        Hide
        stephenc 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
        stephenc 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
        Hide
        gnt Guillaume Nodet added a comment -

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

        Show
        gnt Guillaume Nodet added a comment - Sending trunk/sshd-core/src/test/java/org/apache/sshd/AgentTest.java Transmitting file data . Committed revision 908957.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development