-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running TestSuite
Configuring TestNG with: TestNG652Configurator
[TestNG] [ERROR] No test suite found. Nothing to run
Usage: <main class> [options] The XML suite files to run
Options:
-configfailurepolicy Configuration failure policy (skip or
continue)
-d Output directory
-dataproviderthreadcount Number of threads to use when running
data providers
-excludegroups Comma-separated list of group names to
exclude
-groups Comma-separated list of group names to be
run
-junit JUnit mode
Default: false
-listener List of .class files or list of class
names implementing ITestListener or
ISuiteListener
-methods Comma separated of test methods
Default: []
-methodselectors List of .class files or list of class
names implementing IMethodSelector
-mixed Mixed mode - autodetect the type of
current test and run it with appropriate runner
Default: false
-objectfactory List of .class files or list of class
names implementing ITestRunnerFactory
-parallel Parallel mode (methods, tests or classes)
-port The port
-reporter Extended configuration for custom report
listener
-suitename Default name of test suite, if not
specified in suite definition file or source code
-suitethreadpoolsize Size of the thread pool to use to run
suites
Default: 1
-testclass The list of test classes
-testjar A jar file containing the tests
-testname Default name of test, if not specified in
suitedefinition file or source code
-testnames The list of test names to run
-testrunfactory, -testRunFactory The factory used to create tests
-threadcount Number of threads to use when running
tests in parallel
-usedefaultlisteners Whether to use the default listeners
Default: true
-log, -verbose Level of verbosity
-xmlpathinjar The full path to the xml file inside the
jar file (only valid if -testjar was
specified)
Default: testng.xml
Configuring TestNG with: TestNG652Configurator
Tests run: 40, Failures: 33, Errors: 0, Skipped: 0, Time elapsed: 2.404 sec <<< FAILURE! - in TestSuite
testEventDisconnected on testEventDisconnected(org.zeromq.ZMQTest)(org.zeromq.ZMQTest) Time elapsed: 0.019 sec <<< FAILURE!
java.lang.UnsatisfiedLinkError: /Users/me/gits/jzmq/jzmq-jni/src/main/c++/.libs/libjzmq.0.dylib: dlopen(/Users/me/gits/jzmq/jzmq-jni/src/main/c++/.libs/libjzmq.0.dylib, 0x0001): tried: '/Users/me/gits/jzmq/jzmq-jni/src/main/c++/.libs/libjzmq.0.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/usr/local/lib/libjzmq.0.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/usr/lib/libjzmq.0.dylib' (no such file)
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1934)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1850)
at java.lang.Runtime.loadLibrary0(Runtime.java:871)
at java.lang.System.loadLibrary(System.java:1122)
at org.zeromq.ZMQ.<clinit>(ZMQ.java:41)
at org.zeromq.ZMQTest.testEventDisconnected(ZMQTest.java:830)
testKeyDecode on testKeyDecode(org.zeromq.ZMQTest)(org.zeromq.ZMQTest) Time elapsed: 0.001 sec <<< FAILURE!
java.lang.UnsatisfiedLinkError: org.zeromq.ZMQ$Curve.z85Decode(Ljava/lang/String;)[B
at org.zeromq.ZMQ$Curve.z85Decode(Native Method)
at org.zeromq.ZMQTest.testKeyDecode(ZMQTest.java:977)
testSendMoreRequestReplyOverTcp on testSendMoreRequestReplyOverTcp(org.zeromq.ZMQTest)(org.zeromq.ZMQTest) Time elapsed: 0 sec <<< FAILURE!
java.lang.NoClassDefFoundError: Could not initialize class org.zeromq.ZMQ
at org.zeromq.ZMQTest.testSendMoreRequestReplyOverTcp(ZMQTest.java:383)
testKeyEncode on testKeyEncode(org.zeromq.ZMQTest)(org.zeromq.ZMQTest) Time elapsed: 0 sec <<< FAILURE!
java.lang.UnsatisfiedLinkError: org.zeromq.ZMQ$Curve.z85Encode([B)Ljava/lang/String;
at org.zeromq.ZMQ$Curve.z85Encode(Native Method)
at org.zeromq.ZMQTest.testKeyEncode(ZMQTest.java:968)
testZeroCopyRecv on testZeroCopyRecv(org.zeromq.ZMQTest)(org.zeromq.ZMQTest) Time elapsed: 0 sec <<< FAILURE!
java.lang.NoClassDefFoundError: Could not initialize class org.zeromq.ZMQ
at org.zeromq.ZMQTest.testZeroCopyRecv(ZMQTest.java:434)
testZeroCopySend on testZeroCopySend(org.zeromq.ZMQTest)(org.zeromq.ZMQTest) Time elapsed: 0 sec <<< FAILURE!
java.lang.NoClassDefFoundError: Could not initialize class org.zeromq.ZMQ
at org.zeromq.ZMQTest.testZeroCopySend(ZMQTest.java:471)
testEventListening on testEventListening(org.zeromq.ZMQTest)(org.zeromq.ZMQTest) Time elapsed: 0.001 sec <<< FAILURE!
java.lang.NoClassDefFoundError: Could not initialize class org.zeromq.ZMQ
at org.zeromq.ZMQTest.testEventListening(ZMQTest.java:719)
testCurveBinaryKeys on testCurveBinaryKeys(org.zeromq.ZMQTest)(org.zeromq.ZMQTest) Time elapsed: 0.001 sec <<< FAILURE!
java.lang.NoClassDefFoundError: Could not initialize class org.zeromq.ZMQ
at org.zeromq.ZMQTest.testCurveBinaryKeys(ZMQTest.java:927)
testProxy on testProxy(org.zeromq.ZMQTest)(org.zeromq.ZMQTest) Time elapsed: 0 sec <<< FAILURE!
java.lang.NoClassDefFoundError: Could not initialize class org.zeromq.ZMQ
at org.zeromq.ZMQTest.testProxy(ZMQTest.java:328)
testEventMonitorStopped on testEventMonitorStopped(org.zeromq.ZMQTest)(org.zeromq.ZMQTest) Time elapsed: 0 sec <<< FAILURE!
java.lang.NoClassDefFoundError: Could not initialize class org.zeromq.ZMQ
at org.zeromq.ZMQTest.testEventMonitorStopped(ZMQTest.java:863)
testWritingToClosedSocket on testWritingToClosedSocket(org.zeromq.ZMQTest)(org.zeromq.ZMQTest) Time elapsed: 0 sec <<< FAILURE!
java.lang.NoClassDefFoundError: Could not initialize class org.zeromq.ZMQ
at org.zeromq.ZMQTest.testWritingToClosedSocket(ZMQTest.java:411)
testBindToRandomPort on testBindToRandomPort(org.zeromq.ZMQTest)(org.zeromq.ZMQTest) Time elapsed: 0.001 sec <<< FAILURE!
java.lang.NoClassDefFoundError: Could not initialize class org.zeromq.ZMQ
at org.zeromq.ZMQTest.testBindToRandomPort(ZMQTest.java:51)
testEventClosed on testEventClosed(org.zeromq.ZMQTest)(org.zeromq.ZMQTest) Time elapsed: 0.001 sec <<< FAILURE!
java.lang.NoClassDefFoundError: Could not initialize class org.zeromq.ZMQ
at org.zeromq.ZMQTest.testEventClosed(ZMQTest.java:804)
testEventConnected on testEventConnected(org.zeromq.ZMQTest)(org.zeromq.ZMQTest) Time elapsed: 0 sec <<< FAILURE!
java.lang.NoClassDefFoundError: Could not initialize class org.zeromq.ZMQ
at org.zeromq.ZMQTest.testEventConnected(ZMQTest.java:640)
testSetXpubVerbose on testSetXpubVerbose(org.zeromq.ZMQTest)(org.zeromq.ZMQTest) Time elapsed: 0 sec <<< FAILURE!
java.lang.NoClassDefFoundError: Could not initialize class org.zeromq.ZMQ
at org.zeromq.ZMQTest.testSetXpubVerbose(ZMQTest.java:165)
testByteBufferRecvTooLarge on testByteBufferRecvTooLarge(org.zeromq.ZMQTest)(org.zeromq.ZMQTest) Time elapsed: 0.001 sec <<< FAILURE!
java.lang.NoClassDefFoundError: Could not initialize class org.zeromq.ZMQ
at org.zeromq.ZMQTest.testByteBufferRecvTooLarge(ZMQTest.java:573)
testEventBindFailed on testEventBindFailed(org.zeromq.ZMQTest)(org.zeromq.ZMQTest) Time elapsed: 0.001 sec <<< FAILURE!
java.lang.NoClassDefFoundError: Could not initialize class org.zeromq.ZMQ
at org.zeromq.ZMQTest.testEventBindFailed(ZMQTest.java:744)
testByteBufferRecv on testByteBufferRecv(org.zeromq.ZMQTest)(org.zeromq.ZMQTest) Time elapsed: 0 sec <<< FAILURE!
java.lang.NoClassDefFoundError: Could not initialize class org.zeromq.ZMQ
at org.zeromq.ZMQTest.testByteBufferRecv(ZMQTest.java:538)
testByteBufferSend on testByteBufferSend(org.zeromq.ZMQTest)(org.zeromq.ZMQTest) Time elapsed: 0 sec <<< FAILURE!
java.lang.NoClassDefFoundError: Could not initialize class org.zeromq.ZMQ
at org.zeromq.ZMQTest.testByteBufferSend(ZMQTest.java:503)
testPollingInvalidSockets on testPollingInvalidSockets(org.zeromq.ZMQTest)(org.zeromq.ZMQTest) Time elapsed: 0.001 sec <<< FAILURE!
java.lang.Exception: Unexpected exception, expected<org.zeromq.ZMQException> but was<java.lang.NoClassDefFoundError>
at org.zeromq.ZMQTest.testPollingInvalidSockets(ZMQTest.java:627)
testEventConnectRetried on testEventConnectRetried(org.zeromq.ZMQTest)(org.zeromq.ZMQTest) Time elapsed: 0 sec <<< FAILURE!
java.lang.NoClassDefFoundError: Could not initialize class org.zeromq.ZMQ
at org.zeromq.ZMQTest.testEventConnectRetried(ZMQTest.java:694)
testBindToSystemRandomPort on testBindToSystemRandomPort(org.zeromq.ZMQTest)(org.zeromq.ZMQTest) Time elapsed: 0 sec <<< FAILURE!
java.lang.NoClassDefFoundError: Could not initialize class org.zeromq.ZMQ
at org.zeromq.ZMQTest.testBindToSystemRandomPort(ZMQTest.java:77)
testKeyEncodeDecode on testKeyEncodeDecode(org.zeromq.ZMQTest)(org.zeromq.ZMQTest) Time elapsed: 0.001 sec <<< FAILURE!
java.lang.UnsatisfiedLinkError: org.zeromq.ZMQ$Curve.generateKeyPair()Lorg/zeromq/ZMQ$Curve$KeyPair;
at org.zeromq.ZMQ$Curve.generateKeyPair(Native Method)
at org.zeromq.ZMQTest.testKeyEncodeDecode(ZMQTest.java:984)
testGetVersion on testGetVersion(org.zeromq.ZMQTest)(org.zeromq.ZMQTest) Time elapsed: 0 sec <<< FAILURE!
java.lang.NoClassDefFoundError: Could not initialize class org.zeromq.ZMQ
at org.zeromq.ZMQTest.testGetVersion(ZMQTest.java:42)
testEventConnectDelayed on testEventConnectDelayed(org.zeromq.ZMQTest)(org.zeromq.ZMQTest) Time elapsed: 0.001 sec <<< FAILURE!
java.lang.NoClassDefFoundError: Could not initialize class org.zeromq.ZMQ
at org.zeromq.ZMQTest.testEventConnectDelayed(ZMQTest.java:669)
testMakeVersion on testMakeVersion(org.zeromq.ZMQTest)(org.zeromq.ZMQTest) Time elapsed: 0 sec <<< FAILURE!
java.lang.NoClassDefFoundError: Could not initialize class org.zeromq.ZMQ
at org.zeromq.ZMQTest.testMakeVersion(ZMQTest.java:33)
testXPUBSUB on testXPUBSUB(org.zeromq.ZMQTest)(org.zeromq.ZMQTest) Time elapsed: 0 sec <<< FAILURE!
java.lang.NoClassDefFoundError: Could not initialize class org.zeromq.ZMQ
at org.zeromq.ZMQTest.testXPUBSUB(ZMQTest.java:110)
testSetOption on testSetOption(org.zeromq.ZMQTest)(org.zeromq.ZMQTest) Time elapsed: 0 sec <<< FAILURE!
java.lang.NoClassDefFoundError: Could not initialize class org.zeromq.ZMQ
at org.zeromq.ZMQTest.testSetOption(ZMQTest.java:214)
testRouterMandatory on testRouterMandatory(org.zeromq.ZMQTest)(org.zeromq.ZMQTest) Time elapsed: 0 sec <<< FAILURE!
java.lang.NoClassDefFoundError: Could not initialize class org.zeromq.ZMQ
at org.zeromq.ZMQTest.testRouterMandatory(ZMQTest.java:359)
testPollerUnregister on testPollerUnregister(org.zeromq.ZMQTest)(org.zeromq.ZMQTest) Time elapsed: 0 sec <<< FAILURE!
java.lang.NoClassDefFoundError: Could not initialize class org.zeromq.ZMQ
at org.zeromq.ZMQTest.testPollerUnregister(ZMQTest.java:607)
testCurveZ85Keys on testCurveZ85Keys(org.zeromq.ZMQTest)(org.zeromq.ZMQTest) Time elapsed: 0 sec <<< FAILURE!
java.lang.NoClassDefFoundError: Could not initialize class org.zeromq.ZMQ
at org.zeromq.ZMQTest.testCurveZ85Keys(ZMQTest.java:888)
testReqRep on testReqRep(org.zeromq.ZMQTest)(org.zeromq.ZMQTest) Time elapsed: 0 sec <<< FAILURE!
java.lang.NoClassDefFoundError: Could not initialize class org.zeromq.ZMQ
at org.zeromq.ZMQTest.testReqRep(ZMQTest.java:86)
testEventAccepted on testEventAccepted(org.zeromq.ZMQTest)(org.zeromq.ZMQTest) Time elapsed: 0 sec <<< FAILURE!
java.lang.NoClassDefFoundError: Could not initialize class org.zeromq.ZMQ
at org.zeromq.ZMQTest.testEventAccepted(ZMQTest.java:775)
Results :
Failed tests:
ZMQTest.testEventDisconnected:830 ? UnsatisfiedLink /Users/me/gits/jzmq/j...
ZMQTest.testKeyDecode:977 ? UnsatisfiedLink org.zeromq.ZMQ$Curve.z85Decode(Lja...
ZMQTest.testSendMoreRequestReplyOverTcp:383 NoClassDefFound Could not initiali...
ZMQTest.testKeyEncode:968 ? UnsatisfiedLink org.zeromq.ZMQ$Curve.z85Encode([B)...
ZMQTest.testZeroCopyRecv:434 NoClassDefFound Could not initialize class org.ze...
ZMQTest.testZeroCopySend:471 NoClassDefFound Could not initialize class org.ze...
ZMQTest.testEventListening:719 NoClassDefFound Could not initialize class org....
ZMQTest.testCurveBinaryKeys:927 NoClassDefFound Could not initialize class org...
ZMQTest.testProxy:328 NoClassDefFound Could not initialize class org.zeromq.ZM...
ZMQTest.testEventMonitorStopped:863 NoClassDefFound Could not initialize class...
ZMQTest.testWritingToClosedSocket:411 NoClassDefFound Could not initialize cla...
ZMQTest.testBindToRandomPort:51 NoClassDefFound Could not initialize class org...
ZMQTest.testEventClosed:804 NoClassDefFound Could not initialize class org.zer...
ZMQTest.testEventConnected:640 NoClassDefFound Could not initialize class org....
ZMQTest.testSetXpubVerbose:165 NoClassDefFound Could not initialize class org....
ZMQTest.testByteBufferRecvTooLarge:573 NoClassDefFound Could not initialize cl...
ZMQTest.testEventBindFailed:744 NoClassDefFound Could not initialize class org...
ZMQTest.testByteBufferRecv:538 NoClassDefFound Could not initialize class org....
ZMQTest.testByteBufferSend:503 NoClassDefFound Could not initialize class org....
ZMQTest.testPollingInvalidSockets ? Unexpected exception, expected<org.zeromq...
ZMQTest.testEventConnectRetried:694 NoClassDefFound Could not initialize class...
ZMQTest.testBindToSystemRandomPort:77 NoClassDefFound Could not initialize cla...
ZMQTest.testKeyEncodeDecode:984 ? UnsatisfiedLink org.zeromq.ZMQ$Curve.generat...
ZMQTest.testGetVersion:42 NoClassDefFound Could not initialize class org.zerom...
ZMQTest.testEventConnectDelayed:669 NoClassDefFound Could not initialize class...
ZMQTest.testMakeVersion:33 NoClassDefFound Could not initialize class org.zero...
ZMQTest.testXPUBSUB:110 NoClassDefFound Could not initialize class org.zeromq....
ZMQTest.testSetOption:214 NoClassDefFound Could not initialize class org.zerom...
ZMQTest.testRouterMandatory:359 NoClassDefFound Could not initialize class org...
ZMQTest.testPollerUnregister:607 NoClassDefFound Could not initialize class or...
ZMQTest.testCurveZ85Keys:888 NoClassDefFound Could not initialize class org.ze...
ZMQTest.testReqRep:86 NoClassDefFound Could not initialize class org.zeromq.ZM...
ZMQTest.testEventAccepted:775 NoClassDefFound Could not initialize class org.z...
Tests run: 40, Failures: 33, Errors: 0, Skipped: 0
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for jzmq-parent 3.1.1-SNAPSHOT:
[INFO]
[INFO] jzmq-parent ........................................ SUCCESS [ 0.531 s]
[INFO] jzmq-jni ........................................... FAILURE [ 4.625 s]
[INFO] jzmq-core .......................................... SKIPPED
[INFO] jzmq-devices ....................................... SKIPPED
[INFO] jzmq ............................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.344 s
[INFO] Finished at: 2021-12-29T21:46:29+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.16:test (default-test) on project jzmq-jni: There are test failures.
[ERROR]
[ERROR] Please refer to /Users/me/gits/jzmq/jzmq-jni/target/surefire-reports for the individual test results.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <args> -rf :jzmq-jni
System: macOS Monterey
Version: 12.0.1
Chip: Apple M1 Pro
JDK: 1.8.0_301
BTW, anyway to use jzmq via docker? I found Dockerfile in the jzmq-jni/ subfolder.
BTW, anyway to use jzmq via docker? I found Dockerfile in the
jzmq-jni/
subfolder.