1@REM Copyright (c) 2023 Huawei Device Co., Ltd.
2@REM Licensed under the Apache License, Version 2.0 (the "License");
3@REM you may not use this file except in compliance with the License.
4@REM You may obtain a copy of the License at
5@REM
6@REM http://www.apache.org/licenses/LICENSE-2.0
7@REM
8@REM Unless required by applicable law or agreed to in writing, software
9@REM distributed under the License is distributed on an "AS IS" BASIS,
10@REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11@REM See the License for the specific language governing permissions and
12@REM limitations under the License.
13
14@echo off
15SETLOCAL ENABLEEXTENSIONS
16
17REM change to work directory
18cd /d %~dp0
19
20REM log
21echo "------------------------------------------------" >> log.txt
22
23REM run XTStest
24set var=D:\AutoXTSTest
25timeout /t 15
26hdc shell "power-shell setmode 602"
27hdc shell "hilog -Q pidoff"
28cd /d %~dp0
29for /f "tokens=1,2 delims==" %%i in (running_modules.txt) do (
30if "%%i"=="modules" set value=%%j
31)
32call %var%\dayu200_xts\suites\acts\acts\run.bat run -l %value%
33
34REM get result
35cd /d %~dp0
36echo "Successfully excute script" >> log.txt
37if exist result (rd /s /q result)
38md result
39python result.py
40ENDLOCAL
41exit
42
43
44
45