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>
13 lines
193 B
Plaintext
13 lines
193 B
Plaintext
# Copyright (c) 2022 Meta
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
CONFIG_ZTEST=y
|
|
CONFIG_ZTEST_NEW_API=y
|
|
|
|
CONFIG_SYS_HASH_FUNC32=y
|
|
|
|
CONFIG_CBPRINTF_FP_SUPPORT=y
|
|
|
|
CONFIG_TEST_RANDOM_GENERATOR=y
|