common:
  tags:
    - drivers
    - can
  depends_on: can
tests:
  drivers.can.api:
    filter: dt_chosen_enabled("zephyr,canbus") and not dt_compat_enabled("kvaser,pcican")
      and not dt_compat_enabled("infineon,xmc4xxx-can-node")
  drivers.can.api.rtr:
    filter: dt_chosen_enabled("zephyr,canbus") and not dt_compat_enabled("kvaser,pcican")
      and not dt_compat_enabled("infineon,xmc4xxx-can-node")
    extra_configs:
      - CONFIG_CAN_ACCEPT_RTR=y
  drivers.can.api.twai:
    extra_args: DTC_OVERLAY_FILE=twai-enable.overlay
    filter: dt_compat_enabled("espressif,esp32-twai")
    platform_allow:
      - esp32_devkitc_wroom/esp32/procpu
      - esp32_devkitc_wrover/esp32/procpu
      - esp32c3_devkitm
      - esp32s2_saola
      - esp32s3_devkitm/esp32s3/procpu
      - xiao_esp32s3/esp32s3/procpu
  drivers.can.api.nxp_s32_canxl.non_rx_fifo:
    extra_configs:
      - CONFIG_CAN_NXP_S32_RX_FIFO=n
    filter: dt_compat_enabled("nxp,s32-canxl")
