ameyazing
ameyazing

Reputation: 423

In Android, Build CTS vs Download CTS. What is the difference?

we will shortly begin testing our Android port to a custom target board. As part of this test, we plan to execute the CTS. When researching the CTS, I came across this page on Android which provides CTS test suite for download. It also comes with a script to run the test scripts. Whereas, there are plenty of tutorials out there and some SO threads which discuss how to build CTS from source.

My question is if CTS can be downloaded directly from Android site, in what scenarios would I need to build the CTS from source code?

Just to clarify, I'm not looking for instructions on how to build CTS. I only need to understand when to use downloaded CTS and when to build it.

Upvotes: 1

Views: 765

Answers (3)

R_K
R_K

Reputation: 1023

"My question is if CTS can be downloaded directly from Android site"

Yes, you can download directly from android site and RUN.

"in what scenarios would I need to build the CTS from source code?"

If test case failed and you are not getting root cause from logs and source code then you can add logs in cts test case code build it to find root cause.

Upvotes: 0

khetanrajesh
khetanrajesh

Reputation: 300

Google keeps releasing Android CTS suite very often . For your device to be called an Android device , you have to be compliant with the latest CTS for the particular android version you are using . So if any of the CTS test is not passing google will not accept it .

When to use downloaded CTS : To excute the CTS always use the downloaded one .

When to build CTS : When a test case fails while running the downloaded one and you want to debug it , you can adds logs and build the CTS.

Upvotes: 0

giang nguyen
giang nguyen

Reputation: 423

I think you only need to build CTS from source code in case of:

  • You have fail test cases in your running and you want to debug through the actual cts code by, such as adding more log on the particular test cases.
  • You want to experiment new added test cases from upstream branch but not yet update on official cts-tradefed package.

Also I think you should have a look on on cts development project on aosp gerrit, so you would have more idea on how cts development is going on https://android-review.googlesource.com/q/status:open+project:platform%252Fcts

Upvotes: 0

Related Questions