2022-02-23 16:31:28 +01:00
|
|
|
sample:
|
|
|
|
name: SocketCAN sample
|
2019-01-23 12:41:44 +01:00
|
|
|
common:
|
2023-05-08 13:37:42 +02:00
|
|
|
tags:
|
|
|
|
- net
|
|
|
|
- socket
|
|
|
|
- can
|
2022-10-28 13:28:31 +02:00
|
|
|
filter: dt_chosen_enabled("zephyr,canbus") and not dt_compat_enabled("kvaser,pcican")
|
2019-01-23 12:41:44 +01:00
|
|
|
depends_on: can
|
2022-07-18 10:23:18 +02:00
|
|
|
harness: console
|
2024-04-15 10:02:41 +02:00
|
|
|
# native_posix does not work with CONFIG_POSIX_API
|
|
|
|
platform_exclude:
|
|
|
|
- native_posix
|
|
|
|
- native_posix/native/64
|
2019-01-23 12:41:44 +01:00
|
|
|
tests:
|
2022-02-23 16:31:28 +01:00
|
|
|
sample.net.sockets.can.one_socket:
|
2019-02-13 16:11:51 +01:00
|
|
|
extra_configs:
|
|
|
|
- CONFIG_NET_SOCKETS_CAN_RECEIVERS=1
|
2024-03-10 09:40:10 +01:00
|
|
|
- CONFIG_LOG_BACKEND_SHOW_COLOR=n
|
2022-07-18 10:23:18 +02:00
|
|
|
harness_config:
|
|
|
|
type: multi_line
|
2023-01-03 12:23:56 +01:00
|
|
|
ordered: true
|
2022-07-18 10:23:18 +02:00
|
|
|
regex:
|
2024-03-10 09:40:10 +01:00
|
|
|
- "(.*)\\[0|3\\] CAN frame: IDE 0x0 RTR 0x0 ID 0x1 DLC 0x8"
|
2022-07-18 10:23:18 +02:00
|
|
|
- "(.*)f0 f1 f2 f3 f4 f5 f6 f7"
|
2022-02-23 16:31:28 +01:00
|
|
|
sample.net.sockets.can.two_sockets:
|
2019-02-13 16:11:51 +01:00
|
|
|
extra_configs:
|
|
|
|
- CONFIG_NET_SOCKETS_CAN_RECEIVERS=2
|
2024-03-10 09:40:10 +01:00
|
|
|
- CONFIG_LOG_BACKEND_SHOW_COLOR=n
|
2022-07-18 10:23:18 +02:00
|
|
|
harness_config:
|
|
|
|
type: multi_line
|
2023-01-03 12:23:56 +01:00
|
|
|
ordered: true
|
2022-07-18 10:23:18 +02:00
|
|
|
regex:
|
2024-03-10 09:40:10 +01:00
|
|
|
- "(.*)\\[0|3\\] CAN frame: IDE 0x0 RTR 0x0 ID 0x1 DLC 0x8"
|
2022-07-18 10:23:18 +02:00
|
|
|
- "(.*)f0 f1 f2 f3 f4 f5 f6 f7"
|
2024-03-10 09:40:10 +01:00
|
|
|
- "(.*)\\[1|4\\] CAN frame: IDE 0x0 RTR 0x0 ID 0x1 DLC 0x8"
|
2022-07-18 10:23:18 +02:00
|
|
|
- "(.*)f0 f1 f2 f3 f4 f5 f6 f7"
|