How to run gradle :mail:test

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

How to run gradle :mail:test

Alexander Farber
Good evening,

on macOS I have checked out https://github.com/bcgit/bc-java

and tried to build it with java 1.8.0_45 and (from brew) ant 1.9.7, gradle 3.2

This seems to have worked, but few mail tests are failing - please see output at the bottom.

I wonder, are they supposed to pass and if yes - how to make them work on macOS?

Regards
Alex

PS:

# gradle :mail:test

The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.

        at build_51nw3euw7had5qww2o31tqwd0.run(/Users/afarber/src/bc-java/build.gradle:35)

:core:compileJava UP-TO-DATE

:core:processResources UP-TO-DATE

:core:classes UP-TO-DATE

:core:jar UP-TO-DATE

:prov:compileJava UP-TO-DATE

:prov:processResources UP-TO-DATE

:prov:classes UP-TO-DATE

:prov:jar UP-TO-DATE

:pkix:compileJava UP-TO-DATE

:pkix:processResources UP-TO-DATE

:pkix:classes UP-TO-DATE

:pkix:jar UP-TO-DATE

:mail:compileJava UP-TO-DATE

:mail:processResources UP-TO-DATE

:mail:classes UP-TO-DATE

:mail:instrument SKIPPED

:mail:copyCoberturaDatafile SKIPPED

:mail:compileTestJava UP-TO-DATE

:mail:processTestResources UP-TO-DATE

:mail:testClasses UP-TO-DATE

:mail:test


org.bouncycastle.mail.smime.test.AllTests > initializationError FAILED

    java.lang.ExceptionInInitializerError at AllTests.java:25

        Caused by: java.lang.RuntimeException at AllTests.java:25


org.bouncycastle.mail.smime.test.NewSMIMEEnvelopedTest > testSubKeyId FAILED

    java.lang.NoClassDefFoundError at NewSMIMEEnvelopedTest.java:99


org.bouncycastle.mail.smime.test.NewSMIMEEnvelopedTest > testCASTEncrypted FAILED

    java.lang.NullPointerException at NewSMIMEEnvelopedTest.java:463


org.bouncycastle.mail.smime.test.NewSMIMEEnvelopedTest > testAES256Encrypted FAILED

    java.lang.NullPointerException at NewSMIMEEnvelopedTest.java:463


org.bouncycastle.mail.smime.test.NewSMIMEEnvelopedTest > testCapEncrypt FAILED

    java.lang.NullPointerException at NewSMIMEEnvelopedTest.java:389


org.bouncycastle.mail.smime.test.NewSMIMEEnvelopedTest > testParserDESEDE3Encrypted FAILED

    java.lang.NullPointerException at NewSMIMEEnvelopedTest.java:489


org.bouncycastle.mail.smime.test.NewSMIMEEnvelopedTest > testTwoRecipients FAILED

    java.lang.NullPointerException at NewSMIMEEnvelopedTest.java:420


org.bouncycastle.mail.smime.test.NewSMIMEEnvelopedTest > testAES128Encrypted FAILED

    java.lang.NullPointerException at NewSMIMEEnvelopedTest.java:463


org.bouncycastle.mail.smime.test.NewSMIMEEnvelopedTest > testHeaders FAILED

    java.lang.NullPointerException at NewSMIMEEnvelopedTest.java:168


org.bouncycastle.mail.smime.test.NewSMIMEEnvelopedTest > testRC2Encrypted FAILED

    java.lang.NullPointerException at NewSMIMEEnvelopedTest.java:463


org.bouncycastle.mail.smime.test.NewSMIMEEnvelopedTest > testAES128 FAILED

    org.bouncycastle.cms.CMSException at NewSMIMEEnvelopedTest.java:335

        Caused by: java.security.InvalidKeyException at NewSMIMEEnvelopedTest.java:335


org.bouncycastle.mail.smime.test.NewSMIMEEnvelopedTest > testAES192 FAILED

    org.bouncycastle.cms.CMSException at NewSMIMEEnvelopedTest.java:353

        Caused by: java.security.InvalidKeyException at NewSMIMEEnvelopedTest.java:353


org.bouncycastle.mail.smime.test.NewSMIMEEnvelopedTest > testAES256 FAILED

    org.bouncycastle.cms.CMSException at NewSMIMEEnvelopedTest.java:371

        Caused by: java.security.InvalidKeyException at NewSMIMEEnvelopedTest.java:371


org.bouncycastle.mail.smime.test.NewSMIMEEnvelopedTest > testDESEDE3Encrypted FAILED

    java.lang.NullPointerException at NewSMIMEEnvelopedTest.java:463


org.bouncycastle.mail.smime.test.NewSMIMEEnvelopedTest > testIDEAEncrypted FAILED

    java.lang.SecurityException at NewSMIMEEnvelopedTest.java:217

        Caused by: java.util.jar.JarException


org.bouncycastle.mail.smime.test.NewSMIMEEnvelopedTest > testAES192Encrypted FAILED

    java.lang.NullPointerException at NewSMIMEEnvelopedTest.java:463


org.bouncycastle.mail.smime.test.NewSMIMEEnvelopedTest > testKDFAgreements FAILED

    java.lang.NullPointerException at NewSMIMEEnvelopedTest.java:547


18 tests completed, 17 failed

:mail:test FAILED

:mail:generateCoberturaReport SKIPPED

:mail:performCoverageCheck SKIPPED


FAILURE: Build failed with an exception.


* What went wrong:

Execution failed for task ':mail:test'.

> There were failing tests. See the report at: file:///Users/afarber/src/bc-java/mail/build/reports/tests/test/index.html


* Try:

Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.


BUILD FAILED


Total time: 3.385 secs

Loading...