13af6ab5fSopenharmony_ci@REM Copyright (c) 2023 Huawei Device Co., Ltd.
23af6ab5fSopenharmony_ci@REM Licensed under the Apache License, Version 2.0 (the "License");
33af6ab5fSopenharmony_ci@REM you may not use this file except in compliance with the License.
43af6ab5fSopenharmony_ci@REM You may obtain a copy of the License at
53af6ab5fSopenharmony_ci@REM
63af6ab5fSopenharmony_ci@REM http://www.apache.org/licenses/LICENSE-2.0
73af6ab5fSopenharmony_ci@REM
83af6ab5fSopenharmony_ci@REM Unless required by applicable law or agreed to in writing, software
93af6ab5fSopenharmony_ci@REM distributed under the License is distributed on an "AS IS" BASIS,
103af6ab5fSopenharmony_ci@REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
113af6ab5fSopenharmony_ci@REM See the License for the specific language governing permissions and
123af6ab5fSopenharmony_ci@REM limitations under the License.
133af6ab5fSopenharmony_ci
143af6ab5fSopenharmony_ci@echo off
153af6ab5fSopenharmony_ciSETLOCAL ENABLEEXTENSIONS
163af6ab5fSopenharmony_ci
173af6ab5fSopenharmony_ciREM change to work directory
183af6ab5fSopenharmony_cicd /d %~dp0
193af6ab5fSopenharmony_ci
203af6ab5fSopenharmony_ciREM log
213af6ab5fSopenharmony_ciecho "------------------------------------------------" >> log.txt
223af6ab5fSopenharmony_ci
233af6ab5fSopenharmony_ciREM run XTStest
243af6ab5fSopenharmony_ciset var=D:\AutoXTSTest
253af6ab5fSopenharmony_citimeout /t 15
263af6ab5fSopenharmony_cihdc shell "power-shell setmode 602"
273af6ab5fSopenharmony_cihdc shell "hilog -Q pidoff"
283af6ab5fSopenharmony_cicd /d %~dp0
293af6ab5fSopenharmony_cifor /f "tokens=1,2 delims==" %%i in (running_modules.txt) do (
303af6ab5fSopenharmony_ciif "%%i"=="modules" set value=%%j
313af6ab5fSopenharmony_ci)
323af6ab5fSopenharmony_cicall %var%\dayu200_xts\suites\acts\acts\run.bat run -l %value%
333af6ab5fSopenharmony_ci
343af6ab5fSopenharmony_ciREM get result
353af6ab5fSopenharmony_cicd /d %~dp0
363af6ab5fSopenharmony_ciecho "Successfully excute script" >> log.txt
373af6ab5fSopenharmony_ciif exist result (rd /s /q result)
383af6ab5fSopenharmony_cimd result
393af6ab5fSopenharmony_cipython result.py
403af6ab5fSopenharmony_ciENDLOCAL
413af6ab5fSopenharmony_ciexit
423af6ab5fSopenharmony_ci
433af6ab5fSopenharmony_ci
443af6ab5fSopenharmony_ci
45