How to run Android net_unittests_apk on remote device?

13 views
Skip to first unread message

黄龑

unread,
Jun 23, 2016, 1:35:59 AM6/23/16
to Chromium-dev
I tried to run the network component unittests on real Android device according to these two documents: https://chromium.googlesource.com/chromium/src/+/master/docs/working_remotely_with_android.md and https://chromium.googlesource.com/chromium/src/+/master/docs/android_test_instructions.md, by first forwarding my local 5037 port to remote build server, and then run the test_runner.py on remote server. In this way, the device could be listed with "adb devices" command on remote server, but seems that this runner script would try to map device port 10201 to local machine, which is not properly forwarded to remote server, so this test is failed. It seems that there are some "Remote Device" parameters supported by task_runner.py, and I guess they may tweak the behavior of this script when working on remote device, but problem is, I could not find any document about them.

John Budorick

unread,
Jun 23, 2016, 12:42:14 PM6/23/16
to forfina...@gmail.com, Chromium-dev
There are no parameters that support that use case at the moment. I just filed https://bugs.chromium.org/p/chromium/issues/detail?id=622766 for it.

On Thu, Jun 23, 2016 at 7:36 AM 黄龑 <forfina...@gmail.com> wrote:
I tried to run the network component unittests on real Android device according to these two documents: https://chromium.googlesource.com/chromium/src/+/master/docs/working_remotely_with_android.md and https://chromium.googlesource.com/chromium/src/+/master/docs/android_test_instructions.md, by first forwarding my local 5037 port to remote build server, and then run the test_runner.py on remote server. In this way, the device could be listed with "adb devices" command on remote server, but seems that this runner script would try to map device port 10201 to local machine, which is not properly forwarded to remote server, so this test is failed. It seems that there are some "Remote Device" parameters supported by task_runner.py, and I guess they may tweak the behavior of this script when working on remote device, but problem is, I could not find any document about them.

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev

黄龑

unread,
Jun 24, 2016, 1:54:31 AM6/24/16
to Chromium-dev
Thanks for your reply~

在 2016年6月24日星期五 UTC+8上午12:42:14,John Budorick写道:
Reply all
Reply to author
Forward
0 new messages