[testing] run.py and cross compilation
Hi, Is there some possibility to compile sources on one platform (x86) and then run compiled tests on other platform (ARM/Android) using run.py script? This is required, because Android SDK exists only for x86 so there is no way to compile tests on ARM Android device. -- Best regards, Antony Polukhin
AMDG On 05/02/2013 02:48 AM, Antony Polukhin wrote:
Hi,
Is there some possibility to compile sources on one platform (x86) and then run compiled tests on other platform (ARM/Android) using run.py script?
This is required, because Android SDK exists only for x86 so there is no way to compile tests on ARM Android device.
I think you'll first need a host script that can copy programs to the device and run them. Then it's just: --bjam-options=testing.runner=run_on_device In Christ, Steven Watanabe
2013/5/2 Steven Watanabe
AMDG
On 05/02/2013 02:48 AM, Antony Polukhin wrote:
Hi,
Is there some possibility to compile sources on one platform (x86) and then run compiled tests on other platform (ARM/Android) using run.py script?
This is required, because Android SDK exists only for x86 so there is no way to compile tests on ARM Android device.
I think you'll first need a host script that can copy programs to the device and run them. Then it's just: --bjam-options=testing.runner=run_on_device
I've got the general idea and looked through the code of regression/src/regression.py. But a lot of questions arise about how this idea shall be implemented. I've got an ssh access to ARM test device and will have a common storage for ARM and x86. Instead of rewriting runner, is there some possibility to add `ssh host@login /mnt/path_to_common_storage/` to the beginning of all test running commands? Will that work? -- Best regards, Antony Polukhin
AMDG On 05/02/2013 10:33 AM, Antony Polukhin wrote:
2013/5/2 Steven Watanabe
: I think you'll first need a host script that can copy programs to the device and run them. Then it's just: --bjam-options=testing.runner=run_on_device
I've got the general idea and looked through the code of regression/src/regression.py. But a lot of questions arise about how this idea shall be implemented.
I've got an ssh access to ARM test device and will have a common storage for ARM and x86. Instead of rewriting runner, is there some possibility to add `ssh host@login /mnt/path_to_common_storage/` to the beginning of all test running commands? Will that work?
It should. Use the testing.runner feature as above. In Christ, Steven Watanabe
participants (2)
-
Antony Polukhin
-
Steven Watanabe