Skip to content

Commit 7a6ea3e

Browse files
Rename scripts/tests/yaml to scripts/tests/chipyaml (#33913)
* rename scripts/tests/yaml to scripts/tests/chipyaml and replace the imports for yaml.paths_finder to chipyaml.paths_finder (and other occurences if they exist) * Adding more fixed references for renaming it to chipyaml
1 parent ec8547a commit 7a6ea3e

17 files changed

+12
-12
lines changed

docs/guides/simulated_device_linux.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Now that the building is completed there is a `chip-app1` binary created. This
6161
binary can be executed on a linux os with test commands.
6262
6363
```
64-
./scripts/tests/yaml/runner.py [TEST NAME] app1
64+
./scripts/tests/chipyaml/runner.py [TEST NAME] app1
6565
```
6666
6767
## Interacting with the simulated app

docs/testing/yaml.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -347,12 +347,12 @@ Compile chip-tool:
347347

348348
NOTE: use the target appropriate to your system
349349

350-
[chiptool.py](https://github.com/project-chip/connectedhomeip/blob/master/scripts/tests/yaml/chiptool.py)
350+
[chiptool.py](https://github.com/project-chip/connectedhomeip/blob/master/scripts/tests/chipyaml/chiptool.py)
351351
can be used to run tests against a commissioned DUT (commissioned by chip-tool).
352352
This will start an interactive instance of chip-tool automatically.
353353

354354
```
355-
./scripts/tests/yaml/chiptool.py tests Test_TC_OO_2_1 --server_path ./out/linux-x64-chip-tool/chip-tool
355+
./scripts/tests/chipyaml/chiptool.py tests Test_TC_OO_2_1 --server_path ./out/linux-x64-chip-tool/chip-tool
356356
357357
```
358358

@@ -361,14 +361,14 @@ NOTE: substitute the appropriate test name and chip-tool path as appropriate.
361361
A list of available tests can be generated using:
362362

363363
```
364-
./scripts/tests/yaml/chiptool.py list
364+
./scripts/tests/chipyaml/chiptool.py list
365365
```
366366

367367
Config variables can be passed to chiptool.py after the script by separating
368368
with --
369369

370370
```
371-
./scripts/tests/yaml/chiptool.py tests Test_TC_OO_2_1 --server_path ./out/linux-x64-chip-tool/chip-tool -- nodeId 0x12344321
371+
./scripts/tests/chipyaml/chiptool.py tests Test_TC_OO_2_1 --server_path ./out/linux-x64-chip-tool/chip-tool -- nodeId 0x12344321
372372
373373
```
374374

examples/rvc-app/run_all_yaml_tests.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ if [ -z "$NODEID" ]; then
1616
fi
1717

1818
# RVC Clean Mode cluster
19-
./scripts/tests/yaml/chiptool.py tests Test_TC_RVCCLEANM_1_1 --PICS "$RVC_DEVICE_PICS" --nodeId "$NODEID" --endpoint "$RVC_DEVICE_ENDPOINT" &&
19+
./scripts/tests/chipyaml/chiptool.py tests Test_TC_RVCCLEANM_1_1 --PICS "$RVC_DEVICE_PICS" --nodeId "$NODEID" --endpoint "$RVC_DEVICE_ENDPOINT" &&
2020

2121
# RVC Operational State cluster
22-
./scripts/tests/yaml/chiptool.py tests Test_TC_RVCOPSTATE_1_1 --PICS "$RVC_DEVICE_PICS" --nodeId "$NODEID" --endpoint "$RVC_DEVICE_ENDPOINT" &&
22+
./scripts/tests/chipyaml/chiptool.py tests Test_TC_RVCOPSTATE_1_1 --PICS "$RVC_DEVICE_PICS" --nodeId "$NODEID" --endpoint "$RVC_DEVICE_ENDPOINT" &&
2323

2424
# RVC Run Mode cluster
25-
./scripts/tests/yaml/chiptool.py tests Test_TC_RVCRUNM_1_1 --PICS "$RVC_DEVICE_PICS" --nodeId "$NODEID" --endpoint "$RVC_DEVICE_ENDPOINT" &&
25+
./scripts/tests/chipyaml/chiptool.py tests Test_TC_RVCRUNM_1_1 --PICS "$RVC_DEVICE_PICS" --nodeId "$NODEID" --endpoint "$RVC_DEVICE_ENDPOINT" &&
2626
echo done
File renamed without changes.

scripts/tests/yaml/chiptool.py scripts/tests/chipyaml/chiptool.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
from tests_finder import TestsFinder
2727
from tests_tool import send_raw_command, send_yaml_command
2828

29-
_DEFAULT_EXTENSIONS_DIR = 'scripts/tests/yaml/extensions'
29+
_DEFAULT_EXTENSIONS_DIR = 'scripts/tests/chipyaml/extensions'
3030
_DEFAULT_PICS_FILE = 'src/app/tests/suites/certification/ci-pics-values'
3131
_DEFAULT_SPECIFICATIONS_DIR = 'src/app/zap-templates/zcl/data-model/chip/*.xml'
3232

scripts/tests/yaml/darwinframeworktool.py scripts/tests/chipyaml/darwinframeworktool.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
from runner import CONTEXT_SETTINGS, darwinframeworktool
2525
from tests_tool import send_raw_command, send_yaml_command
2626

27-
_DEFAULT_EXTENSIONS_DIR = 'scripts/tests/yaml/extensions'
27+
_DEFAULT_EXTENSIONS_DIR = 'scripts/tests/chipyaml/extensions'
2828
_DEFAULT_PICS_FILE = 'src/app/tests/suites/certification/ci-pics-values'
2929
_DEFAULT_SPECIFICATIONS_DIR = 'src/app/zap-templates/zcl/data-model/chip/*.xml'
3030

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

scripts/tests/run_darwin_framework_ota_test.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from chiptest.accessories import AppsRegister
1111
from chiptest.runner import Runner
1212
from chiptest.test_definition import App, ExecutionCapture
13-
from yaml.paths_finder import PathsFinder
13+
from chipyaml.paths_finder import PathsFinder
1414

1515
TEST_NODE_ID = '0x12344321'
1616
TEST_VID = '0xFFF1'

scripts/tests/run_test_suite.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
from chiptest.accessories import AppsRegister
2929
from chiptest.glob_matcher import GlobMatcher
3030
from chiptest.test_definition import TestRunTime, TestTag
31-
from yaml.paths_finder import PathsFinder
31+
from chipyaml.paths_finder import PathsFinder
3232

3333
DEFAULT_CHIP_ROOT = os.path.abspath(
3434
os.path.join(os.path.dirname(__file__), '..', '..'))

0 commit comments

Comments
 (0)