common:
  tags: nvs
tests:
  filesystem.nvs:
    platform_allow:
      - qemu_x86
      - mps2/an385
  filesystem.nvs.0x00:
    extra_args: DTC_OVERLAY_FILE=boards/qemu_x86_ev_0x00.overlay
    platform_allow: qemu_x86
  filesystem.nvs.sim.no_erase:
    extra_args: CONFIG_FLASH_SIMULATOR_EXPLICIT_ERASE=n
    platform_allow: qemu_x86
  filesystem.nvs.cache:
    extra_args:
      - CONFIG_NVS_LOOKUP_CACHE=y
      - CONFIG_NVS_LOOKUP_CACHE_SIZE=64
    platform_allow: native_sim
  filesystem.nvs.data_crc:
    extra_args:
      - CONFIG_NVS_DATA_CRC=y
    platform_allow:
      - native_sim
      - qemu_x86
  filesystem.nvs.data_crc_cache:
    extra_args:
      - CONFIG_NVS_DATA_CRC=y
      - CONFIG_NVS_LOOKUP_CACHE=y
      - CONFIG_NVS_LOOKUP_CACHE_SIZE=64
    platform_allow: native_sim
