博客
关于我
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/

你可能感兴趣的文章
mysql数据库死锁的产生原因及解决办法
查看>>
MySQL数据库的事务管理
查看>>
mysql数据库的备份与恢复
查看>>
Mysql数据库的条件查询语句
查看>>
MySQL数据库的高可用
查看>>
Mysql数据库相关各种类型的文件
查看>>
MYSQL数据库简单的状态检查(show processlist)
查看>>
MYSQL数据库简单的状态检查(show status)
查看>>
MySQL数据库系列
查看>>
MYSQL数据库自动本地/异地双备份/MYSQL增量备份
查看>>
mysql数据库表增添字段,删除字段、修改字段的排列等操作,还不快来
查看>>
MySQL数据库被黑了
查看>>
mysql数据库设计
查看>>
MySQL数据库设计与开发规范
查看>>
MYSQL数据库进阶操作
查看>>
MySQL数据库配置文件调优详解
查看>>
MySQL数据库酒店客房管理系统(含MySQL源码) 结课作业 做的不是很好
查看>>
mysql数据库里的一些坑(读高性能mysql有感)
查看>>
MySQL数据库面试题(2021最新版)
查看>>
MySQL数据库高并发优化配置
查看>>