博客
关于我
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加强(5)~DML 增删改操作和 DQL 查询操作
查看>>
mysql加强(6)~子查询简单介绍、子查询分类
查看>>
MySQL单实例或多实例启动脚本
查看>>
MySQL压缩包方式安装,傻瓜式教学
查看>>
MySQL原理、设计与应用全面解析
查看>>
MySQL原理简介—1.SQL的执行流程
查看>>
mysql参考触发条件_MySQL 5.0-触发器(参考)_mysql
查看>>
MySQL及navicat for mysql中文乱码
查看>>
MySqL双机热备份(二)--MysqL主-主复制实现
查看>>
mysql启动以后会自动关闭_驾照虽然是C1,一直是开自动挡的车,会不会以后就不会开手动了?...
查看>>
mysql启动和关闭外键约束的方法(FOREIGN_KEY_CHECKS)
查看>>
Mysql启动失败解决过程
查看>>
MySQL启动失败:Can't start server: Bind on TCP/IP port
查看>>
mysql启动报错
查看>>
mysql启动报错The server quit without updating PID file几种解决办法
查看>>
mysql和oorcale日期区间查询【含左右区间问题】
查看>>
MySQL和SQL入门
查看>>
mysql在centos下用命令批量导入报错_Variable ‘character_set_client‘ can‘t be set to the value of ‘---linux工作笔记042
查看>>
Mysql在Linux运行时新增配置文件提示:World-wrirable config file ‘/etc/mysql/conf.d/my.cnf‘ is ignored 权限过高导致
查看>>
Mysql在Windows上离线安装与配置
查看>>