On Mon, Apr 5, 2010 at 9:46 PM, Wander Lairson <wander.lair...@gmail.com> wrote: > I just uploaded revision 55 which contains the correct library names > for FreeBSD and Windows backend, but as I did it remotely, I didn't > test them yet. >
It seems to work under FreeBSD. Two errors seem to relate to libusb_reset_device which is anyway not that cross-platform. The last error is related to the libusb01 problem under FreeBSD. Thanks for the nice work. [mc...@myfreebsd ~/Desktop/build/pyusb/pyusb/tests]$ python testall.py Adding DeviceTest(usb.backend.libusb10) to test suite... Adding ConfigurationTest(usb.backend.libusb10) to test suite... Adding InterfaceTest(usb.backend.libusb10) to test suite... Adding EndpointTest(usb.backend.libusb10) to test suite... Adding BackendTest(usb.backend.libusb10) to test suite... Adding BackendTest(usb.backend.libusb01) to test suite... .......E...EF ====================================================================== ERROR: runTest (test_integration.DeviceTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/home/mcuee/Desktop/build/pyusb/pyusb/tests/test_integration.py", line 61, in runTest self.test_reset() File "/usr/home/mcuee/Desktop/build/pyusb/pyusb/tests/test_integration.py", line 105, in test_reset self.dev.reset() File "/usr/local/lib/python2.6/site-packages/usb/core.py", line 550, in reset self._ctx.backend.reset_device(self._ctx.handle) File "/usr/local/lib/python2.6/site-packages/usb/backend/libusb10.py", line 515, in reset_device _check(_lib.libusb_reset_device(dev_handle)) File "/usr/local/lib/python2.6/site-packages/usb/backend/libusb10.py", line 341, in _check raise USBError(_str_error[retval.value]) USBError: Unknown error ====================================================================== ERROR: runTest (test_backend.BackendTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/home/mcuee/Desktop/build/pyusb/pyusb/tests/test_backend.py", line 59, in runTest self.test_reset_device() File "/usr/home/mcuee/Desktop/build/pyusb/pyusb/tests/test_backend.py", line 182, in test_reset_device self.backend.reset_device(self.handle) File "/usr/local/lib/python2.6/site-packages/usb/backend/libusb10.py", line 515, in reset_device _check(_lib.libusb_reset_device(dev_handle)) File "/usr/local/lib/python2.6/site-packages/usb/backend/libusb10.py", line 341, in _check raise USBError(_str_error[retval.value]) USBError: Unknown error ====================================================================== FAIL: runTest (test_backend.BackendTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/home/mcuee/Desktop/build/pyusb/pyusb/tests/test_backend.py", line 45, in runTest self.test_enumerate_devices() File "/usr/home/mcuee/Desktop/build/pyusb/pyusb/tests/test_backend.py", line 68, in test_enumerate_devices self.fail('PyUSB test device not found') AssertionError: PyUSB test device not found ---------------------------------------------------------------------- Ran 13 tests in 0.688s FAILED (failures=1, errors=2) -- Xiaofan http://mcuee.blogspot.com ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ pyusb-users mailing list pyusb-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pyusb-users