Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test failure on usbtools #12

Open
seriar opened this issue Jul 3, 2014 · 0 comments
Open

Test failure on usbtools #12

seriar opened this issue Jul 3, 2014 · 0 comments

Comments

@seriar
Copy link

seriar commented Jul 3, 2014

Hello.
I was trying to build the code and i have a problem on testing of usbtools. My maven version information is following:

Apache Maven 3.0.4  
Maven home: /usr/share/maven 
Java version: 1.8.0_05, vendor: Oracle Corporation
Java home: /home/seriar/dev/java/jdk1.8.0_05/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.2.0-64-generic", arch: "amd64", family: "unix"

The output of testing is following:

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running io.trygvis.usb.tools.LsusbTest
osName = Linux
url = null
PRE: usbw_init(0x7f2a7c5f49f0)
/home/seriar/jdk1.7.0_51/jre/bin/java: symbol lookup error: /home/seriar/dev/stack/javax-usb-libusb1/usbtools/target/nar/javalibusb1-1.0.1-1-SNAPSHOT-amd64-Linux-gpp-jni/lib/amd64-Linux-gpp/jni/libjavalibusb1-1.0.1-1-SNAPSHOT.so: undefined symbol: clock_gettime
Running io.trygvis.usb.tools.IntelHexTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.084 sec
Running io.trygvis.usb.tools.HexFormatterTest
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.086 sec

Results :

Tests run: 11, Failures: 0, Errors: 0, Skipped: 0

------------------------------------------------------------------------
BUILD FAILURE
------------------------------------------------------------------------
Total time: 3.814s
Finished at: Thu Jul 03 17:05:20 EEST 2014
Final Memory: 12M/210M
------------------------------------------------------------------------
Failed to execute goal io.trygvis.usb:maven-nar-plugin:2.1-trygvis-1:nar-integration-test (default-nar-integration-test) on project usbtools: There are test failures.

I have played a bit with code and the exact trace which is generated if i try to run lsusb is:

------------------------------------------------------------------------
Building Javalibusb1 :: Misc USB tools 1.0.1-1-SNAPSHOT
------------------------------------------------------------------------

--- exec-maven-plugin:1.2.1:exec (default-cli) @ usbtools ---
osName = Linux
url = null
Exception in thread "main" java.lang.UnsatisfiedLinkError: no javalibusb1-1.0.1-1-SNAPSHOT in java.library.path
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1709)
    at java.lang.Runtime.loadLibrary0(Runtime.java:844)
    at java.lang.System.loadLibrary(System.java:1051)
    at javalibusb1.NarSystem.loadLibrary(NarSystem.java:23)
    at javalibusb1.libusb1.<clinit>(libusb1.java:86)
    at javalibusb1.Libusb1UsbServices.<init>(Libusb1UsbServices.java:146)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:534)
    at java.lang.Class.newInstance(Class.java:374)
    at javax.usb.UsbHostManager.initialize(UsbHostManager.java:44)
    at javax.usb.UsbHostManager.getUsbServices(UsbHostManager.java:22)
    at io.trygvis.usb.tools.lsusb.main(lsusb.java:12)
------------------------------------------------------------------------

Do you have any idea how can i solve it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant