博客
关于我
android 4.0 cts
阅读量:133 次
发布时间:2019-02-28

本文共 3301 字,大约阅读时间需要 11 分钟。

首先shell脚本变了,4.0里面叫cts-tradefed
$ ./cts-tradefed --helpCTS-tradefed host version 4.0.3_r3CTS-tradefed is the test harness for running the Android Compatibility Suite, built on top of the tradefed framework.Available commands and optionsHost:  help: show this message  help all: show the complete tradefed help  exit: gracefully exit the cts console, waiting till all invocations are completeRun:  run cts --plan test_plan_name: run a test plan  run cts --package/-p : run a CTS test package  run cts --class/-c [--method/-m] : run a specific test class and/ormethod  run cts --continue-session session_ID: run all not executed tests from a previous CTS session  run cts [options] --serial/s device_ID: run CTS on specified device  run cts [options] --shards number_of_shards: shard a CTS run into given number of independent chunks, to run on multiple devices inparallel  run cts --help/--help-all: get more help on running CTSList:  l/list d/devices: list connected devices and their state  l/list packages: list CTS test packages  l/list p/plans: list CTS test plans  l/list i/invocations: list invocations aka CTS test runs currentlyin progress  l/list c/commands: list commands: aka CTS test run commands currently in the queue waiting to be allocated devices  l/list r/results: list CTS results currently present in the repositoryAdd:  add derivedplan --plan plane_name --session/-s session_id -r [pass/fail/notExecuted/timeout]: derive a plan from the given sessionDump:  d/dump l/logs: dump the tradefed logs for all running invocations
列出所有的package:
$ ./cts-tradefed list packages
Android CTS 4.0.3_r3Using commandline arguments as starting command: [list, packages]09-06 14:05:32 I/DeviceManager: Detected new device 014971B509017018android.accelerationandroid.accessibilityserviceandroid.accountsandroid.adminandroid.animationandroid.apidemos.ctsandroid.appandroid.bluetoothandroid.contentandroid.core.tests.libcore.package.comandroid.core.tests.libcore.package.dalvikandroid.core.tests.libcore.package.libcoreandroid.core.tests.libcore.package.organdroid.core.tests.libcore.package.sunandroid.core.tests.libcore.package.testsandroid.core.vm-testsandroid.core.vm-tests-tfandroid.databaseandroid.dpiandroid.dpi2android.drmandroid.exampleandroid.gestureandroid.graphicsandroid.graphics2android.hardwareandroid.holoandroid.jniandroid.locationandroid.mediaandroid.mediastressandroid.nativemediaandroid.ndefandroid.netandroid.openglperfandroid.osandroid.permissionandroid.permission2android.preferenceandroid.preference2android.providerandroid.renderscriptandroid.saxandroid.securityandroid.speechandroid.telephonyandroid.tests.appsecurityandroid.tests.sigtestandroid.textandroid.textureviewandroid.utilandroid.viewandroid.webkitandroid.widget
以media为例,测试单一的package
$ ./cts-tradefed
Android CTS 4.0.3_r3cts-tf > 09-06 14:06:18 I/DeviceManager: Detected new device 014971B509017018cts-tf > run cts --package android.media--09-06 14:07:09 I/014971B509017018: Collecting device info09-06 14:07:11 I/014971B509017018: -----------------------------------------09-06 14:07:11 I/014971B509017018: Test package android.media started09-06 14:07:11 I/014971B509017018: -----------------------------------------
测试单独的case:
cts-tf > run cts -c android.mediastress.cts.H264R480pAacShortPlayerTest -m testPlay00
 

转载地址:http://bbld.baihongyu.com/

你可能感兴趣的文章
Nacos安装教程(非常详细)从零基础入门到精通,看完这一篇就够了
查看>>
Nacos实战攻略:从入门到精通,全面掌握服务治理与配置管理!(上)
查看>>
Nacos实战攻略:从入门到精通,全面掌握服务治理与配置管理!(下)
查看>>
Nacos心跳机制实现快速上下线
查看>>
nacos报错com.alibaba.nacos.shaded.io.grpc.StatusRuntimeException: UNAVAILABLE: io exception
查看>>
nacos服务提供和发现及客户端负载均衡配置
查看>>
Nacos服务注册与发现demo
查看>>
Nacos服务注册与发现的2种实现方法!
查看>>
nacos服务注册和发现原理简单实现案例
查看>>
Nacos服务注册总流程(源码分析)
查看>>
nacos服务注册流程
查看>>
Nacos服务部署安装
查看>>
nacos本地可以,上服务器报错
查看>>
Nacos注册Dubbo(2.7.x)以及namespace配置
查看>>
Nacos注册中心有几种调用方式?
查看>>
nacos注册失败,Feign调用失败,feign无法注入成我们的bean对象
查看>>
nacos源码 nacos注册中心1.4.x 源码 nacos源码如何下载 nacos 客户端源码下载地址 nacos discovery下载地址(一)
查看>>
nacos源码 nacos注册中心1.4.x 源码 spring cloud alibaba 的discovery做了什么 nacos客户端是如何启动的(二)
查看>>
Nacos简介、下载与配置持久化到Mysql
查看>>
Nacos简介和控制台服务安装
查看>>