---------- Forwarded message ----------
From: Botao Sun <botao.sun@linaro.org>
Date: 5 April 2012 20:31
Subject: Re: How to integrate Connectivity Manager Test to LAVA?
To: YongQin Liu <yongqin.liu@linaro.org>
Cc: Paul Larson <paul.larson@linaro.org>, Abhishek Paliwal <abhishek.paliwal@linaro.org>, linaro-android <linaro-android@linaro.org>


Hi Yongqin,

Yes, if the support for android command on android-build can be done, that will be cool.

However, I'm afraid the Android team wants this test can be integrated as soon as possible, and I won't work on this since I'm not in Android team anymore. Basically I will provide some solutions or figure out a way to do something, but won't do it by myself except in some special conditions. Therefore, if LAVA team can do this, I will be very appreciated.

I agree with you about re-pack an apk is not a good idea. This is just a temporary walk around way to do it, once we have an unique SSID for this test, the source code of this test apk will be modified, then the repacking work will be gone.

This test is new to us, and nobody has deep knowledge about the source code inside. So there may be more changes in future according to our research.

Thank you for your help!


BR
Botao Sun

On Thu, Apr 5, 2012 at 10:18 PM, YongQin Liu <yongqin.liu@linaro.org> wrote:
Hi, Botao

On 5 April 2012 17:06, Botao Sun <botao.sun@linaro.org> wrote:
Hi Yongqin,

1. Yes, it's already built in all Android images.

2. I think it should be submitted by android-build.

and write a wrapper like that for lava-android-test 

If you are not urgent, I think you can wait util the support for android command on android-build,
then you don't need to write the simple wrapper again.
The discussion about it is now doing with the thread titled "Syntax for custom LAVA tests", this will be implemented in this cycle.

There is a configuration file may need to be modified to keep corresponding with the SSID information in the test command, and you may need to re-pack this apk after that. Abhishek did it yesterday and you can get more details from his side.
 
This is a cross platform apk, so once you finish the repacking, then you can re-install it on all our boards.
I don't think repacking a apk is a good way. 

https://wiki.linaro.org/Platform/QA/TestCases/Android#android-net-ConnectivityManagerTest
In the above wiki, I saw you can pass the ssid to the "am instrument", so I guess you can also pass it to lava from android-build page.

Thanks,
Yongqin Liu

FYI.

Thank you!


BR
Botao Sun


On Thu, Apr 5, 2012 at 2:07 PM, YongQin Liu <yongqin.liu@linaro.org> wrote:
Hi, Botao

First I have some questions about this.

1. is the ConnectivityManagerTest.apk is built into the android image by default?
2. is the test job submitted by android-build or by another system of you QA Service Team?

Thanks
Yongqin Liu 

On 4 April 2012 19:57, Botao Sun <botao.sun@linaro.org> wrote:
Hi Yongqin,

Recently I'm investigating the Connectivity Manager test, and I finally summarized a command list here:


However, I have no idea about how to integrate it to our LAVA system. The analysis of source code can be found in attachment of this email. Would you provide some information about it?

Abhishek runs this apk manually, and I will analyze the output once he sends to me.

Thank you for your help!


BR
Botao Sun