Skip to content

Commit

Permalink
Fix unit-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cedelavergne-ledger committed Nov 3, 2023
1 parent 15e3bf6 commit 2b4a731
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
18 changes: 12 additions & 6 deletions unit-tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ if (NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE "Debug")
endif()

if (NOT DEFINED ENV{BOLOS_SDK})
message(FATAL_ERROR "BOLOS_SDK is not defined. ")
endif()

include(CTest)
ENABLE_TESTING()

Expand Down Expand Up @@ -63,11 +67,13 @@ add_compile_definitions(
BAGL_HEIGHT=64)

include_directories(../src)
include_directories(/opt/nanos-secure-sdk/include)
include_directories(/opt/nanos-secure-sdk/lib_cxng/include)
include_directories(/opt/nanos-secure-sdk/lib_ux/include)
include_directories(/opt/nanos-secure-sdk/lib_bagl/include)
include_directories(/opt/nanos-secure-sdk/lib_stusb/include)
include_directories($ENV{BOLOS_SDK}/include)
include_directories($ENV{BOLOS_SDK}/target/nanos/include)
include_directories($ENV{BOLOS_SDK}/lib_cxng/include)
include_directories($ENV{BOLOS_SDK}/lib_ux/include)
include_directories($ENV{BOLOS_SDK}/lib_bagl/include)
include_directories($ENV{BOLOS_SDK}/lib_stusb/include)
include_directories(.)

add_executable(test_format common/test_format.c)
add_executable(test_asn1 common/test_asn1.c)
Expand Down Expand Up @@ -162,4 +168,4 @@ add_test(test_decoder_authority_type test_decoder_authority_type)
add_test(test_decoder_optional_authority_type test_decoder_optional_authority_type)
add_test(test_decoder_public_key test_decoder_public_key)
add_test(test_get_operation_parser test_get_operation_parser)
add_test(test_decoder_beneficiaries_extensions test_decoder_beneficiaries_extensions)
add_test(test_decoder_beneficiaries_extensions test_decoder_beneficiaries_extensions)
1 change: 1 addition & 0 deletions unit-tests/glyphs.h
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// Stub to ensure compilation

0 comments on commit 2b4a731

Please sign in to comment.