Skip to content

Commit 06b02e2

Browse files
tmlemanlgirdwood
authored andcommitted
cmocka: Remove window test
The window generation code (rectangular, Blackman, Hamming, Povey) is already fully covered by the ztest port at test/ztest/unit/math/window/. Remove the now-redundant CMocka test and its CMakeLists.txt stanza, along with the whole window/ subdirectory (it was the last remaining test there). This also removes the last non-dft3 subdirectory from test/cmocka/src/math/, leaving only fft/ (dft3, deferred to a later phase). Move the reference windows and their Octave/MATLAB generator scripts reused by the ztest port (ref_window_{rectangular,blackman,hamming, povey}.h, mfcc_blackman.m, mfcc_povey.m, ref_window.m) with git mv into test/ztest/unit/math/window/ to preserve file history, and drop the now-unneeded CMocka include path from the ztest CMakeLists.txt. CMock stats for src/math/window.c: - lines: 48% (54/111) - branches: 34% (11/32) Ztest stats for src/math/window.c: - lines: 46% (38/81) - branches: 44% (8/18) Every branch missing on the ztest side is also missing on the CMock side (same untested logic paths), confirming no regression. The differing line/branch denominators for the identical source file are a gcc vs clang instrumentation/optimization-level artifact, not a behavioural difference. Assisted-by: Copilot:claude-sonnet-5 Signed-off-by: Tomasz Leman <tomasz.m.leman@intel.com>
1 parent 310f615 commit 06b02e2

12 files changed

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

33
add_subdirectory(fft)
4-
add_subdirectory(window)

‎test/cmocka/src/math/window/CMakeLists.txt‎

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

‎test/cmocka/src/math/window/window.c‎

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

‎test/ztest/unit/math/window/CMakeLists.txt‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ set(SOF_ROOT "${PROJECT_SOURCE_DIR}/../../../../..")
1212
target_include_directories(app PRIVATE
1313
${SOF_ROOT}/zephyr/include
1414
${SOF_ROOT}/src/include
15-
# Reference windows are #included in place from the CMocka tree rather
16-
# than copied, so both frameworks share identical data.
17-
${SOF_ROOT}/test/cmocka/src/math/window
1815
)
1916

2017
target_compile_definitions(app PRIVATE
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)