pylink icon indicating copy to clipboard operation
pylink copied to clipboard

Fix load dll for arm

Open CodeChenL opened this issue 2 years ago • 8 comments

test by rock pi 4b plus on ubuntu20.04

CodeChenL avatar Apr 19 '22 16:04 CodeChenL

Could you give a specific test case for this? We have some tests in the test_library.py test file, so covering the case of when it should and should not be yielding ARM binaries would be good to ensure we're not breaking any current functionality.

hkpeprah avatar Apr 21 '22 16:04 hkpeprah

Could you give a specific test case for this? We have some tests in the test_library.py test file, so covering the case of when it should and should not be yielding ARM binaries would be good to ensure we're not breaking any current functionality.

My English is not very good, how I get the test_ library. Py, is it to me write?

CodeChenL avatar Apr 21 '22 16:04 CodeChenL

The current tests are here: https://github.com/square/pylink/blob/master/tests/unit/test_library.py#L804

hkpeprah avatar Apr 21 '22 16:04 hkpeprah

The current tests are here: https://github.com/square/pylink/blob/master/tests/unit/test_library.py#L804

I well try run it on my Windows PC and Rock pi

CodeChenL avatar Apr 21 '22 16:04 CodeChenL

The current tests are here: https://github.com/square/pylink/blob/master/tests/unit/test_library.py#L804 Windows PC: image Rock Pi: image

CodeChenL avatar Apr 21 '22 17:04 CodeChenL

The current tests are here: https://github.com/square/pylink/blob/master/tests/unit/test_library.py#L804

my english is not good,do i need to do anything else?

CodeChenL avatar May 06 '22 17:05 CodeChenL

Sorry for the late response here. What I mean is that I think you should add some new tests to that test file that cover the specific scenario your changes address. So for example, if you have a directory with both ARM and non-ARM DLLs, on a non-ARM platform (non-ARM built Python), it should return the non-ARM DLL, but on an ARM-based platform running under Python built for ARM, it should return the ARM DLL.

hkpeprah avatar May 16 '22 01:05 hkpeprah

I get it, I'll try to get it when I'm free

CodeChenL avatar May 22 '22 03:05 CodeChenL