common:
  filter: not CONFIG_NATIVE_LIBC
  tags:
    - posix
  min_ram: 32
  # 1 tier0 platform per supported architecture
  platform_key:
    - arch
    - simulation
tests:
  portability.posix.headers.with_posix_api:
    extra_configs:
      - CONFIG_POSIX_API=y
  portability.posix.headers.without_posix_api:
    extra_configs:
      - CONFIG_POSIX_API=n
  portability.posix.headers.minimal.with_posix_api:
    extra_configs:
      - CONFIG_POSIX_API=y
  portability.posix.headers.minimal.without_posix_api:
    extra_configs:
      - CONFIG_POSIX_API=n
  portability.posix.headers.picolibc.with_posix_api:
    tags: picolibc
    filter: CONFIG_PICOLIBC_SUPPORTED
    extra_configs:
      - CONFIG_POSIX_API=y
      - CONFIG_PICOLIBC=y
  portability.posix.headers.picolibc.without_posix_api:
    tags: picolibc
    filter: CONFIG_PICOLIBC_SUPPORTED
    extra_configs:
      - CONFIG_POSIX_API=n
      - CONFIG_PICOLIBC=y
  portability.posix.headers.newlib.with_posix_api:
    tags: newlib
    filter: TOOLCHAIN_HAS_NEWLIB == 1
    extra_configs:
      - CONFIG_POSIX_API=y
      - CONFIG_NEWLIB_LIBC=y
  portability.posix.headers.newlib.without_posix_api:
    filter: TOOLCHAIN_HAS_NEWLIB == 1
    extra_configs:
      - CONFIG_POSIX_API=n
      - CONFIG_NEWLIB_LIBC=y
  portability.posix.headers.arcmwdtlib.with_posix_api:
    toolchain_allow: arcmwdt
    extra_configs:
      - CONFIG_POSIX_API=y
      - CONFIG_ARCMWDT_LIBC=y
  portability.posix.headers.arcmwdtlib.without_posix_api:
    toolchain_allow: arcmwdt
    extra_configs:
      - CONFIG_POSIX_API=n
      - CONFIG_ARCMWDT_LIBC=y
