Skip to content

Commit

Permalink
[update] Adapt unit tests for 'NBGL' rather than 'Stax'
Browse files Browse the repository at this point in the history
  • Loading branch information
lpascal-ledger committed Jul 18, 2024
1 parent e952e7b commit 73f49e8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions tests/unit/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include <string.h>
#include <cmocka.h>

#include "stax/mnemonic.h"
#include "nbgl/mnemonic.h"


static int setup(void **state __attribute__((unused))) {
Expand Down

0 comments on commit 73f49e8

Please sign in to comment.