Skip to content

Commit f39cc98

Browse files
committed
Fix and reorder unit test dependencies
1 parent d7418de commit f39cc98

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

unit-tests/CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,16 @@ if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR})
3333
message(FATAL_ERROR "In-source builds not allowed. Please make a new directory (called a build directory) and run CMake from there. You may need to remove CMakeCache.txt. ")
3434
endif()
3535

36-
add_compile_definitions(TEST HAVE_HASH HAVE_BLAKE2 HAVE_ECC USB_SEGMENT_SIZE=64 MAX_INPUT_COUNT=15 MAX_MESSAGE_LEN=200 IO_SEPROXYHAL_BUFFER_SIZE_B=128)
36+
add_compile_definitions(TEST HAVE_HASH HAVE_BLAKE2 HAVE_ECC USB_SEGMENT_SIZE=64 MAX_INPUT_COUNT=15 MAX_MESSAGE_LEN=200 IO_SEPROXYHAL_BUFFER_SIZE_B=128 OS_IO_SEPH_BUFFER_SIZE=272)
3737

38-
include_directories(../src)
39-
# include_directories(mock_includes)
4038
include_directories(mock_includes)
41-
# include_directories(/opt/nanos-secure-sdk/include/)
4239
include_directories(/opt/ledger-secure-sdk/include/)
4340
include_directories(/opt/ledger-secure-sdk/lib_cxng/include)
4441
include_directories(/opt/ledger-secure-sdk/lib_standard_app/)
42+
include_directories(/opt/ledger-secure-sdk/io/include)
43+
include_directories(/opt/ledger-secure-sdk/io_legacy/include/)
4544

45+
include_directories(../src)
4646

4747
add_executable(test_address test_address.c)
4848
add_executable(test_format test_format.c)

unit-tests/mock_includes/ux.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
#define CX_CURVE_256K1 0x21
22

3-
typedef struct ux_state_s ux_state_t;
3+
typedef struct ux_state_s ux_state_t;
4+
5+
typedef struct bolos_ux_params_s bolos_ux_params_t;

0 commit comments

Comments
 (0)