zephyr/tests/lib/hash_function/testcase.yaml
Chris Friedt 2d4619b13c tests: lib: hash_function: tests for sys_hash32
Add a test for `sys_hash32()`. The expectation is that hash
functions should be approximately uniform over a given field.

We can use the Kolmogorov Smirnov test to verify that our
hash function is approximately uniform over a given field.

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

18 lines
450 B
YAML

# Copyright (c) 2022 Meta
#
# SPDX-License-Identifier: Apache-2.0
common:
integration_platforms:
- native_posix
tests:
libraries.hash_function.identity:
# RNG seems to be broken on qemu_cortex_a53
platform_exclude: qemu_cortex_a53
extra_configs:
- CONFIG_SYS_HASH_FUNC32_CHOICE_IDENTITY=y
libraries.hash_function.djb2:
extra_configs:
- CONFIG_SYS_HASH_FUNC32_DJB2=y
- CONFIG_SYS_HASH_FUNC32_CHOICE_DJB2=y