Camera XTS 笔记总结

13d0436ff1999ed4b1daea9da0d24ef8.gif

和你一起终身学习,这里是程序员Android

经典好文推荐,通过阅读本文,您将收获以下知识点:

常用测试步骤(下面均以CTS为例)

  1. 打开终端,进入 cts 包 tools目录下
  2. 执行 ./cts-tradefed 进入cts测试
:~/XTS/CTS/14/R3/android-cts-14_r3-linux/android-cts/tools$ ./cts-tradefed 
==================
Notice:
We collect anonymous usage statistics in accordance with our Content Licenses (https://source.android.com/setup/start/licenses), Contributor License Agreement (https://opensource.google.com/docs/cla/), Privacy Policy (https://policies.google.com/privacy) and Terms of Service (https://policies.google.com/terms).
==================
Android Compatibility Test Suite 14_r3 (11432042)
Use "help" or "help all" to get more information on running commands.
07-12 17:06:45 I/DeviceManager: Detected new device 1b696b3e
cts-tf >

常用命令

1. 全跑命令

run cts --plan CTS -s devices id

2.单独跑某个module

run cts -m module

Camera CTS 模块:

run cts -s 手机序列号 -m  CtsCameraTestCases

Camera GSI模块:

run cts-on-gsi -s 手机序列号 -m  CtsCameraTestCases

Camera VTS 模块:

run vts -s 手机序列号 -m  VtsHalCameraProviderV2_4TargetTest

camera GTS模块:

run gts -s 手机序列号 -m  GtsCameraTestCases
3. 单跑某个module下的一个类

run cts -m module -t classname

Camera CTS 模块:

run cts -s 手机序列号 -m  CtsCameraTestCases  -t fail模块

Camera GSI模块:

run cts-on-gsi -s 手机序列号 -m  CtsCameraTestCases -t fail模块

Camera VTS 模块:

run vts -s 手机序列号 -m  VtsHalCameraProviderV2_4TargetTest   -t fail模块

camera GTS模块:

run gts -s 手机序列号 -m  GtsCameraTestCases  -t fail模块
4. 查看已经跑过的记录

l r 罗列出之前跑过的记录,包裹Session ID ,pass 项,Fail 项等,方便后续复测。

5. 复测之前跑过的fail 项

run retry --retry Sessionid

6. run cts --help 查看CTS更多指令

CTS

Google 官方文档

https://source.android.google.cn/docs/compatibility/cts?hl=zh-cn

测试命令

camera 模块全测命令:
run cts -s 手机序列号 -m CtsCameraTestCases

Camera 单独模块测试命令
run cts -s 手机序列号 -m CtsCameraTestCases -t fail模块

GTS

测试命令

Camera 模块全测命令:
run gts -s 手机序列号 -m GtsCameraTestCases

Camera 单独模块测试命令
run gts -s 手机序列号 -m CtsCameraTestCases -t fail模块

GSI

GKI-GSI 刷Google System 镜像

刷机后刷镜像: Google system.img

adb reboot bootloader
    fastboot reboot fastboot
    // 刷 google  system img
    fastboot flash system  system.img
    #fastboot flash system  [GSI system.img] #signed_signed_asop_arm64_img-xxx(gsi包里的)
    fastboot reboot bootloader
    fastboot -w
    fastboot reboot

GKI-GSI 测试指令:

camera 模块全测命令
run cts-on-gsi -s 手机序列号 -m CtsCameraTestCases

单模块 测试命令
run cts-on-gsi -s 手机序列号 -m CtsCameraTestCases -t fail模块

OKI-GSI 刷Google bootimage 镜像

刷机后刷镜像 boot.img

adb reboot bootloader
    fastboot reboot fastboot
    ////////////google  boot img
    fastboot flash boot signed-gsi_arm64-img-11114065\boot-5.10.img
    #fastboot flash boot [GKI 2.0 boot-5.10~5.15.img(版本路径里的)
    fastboot reboot bootloader
    fastboot -w
    fastboot reboot

OKI-GSI 测试指令:

camera 模块全测命令
run cts-validation -s 手机序列号 -m CtsCameraTestCases

单模块 测试命令
run cts-validation -s 手机序列号 -m CtsCameraTestCases -t fail模块

VTS

GKI-VTS 刷Google System +vendor_boot 镜像

刷机后刷镜像 system.img vendor_boot-debug.img

adb reboot bootloader
    fastboot reboot fastboot
    // google  system img   
    fastboot flash system   system.img
    // 需要更换vendor_boot debug img
    fastboot flash vendor_boot   vendor_boot-debug.img
    #fastboot flash system  [GSI system.img] #signed_signed_asop_arm64_img-xxx(gsi包里的)
    #fastboot flash vendor_boot [in version patch vendor_boot-debug.img ] (版本路径里面)
    fastboot reboot bootloader
    fastboot -w
    fastboot reboot

GKI-VTS 测试指令:

camera 模块全测命令
run vts -s 手机序列号 -m VtsHalCameraProviderV2_4TargetTest

单模块 测试命令
run vts -s 手机序列号 -m VtsHalCameraProviderV2_4TargetTest -t fail模块

OKI-GSI 刷Google boot+vendor boot

刷机后刷镜像 boot-5.10.img vendor_boot-debug.img

adb reboot bootloader
    fastboot reboot fastboot
    // google   boot img
    fastboot flash boot   boot-5.10.img
    // 需要更换vendor_boot debug img
    fastboot flash vendor_boot  vendor_boot-debug.img
    # fastboot flash boot [GKI 2.0 boot-5.10~5.15.img(版本路径里的)
    # fastboot flash vendor_boot [in version patch vendor_boot-debug.img ] (symbol压缩包里面,需要单独下)
    fastboot reboot bootloader
    fastboot -w
    fastboot reboot

OKI-GSI 测试指令:

camera 模块全测命令
run run vts-validation -s 手机序列号 -m VtsHalCameraProviderV2_4TargetTest

单模块 测试命令
run run vts-validation -s 手机序列号 -m VtsHalCameraProviderV2_4TargetTest -t fail模块

ITS

Google 官方参考文档

https://source.android.google.cn/docs/compatibility/cts/camera-its-tests?hl=zh-cn#scene0

<
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

程序员Android

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值