# Copyright (c) 2022 Bjarki Arge Andreasen
# Copyright 2025 NXP
# SPDX-License-Identifier: Apache-2.0

tests:
  drivers.rtc.rtc_api:
    tags:
      - drivers
      - rtc
      - api
    filter: dt_alias_exists("rtc") and not dt_compat_enabled("zephyr,rtc-counter")
    depends_on: rtc
    timeout: 100
    platform_exclude:
      - qemu_x86_64

  drivers.rtc.rtc_api.rtc_counter:
    tags:
      - drivers
      - rtc
      - api
    filter: dt_alias_exists("rtc") and dt_compat_enabled("zephyr,rtc-counter")
    depends_on: rtc
    timeout: 100
    extra_configs:
      - CONFIG_RTC_ALARM=y
      - CONFIG_RTC_INIT_PRIORITY=70
      - CONFIG_TEST_RTC_ALARM_TIME_MASK=255
