Skip to content

Conversation

@hakehuang
Copy link
Contributor

add harness_config for console for testing

@hakehuang
Copy link
Contributor Author

testing log:

~/zephyrproject/zephyr$ ./scripts/twister --device-testing --hardware-map /home/ubuntu/nxp/frdm_mcxn947/map.yaml -p frdm_mcxn947/mcxn947/cpu0 -T samples/sensor/thermometer
ZEPHYR_BASE unset, using "/home/ubuntu/zephyrproject/zephyr"
Renaming output directory to /home/ubuntu/zephyrproject/zephyr/twister-out.1
INFO    - Using Ninja..
INFO    - Zephyr version: v4.0.0-rc1-10-gafce5329f772
INFO    - Using 'zephyr' toolchain.
INFO    - Building initial testsuite list...
INFO    - Writing JSON report /home/ubuntu/zephyrproject/zephyr/twister-out/testplan.json

Device testing on:

| Platform                  |         ID | Serial device                                         |
|---------------------------|------------|-------------------------------------------------------|
| frdm_mcxn947/mcxn947/cpu0 | 1063641652 | /dev/serial/by-id/usb-SEGGER_J-Link_001063641652-if00 |

INFO    - JOBS: 8
INFO    - Adding tasks to the queue...
INFO    - Added initial list of jobs to queue
INFO    - Total complete:    1/   1  100%  built (not run):    0, skipped:    0, failed:    0, error:    0
INFO    - 1 test scenarios (1 test instances) selected, 0 configurations skipped (0 by static filter, 0 at runtime).
INFO    - 1 of 1 test configurations passed (100.00%), 0 built (not run), 0 failed, 0 errored, 0 skipped with 0 warnings in 25.77 seconds
INFO    - In total 1 test cases were executed, 0 skipped on 1 out of total 860 platforms (0.12%)
INFO    - 1 test configurations executed on platforms, 0 test configurations were only built.

Hardware distribution summary:

| Board                     |         ID |   Counter |   Failures |
|---------------------------|------------|-----------|------------|
| frdm_mcxn947/mcxn947/cpu0 | 1063641652 |         1 |          0 |
INFO    - Saving reports...
INFO    - Writing JSON report /home/ubuntu/zephyrproject/zephyr/twister-out/twister.json
INFO    - Writing xunit report /home/ubuntu/zephyrproject/zephyr/twister-out/twister.xml...
INFO    - Writing xunit report /home/ubuntu/zephyrproject/zephyr/twister-out/twister_report.xml...
INFO    - Run completed

add harness_config for console for testing

Signed-off-by: Hake Huang <[email protected]>
- frdm_mcxn947/mcxn947/cpu0 # p3t1755
harness: console
harness_config:
fixture: sensor_ambient_temp
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is a fixture required?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if the sensor is not on board but extend port.

@mmahadevan108
Copy link
Contributor

mmahadevan108 commented Nov 1, 2024

@MaureenHelm @hakehuang , is this needed for 4.0 release?

@hakehuang
Copy link
Contributor Author

is this needed for 4.0 release?

@mmahadevan108 , good to have

@mmahadevan108 mmahadevan108 merged commit 7b4d8cf into zephyrproject-rtos:main Nov 1, 2024
22 checks passed
@mmahadevan108 mmahadevan108 deleted the test_support_for_sensor branch November 1, 2024 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants