mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-02 10:12:51 +00:00
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>
11 lines
258 B
CMake
11 lines
258 B
CMake
# Copyright (c) 2022 Meta
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
cmake_minimum_required(VERSION 3.20.0)
|
|
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
|
project(hash_function)
|
|
|
|
FILE(GLOB app_sources src/*.c)
|
|
target_sources(app PRIVATE ${app_sources})
|