@@ -13,38 +13,27 @@ psoc6/
1313│ ├─ single/ --> Tests require a single board
1414├─ mp_custom/ --> Tests based on mpremote (and not based on the run-test.py utility)
1515├─ inputs/ --> Non-test files utilities required as inputs for the tests
16- ├─ run_psoc6_tests.sh --> Script handling PSoC6 tests
1716├─ README
1817```
1918## Running the tests
2019
21- In order to run a particular test or group of tests make use of the ` run_psoc6_tests.h ` script.
20+ In order to run a particular test or group of tests make use of the ` tools/psoc6/run_test_plan.py ` script.
2221
23- Find the available test suites and options by running the help command:
22+ For example, to run a test in your local machine, use the following command:
2423
2524```
26- ./run_psoc6_tests.sh help
25+ python tools/psoc6/run_test_plan.py <test_name>
2726```
2827
29- For example, to run the "PWM" tests (default device will be /dev/ttyACM0):
28+ And this will execute the test and use by default the " /dev/ttyACM0" serial port, and the "/dev/ttyACM1" as the stub device port.
3029
31- ```
32- ./run_psoc6_tests.sh -t pwm
33- ```
34-
35- If you need to specify the serial ports of the devices, for example, in a multiple instances test:
36-
37- ```
38- ./run_psoc6_tests.sh -t bitstream --dev-test /dev/ttyACM0 --dev-stub /dev/ttyACM3
39- ```
40-
41- Or directly running all the tests of test under CI/CD for a given board type:
30+ Alternatively, you can use a HIL devices file and board type to run the tests. For example, to run the ` wifi ` test with a given board and HIL devices file:
4231
4332```
44- ./run_psoc6_tests.sh --test-suite ci-tests --board CY8CPROTO-062-4343W --hil ifx-mpy-hil
33+ python tools/psoc6/run_test_plan.py wifi --max-retries 1 --hil-devs local-devs.yml --board CY8CKIT-062S2-AI
4534```
4635
47- In this case, the hardware device list connected to the hardware in the loop (HIL) needs to be provided .
36+ Check the ` tools/psoc6/run_test_plan.py --help ` for more details and options .
4837
4938## Extended Hardware Setup Tests
5039
0 commit comments