Skip to content

Commit

Permalink
Add abi unittests (without delay tansaction)
Browse files Browse the repository at this point in the history
* unittests (not completed)
* abi unittests (without delay tansaction)
  • Loading branch information
Laighno authored and harrywong committed Jun 20, 2018
1 parent a744a1f commit 8173c6c
Show file tree
Hide file tree
Showing 3 changed files with 746 additions and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ endif()

if(ENABLE_TESTING)
enable_testing()
add_subdirectory(unittest)
endif()

include(installer)
11 changes: 11 additions & 0 deletions unittest/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
add_executable( unit_tests abi_tests.cpp )

target_link_libraries( unit_tests
PRIVATE ${Boost_LIBRARIES} appbase evt_chain fc ${CMAKE_DL_LIBS} ${PLATFORM_SPECIFIC_LIBS} ${Intl_LIBRARIES} )


target_include_directories( unit_tests PUBLIC ${Boost_INCLUDE_DIR} )

add_test(NAME unit_tests
COMMAND unittest/unit_tests
WORKING_DIRECTORY ${CMAKE_BINARY_DIR})
Loading

0 comments on commit 8173c6c

Please sign in to comment.