How to run CTS tests in android(Eclair)?

前端 未结 4 1870
伪装坚强ぢ
伪装坚强ぢ 2020-12-21 12:34

In order to release a device to the market, You need to run the Compatibility Test Suite given by android...I need to know how to download and run it..

4条回答
  •  粉色の甜心
    2020-12-21 12:40

    As of ICS (4.0), cts has had a bit of a makeover. Now it's called cts-tradefed.

    The Google-provided documentation is available here.

    For a simple way to get up to speed on using cts-tradefed from your AOSP root directory and a connected device with a matching AOSP build:

    make cts
    cd out/host/$OSDIR/cts/android-cts/tools
    ./cts-tradefed
    

    Here, $OSDIR is either linux-x86, darwin-x86

    in the cts-shell:

    help
    list packages
    list plans
    run cts --plan CTS
    run cts --package android.webkit
    

    If it's not obvious, you can also use one of the plans or packages listed from list packages or list plans. Hopefully this will be helpful to someone else. It would've been quite helpful for me to find it earlier.

提交回复
热议问题