1

我们将很快开始测试我们的 Android 端口到自定义目标板。作为此测试的一部分,我们计划执行 CTS。在研究 CTS 时,我在 Android 上看到了这个页面,它提供了 CTS 测试套件供下载。它还附带一个脚本来运行测试脚本。然而,那里有很多教程和一些讨论如何从源代码构建 CTS 的SO 线程。

我的问题是如果 CTS 可以直接从 Android 站点下载,在什么情况下我需要从源代码构建 CTS?

澄清一下,我不是在寻找有关如何构建 CTS 的说明。我只需要了解何时使用下载的 CTS 以及何时构建它。

4

3 回答 3

0

“我的问题是是否可以直接从 Android 网站下载 CTS”

是的,您可以直接从安卓网站下载并运行。

“在什么情况下我需要从源代码构建 CTS?”

如果测试用例失败并且您没有从日志和源代码中获得根本原因,那么您可以在 cts 测试用例代码中添加日志以查找根本原因。

于 2021-10-07T18:21:12.557 回答
0

我认为您只需要在以下情况下从源代码构建 CTS:

  • 您在运行中有失败的测试用例,并且您想通过实际的 cts 代码进行调试,例如在特定测试用例上添加更多日志。
  • 您想从上游分支试验新添加的测试用例,但尚未更新官方 cts-tradefed 包。

另外我认为你应该看看 cts 开发项目在 aosp gerrit 上,这样你就会对 cts 开发如何在 https://android-review.googlesource.com/q/status:open+project 上有更多的了解:平台%252Fcts

于 2018-04-04T04:09:55.380 回答
0

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.

于 2018-04-11T09:10:17.183 回答