From 73f49e8e97160fc78358b5ae786d99061cfc75d1 Mon Sep 17 00:00:00 2001 From: Lucas PASCAL Date: Thu, 18 Jul 2024 16:39:14 +0200 Subject: [PATCH] [update] Adapt unit tests for 'NBGL' rather than 'Stax' --- tests/unit/CMakeLists.txt | 10 +++++----- .../{test_stax_mnemonic.c => test_nbgl_mnemonic.c} | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) rename tests/unit/{test_stax_mnemonic.c => test_nbgl_mnemonic.c} (99%) diff --git a/tests/unit/CMakeLists.txt b/tests/unit/CMakeLists.txt index 9c595ca9..bace7140 100644 --- a/tests/unit/CMakeLists.txt +++ b/tests/unit/CMakeLists.txt @@ -36,15 +36,15 @@ endif() add_compile_definitions(WIDE=) add_compile_definitions(TEST) -add_compile_definitions(TARGET_STAX) +add_compile_definitions(SCREEN_SIZE_WALLET) add_compile_definitions(OS_IO_SEPROXYHAL) include_directories(../../src ./mocks/) -add_executable(test_stax_mnemonic test_stax_mnemonic.c) +add_executable(test_nbgl_mnemonic test_nbgl_mnemonic.c) -add_library(stax SHARED ../../src/ux_common/onboarding_seed_rom_variables.c ../../src/stax/mnemonic.c) +add_library(nbgl SHARED ../../src/ux_common/onboarding_seed_rom_variables.c ../../src/nbgl/mnemonic.c) -target_link_libraries(test_stax_mnemonic PUBLIC cmocka gcov stax) +target_link_libraries(test_nbgl_mnemonic PUBLIC cmocka gcov nbgl) -add_test(test_stax_mnemonic test_stax_mnemonic) +add_test(test_nbgl_mnemonic test_nbgl_mnemonic) diff --git a/tests/unit/test_stax_mnemonic.c b/tests/unit/test_nbgl_mnemonic.c similarity index 99% rename from tests/unit/test_stax_mnemonic.c rename to tests/unit/test_nbgl_mnemonic.c index 82d108aa..fa8ed2a9 100644 --- a/tests/unit/test_stax_mnemonic.c +++ b/tests/unit/test_nbgl_mnemonic.c @@ -4,7 +4,7 @@ #include #include -#include "stax/mnemonic.h" +#include "nbgl/mnemonic.h" static int setup(void **state __attribute__((unused))) {