Skip to content

Commit d6f02b7

Browse files
tmlemanlgirdwood
authored andcommitted
cmocka: Remove normalize int32 tests
This patch removes tests that have been successfully converted to the new framework (from cmock to ztest). Code coverage testing did not reveal any regression. CMock stats for number.c - lines: 80.4 % (45/56) - funcs: 83.3 % (5/6) - branches: 78.1 % (25/32) Ztest stats for number.c - lines: 83.6 % (46/55) - funcs: 83.3 % (5/6) - branches: 78.9 % (30/38) These were the last tests from this group and together with them I'm removing the remaining references in the build system. Additionally, information about the source of the original code and its author has been added to the new version of tests. Signed-off-by: Tomasz Leman <tomasz.m.leman@intel.com>
1 parent ca555d9 commit d6f02b7

4 files changed

Lines changed: 2 additions & 62 deletions

File tree

test/cmocka/src/math/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# SPDX-License-Identifier: BSD-3-Clause
22

3-
add_subdirectory(numbers)
43
add_subdirectory(trig)
54
add_subdirectory(arithmetic)
65
add_subdirectory(fft)

test/cmocka/src/math/numbers/CMakeLists.txt

Lines changed: 0 additions & 6 deletions
This file was deleted.

test/cmocka/src/math/numbers/norm_int32.c

Lines changed: 0 additions & 55 deletions
This file was deleted.

test/ztest/unit/math/basic/arithmetic/test_norm_int32_ztest.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
// generative artificial intelligence solutions.
77
//
88
// Converted from CMock to Ztest
9+
// Original tests from test/cmocka/src/math/numbers/norm_int32.c:
10+
// Author: Slawomir Blauciak <slawomir.blauciak@linux.intel.com>
911

1012
#include <zephyr/ztest.h>
1113
#include <sof/math/numbers.h>

0 commit comments

Comments
 (0)