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

你可能感兴趣的文章
Nash:轻量级、安全且可靠的脚本语言
查看>>
NAS、SAN和DAS的区别
查看>>
NAS个人云存储服务器搭建
查看>>
NAS服务器有哪些优势
查看>>
NAT PAT故障排除实战指南:从原理到技巧的深度探索
查看>>
nat 网卡间数据包转发_你是不是从来没有了解过光纤网卡,它跟普通网卡有什么区别?...
查看>>
NAT-DDNS内网穿透技术,快解析DDNS的优势
查看>>
NAT-DDNS内网穿透技术,快解析DDNS的优势
查看>>
NAT-DDNS内网穿透技术,解决动态域名解析难题
查看>>
natapp搭建外网服务器
查看>>
NativePHP:使用PHP构建跨平台桌面应用的新框架
查看>>
nativescript(angular2)——ListView组件
查看>>
NativeWindow_01
查看>>
Native方式运行Fabric(非Docker方式)
查看>>
Nature | 电子学“超构器件”, 从零基础到精通,收藏这篇就够了!
查看>>
Nature和Science同时报道,新疆出土四千年前遗骸完成DNA测序,证实并非移民而是土著...
查看>>
Nature封面:只低一毫米,时间也会变慢!叶军团队首次在毫米尺度验证广义相对论...
查看>>
Nat、端口映射、内网穿透有什么区别?
查看>>
Nat、端口映射、内网穿透有什么区别?
查看>>
nat打洞原理和实现
查看>>