一台电脑控制多台手机进行DDR压力测试

原创文章,转载请注明出处和作者

出自:http://blog.csdn.net/xl19862005

作者:Xandy

使用如下bat批处理可以用一台电脑控制多台手机进行DDR压力测试

@echo off
set testTimeInsecond=1800
set mbytes=512
set threads=8

@echo off 
echo 等待设备连接……
:NOCONNECTED
@echo off
adb devices | findstr "\<device>\" > NULL
IF ERRORLEVEL 1 goto NOCONNECTED

setlocal enabledelayedexpansion
set devices=
for /f "tokens=1,3,5,7,9,11,13,15,17 skip=1" %%t in ('adb devices') do (
set "devices=!devices! %%t"
)

for %%d in (%devices%) DO adb -s %%d root
for %%d in (%devices%) DO start adb -s %%d shell stressapptest -s %testTimeInSecond% -M %mbytes% -m %threads% -W -l /sdcard/memtest.log
pause
其中stressapptest为google开发的压力测试工具,可以到google官网获取

猜你喜欢

转载自blog.csdn.net/xl19862005/article/details/79001434