1#
2# There are 4 different test cases that have to be considered:
3#
4# | Case # | Controller type        | Selected mode        |  Example board |
5# +--------+------------------------+----------------------+----------------+
6# |    1   | Classical CAN only     | CONFIG_CAN_FD_MODE=n | nucleo_f072    |
7# |    2   | Classical CAN only     | CONFIG_CAN_FD_MODE=y | nucleo_f072    |
8# |    3   | Classical CAN + CAN-FD | CONFIG_CAN_FD_MODE=n | native_posix   |
9# |    4   | Classical CAN + CAN-FD | CONFIG_CAN_FD_MODE=y | native_posix   |
10#
11# The test-specific CONFIG_TEST_USE_CAN_FD_MODE is used to decide if the test should use
12# CAN-FD independent of CONFIG_CAN_FD_MODE configuration.
13#
14
15tests:
16  # cases 1, 3
17  canbus.isotp.conformance:
18    tags:
19      - can
20      - isotp
21    depends_on: can
22    filter: dt_chosen_enabled("zephyr,canbus") and not dt_compat_enabled("kvaser,pcican")
23  # case 2
24  canbus.isotp.conformance.fd.unused:
25    tags:
26      - can
27      - isotp
28    extra_configs:
29      - CONFIG_TEST_USE_CAN_FD_MODE=n
30      - CONFIG_CAN_FD_MODE=y
31    depends_on: can
32    filter: dt_chosen_enabled("zephyr,canbus") and not dt_compat_enabled("kvaser,pcican")
33  # case 4
34  canbus.isotp.conformance.fd.txdl_32:
35    tags:
36      - can
37      - isotp
38    extra_configs:
39      - CONFIG_TEST_USE_CAN_FD_MODE=y
40      - CONFIG_TEST_ISOTP_TX_DL=32
41      - CONFIG_CAN_FD_MODE=y
42    depends_on: can
43    filter: dt_chosen_enabled("zephyr,canbus") and not dt_compat_enabled("kvaser,pcican")
44  # case 4
45  canbus.isotp.conformance.fd.txdl_64:
46    tags:
47      - can
48      - isotp
49    extra_configs:
50      - CONFIG_TEST_USE_CAN_FD_MODE=y
51      - CONFIG_TEST_ISOTP_TX_DL=64
52      - CONFIG_CAN_FD_MODE=y
53    depends_on: can
54    filter: dt_chosen_enabled("zephyr,canbus") and not dt_compat_enabled("kvaser,pcican")
55