zephyr/samples/basic/hash_map/sample.yaml
Chris Friedt 480b74917d samples: lib: os: hash_map: add Hashmap sample code
This sample shows how to use `sys_hashmap`.

Signed-off-by: Chris Friedt <cfriedt@meta.com>
2023-02-22 19:14:05 +01:00

59 lines
1.6 KiB
YAML

# Copyright (c) 2022 Meta
#
# SPDX-License-Identifier: Apache-2.0
sample:
description: System Hashmap sample
name: System Hashmap sample
common:
min_ram: 24
integration_platforms:
- qemu_x86_64
- mps2_an385
harness: console
harness_config:
type: one_line
regex:
- .*success
tests:
# Minimal Libc
libraries.hash_map.minimal.separate_chaining.djb2:
extra_configs:
- CONFIG_MINIMAL_LIBC=y
- CONFIG_SYS_HASH_MAP_CHOICE_SC=y
- CONFIG_SYS_HASH_FUNC32_CHOICE_DJB2=y
libraries.hash_map.minimal.open_addressing.djb2:
extra_configs:
- CONFIG_MINIMAL_LIBC=y
- CONFIG_SYS_HASH_MAP_CHOICE_OA_LP=y
- CONFIG_SYS_HASH_FUNC32_CHOICE_DJB2=y
# Newlib
libraries.hash_map.newlib.separate_chaining.djb2:
extra_configs:
- CONFIG_NEWLIB_LIBC=y
- CONFIG_SYS_HASH_MAP_CHOICE_SC=y
- CONFIG_SYS_HASH_FUNC32_CHOICE_DJB2=y
libraries.hash_map.newlib.open_addressing.djb2:
extra_configs:
- CONFIG_NEWLIB_LIBC=y
- CONFIG_SYS_HASH_MAP_CHOICE_OA_LP=y
- CONFIG_SYS_HASH_FUNC32_CHOICE_DJB2=y
libraries.hash_map.newlib.cxx_unordered_map.djb2:
extra_configs:
- CONFIG_NEWLIB_LIBC=y
- CONFIG_SYS_HASH_MAP_CHOICE_CXX=y
- CONFIG_SYS_HASH_FUNC32_CHOICE_DJB2=y
# PicoLibc
libraries.hash_map.picolibc.separate_chaining.djb2:
extra_configs:
- CONFIG_PICOLIBC=y
- CONFIG_SYS_HASH_MAP_CHOICE_SC=y
- CONFIG_SYS_HASH_FUNC32_CHOICE_DJB2=y
libraries.hash_map.picolibc.open_addressing.djb2:
extra_configs:
- CONFIG_PICOLIBC=y
- CONFIG_SYS_HASH_MAP_CHOICE_OA_LP=y
- CONFIG_SYS_HASH_FUNC32_CHOICE_DJB2=y