Android CTS : downloading of CTS, environment setup, building and execution

后端 未结 5 1779
慢半拍i
慢半拍i 2021-01-15 08:49

If you know about Compatibility Test Suit for Android. Please send us the information regarding source code downloading of CTS, environment setup, building and execution.

5条回答
  •  旧巷少年郎
    2021-01-15 09:37

    To download the CTS compilable code you follow the instructions out here

    repo init -u https://android.googlesource.com/platform/manifest -b android-4.0.3_r1
    

    If you work for some of the OEM's Google will provide special cts branches, if not, you'll have to do with the above branch.

    To build and run CTS :

    cd /path/to/android/root
    ./cts/development/ide/eclipse/genclasspath.sh > .classpath
    chmod u+w .classpath
    
    cd /path/to/android/root
    make cts
    cts
    

    This answer obviously applies to 4.0.3 version of Android. Things may or may not change from Jelly Bean onwards.

提交回复
热议问题