First, prepare the apk.
For emulator, I think you can create a new system.img and userdata.img
after build cts.
then you can specified those image when launch emulator.
$ emulator -system new_system.img ......

For target board, depends on how you mount your target board.

Second, run the startcts scrip.
Connect emulator or target board with adb, then run startcts.
cts > start --plan Android
will auto test all the packages define in Android plan.(total 5208
tests)

I test my target from my host machine with startcts.
It is better to run cts from cts scripts as it can auto test all the
test packages and easy get the result of test.

Good luck!


On Mar 17, 6:40 pm, Umang Gupta <[email protected]> wrote:
> Thanks Abukustfan  .
>
> Running cts test cases using startcts script is known to me . but that are
> for host machine .
> like for running signature test  cases , I run :
>
>  cts > start --plan Signature -t
> android.tests.sigtest.SignatureTest#signatureTest
>
> Since apk's of all such test cases are generated in
> $(ANDROID_BUILD_TOP)/out/
> target/product/generic/data/app .  I was impatient to know if I could run
> all these in emulator shell using adb  or on any device using minicom .
>
> I investigated this yesterday  and  found as follows :
>
> 1> install all apk's into emulator shell . (using ./adb install )
> 2> And I am able to run  TestDeviceSetup cts tests  using these command on
> emulator shell :
> am start -a android.intent.action.MAIN -n
> android.tests.devicesetup/android.tests.getinfo.DeviceInfoActivity
>
> It runs successfully .
>
> A icon in menu of emulator comes up which on clicking shows a screen with
> label "DeviceInfoActivity". This corresponding to my TestDeviceSetup apk .
>
> So I want to know how to run in emulator all of other apk's ? or they can
> just be tested through cts test script only .
>
> Any light on this query will be appreciated .
>
> Thanks :
> Uander
>
>
>
> On Wed, Mar 17, 2010 at 2:03 PM, abukustfan <[email protected]> wrote:
> > Use following command to start testing cts
> >  $ cd out/host/linux-x86/cts/android-cts/tools
> >  $ ./startcts
>
> > then you will get a cts command prompt,
> > cts >
>
> > type help to get how to run test.
>
> > Good luck!
>
> > On Mar 17, 12:52 pm, Umang Gupta <[email protected]> wrote:
> > > Any help on how to test apk's generated by compiling cts tests  on
> > emulator
> > > or target ??
>
> > > Thanks :
> > > Uander
>
> > > On Tue, Mar 16, 2010 at 5:53 PM, Umang Gupta <[email protected]>
> > wrote:
> > > > Hi  All ,
>
> > > > I am running cts test cases on eclair   . I've done with :
> > > > . build/envsetup.sh; lunch 1; make cts
>
> > > > That compiled my all cts test cases  .
> > > > Apk's for that all have been installed in
> > > > $(ANDROID_BUILD_TOP)/out/target/product/generic/data/app :
>
> > > > few of these are : CtsDatabaseTestCases.apk , ApiDemos.apk  etc .
>
> > > > Now I start my emulator  ::  ./emulator &
>
> > > > I "adb push " to all apk's to my  emulator .
>
> > > > Now my query is how to run these apk's on device /emulator ??
>
> > > >  Thanks :
> > > > Uander
>
> > --
> > unsubscribe: 
> > [email protected]<android-porting%2Bunsubscribe@ 
> > googlegroups.com>
> > website:http://groups.google.com/group/android-porting

-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting

Reply via email to