-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: Add decrypt filter unit tests.
This commit implements unit tests for decryption stream filter in SUIT. As a result of tests implementation and run, minor changes to error handling were added to decryption filter implementation. Also, some parameter renamig was applied. Ref: NCSDK-30925 Signed-off-by: Michal Kozikowski <[email protected]>
- Loading branch information
1 parent
741cb7a
commit 0c2651a
Showing
9 changed files
with
652 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# | ||
# Copyright (c) 2023 Nordic Semiconductor ASA | ||
# | ||
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
# | ||
|
||
cmake_minimum_required(VERSION 3.20.0) | ||
|
||
include(../cmake/test_template.cmake) | ||
|
||
project(suit_decrypt_filter) | ||
target_include_directories(testbinary PRIVATE | ||
${SUIT_SUBSYS_DIR}/stream/stream_filters/include | ||
${SUIT_SUBSYS_DIR}/utils/include/ | ||
) | ||
|
||
target_sources(testbinary PRIVATE | ||
src/main.c | ||
${SUIT_SUBSYS_DIR}/stream/stream_filters/src/suit_decrypt_filter.c | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# | ||
# Copyright (c) 2024 Nordic Semiconductor ASA | ||
# | ||
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
# | ||
|
||
# Include and define MOCK_* Kconfigs | ||
rsource "../mocks/Kconfig" | ||
|
||
source "Kconfig.zephyr" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# | ||
# Copyright (c) 2024 Nordic Semiconductor ASA | ||
# | ||
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
# | ||
|
||
CONFIG_MOCK_SUIT_PROCESSOR=y | ||
CONFIG_MOCK_SUIT_PLATFORM=y | ||
CONFIG_MOCK_DIGEST_SINK=y | ||
CONFIG_MOCK_GENERIC_ADDRESS_STREAMER=y | ||
CONFIG_MOCK_SUIT_UTILS=y | ||
CONFIG_MOCK_SUIT_MEMPTR_STORAGE=y | ||
CONFIG_MOCK_SUIT_CRYPTO=y | ||
CONFIG_MOCK_SUIT_MCI=y | ||
CONFIG_MOCK_SUIT_METADATA=y | ||
CONFIG_MOCK_SUIT_PLATFORM_INTERNAL=y |
Oops, something went wrong.