sample:
  description: An example to showcase usage of the nrfx_saadc driver in the non-blocking mode
  name: nrfx_saadc simple non-blocking example
tests:
  examples.nrfx_saadc.simple_non_blocking:
    tags: saadc
    filter: dt_compat_enabled("nordic,nrf-saadc")
    platform_allow:
      - nrf52dk/nrf52832
      - nrf52833dk/nrf52833
      - nrf52840dk/nrf52840
      - nrf5340dk/nrf5340/cpuapp
      - nrf9160dk/nrf9160
    integration_platforms:
      - nrf52dk/nrf52832
      - nrf52833dk/nrf52833
      - nrf52840dk/nrf52840
      - nrf5340dk/nrf5340/cpuapp
      - nrf9160dk/nrf9160
    harness: console
    harness_config:
      fixture: nrfx_example_loopbacks
      type: multi_line
      ordered: true
      regex:
        - "Starting nrfx_saadc simple non-blocking example."
        - "Single channel SAADC test."
        - "SAADC event: CALIBRATEDONE"
        - "SAADC event: DONE"
        - ".Sample 0. value == ([0-9]{3})"
        - "SAADC event: CALIBRATEDONE"
        - "SAADC event: DONE"
        - ".Sample 0. value == -?[0-9]"
        - "SAADC event: CALIBRATEDONE"
        - "SAADC event: DONE"
        - ".Sample 0. value == ([0-9]{3})"
        - "SAADC event: CALIBRATEDONE"
        - "SAADC event: DONE"
        - ".Sample 0. value == -?[0-9]"
        - "SAADC event: CALIBRATEDONE"
        - "SAADC event: DONE"
        - ".Sample 0. value == ([0-9]{3})"
        - "SAADC event: CALIBRATEDONE"
        - "SAADC event: DONE"
        - ".Sample 0. value == -?[0-9]"
        - "SAADC event: CALIBRATEDONE"
        - "SAADC event: DONE"
        - ".Sample 0. value == ([0-9]{3})"
        - "SAADC event: CALIBRATEDONE"
        - "SAADC event: DONE"
        - ".Sample 0. value == -?[0-9]"
        - "Multiple channels SAADC test."
        - "SAADC event: CALIBRATEDONE"
        - "SAADC event: DONE"
        - ".Sample 0. value == ([0-9]{3})"
        - ".Sample 1. value == ([0-9]{3})"
        - ".Sample 2. value == ([0-9]{3})"
        - "SAADC event: CALIBRATEDONE"
        - "SAADC event: DONE"
        - ".Sample 0. value == -?[0-9]"
        - ".Sample 1. value == -?[0-9]"
        - ".Sample 2. value == -?[0-9]"
        - "SAADC event: CALIBRATEDONE"
        - "SAADC event: DONE"
        - ".Sample 0. value == ([0-9]{3})"
        - ".Sample 1. value == ([0-9]{3})"
        - ".Sample 2. value == ([0-9]{3})"
        - "SAADC event: CALIBRATEDONE"
        - "SAADC event: DONE"
        - ".Sample 0. value == -?[0-9]"
        - ".Sample 1. value == -?[0-9]"
        - ".Sample 2. value == -?[0-9]"
        - "SAADC event: CALIBRATEDONE"
        - "SAADC event: DONE"
        - ".Sample 0. value == ([0-9]{3})"
        - ".Sample 1. value == ([0-9]{3})"
        - ".Sample 2. value == ([0-9]{3})"
        - "SAADC event: CALIBRATEDONE"
        - "SAADC event: DONE"
        - ".Sample 0. value == -?[0-9]"
        - ".Sample 1. value == -?[0-9]"
        - ".Sample 2. value == -?[0-9]"
        - "SAADC event: CALIBRATEDONE"
        - "SAADC event: DONE"
        - ".Sample 0. value == ([0-9]{3})"
        - ".Sample 1. value == ([0-9]{3})"
        - ".Sample 2. value == ([0-9]{3})"
        - "SAADC event: CALIBRATEDONE"
        - "SAADC event: DONE"
        - ".Sample 0. value == -?[0-9]"
        - ".Sample 1. value == -?[0-9]"
        - ".Sample 2. value == -?[0-9]"
