diff options
author | Ashish Chaudhari <ashish@ettus.com> | 2019-05-14 16:46:07 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2019-11-26 11:49:14 -0800 |
commit | a38845de27ccf51b60dca342101dff7a2ba552ec (patch) | |
tree | 4e5a8beae6483e2945020d3066ebeecade61ea42 /host/tests/CMakeLists.txt | |
parent | c97bdc6c94c98753215a90cf499af4bdf06db8e2 (diff) | |
download | uhd-a38845de27ccf51b60dca342101dff7a2ba552ec.tar.gz uhd-a38845de27ccf51b60dca342101dff7a2ba552ec.tar.bz2 uhd-a38845de27ccf51b60dca342101dff7a2ba552ec.zip |
rfnoc: Refactored CHDR packet interfaces
- Moved packet interface code from public to private include
- Split packet interface into two files: payload paring and packet iface
- Added support for all CHDR packet types
- Added more test cases to unit test
Diffstat (limited to 'host/tests/CMakeLists.txt')
-rw-r--r-- | host/tests/CMakeLists.txt | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/host/tests/CMakeLists.txt b/host/tests/CMakeLists.txt index 551b57bb9..f31daed50 100644 --- a/host/tests/CMakeLists.txt +++ b/host/tests/CMakeLists.txt @@ -52,7 +52,6 @@ set(test_sources vrt_test.cpp expert_test.cpp fe_conn_test.cpp - rfnoc_chdr_test.cpp rfnoc_node_test.cpp ) @@ -191,6 +190,19 @@ UHD_ADD_NONAPI_TEST( EXTRA_SOURCES ${CMAKE_SOURCE_DIR}/lib/utils/config_parser.cpp ) +include_directories(${CMAKE_BINARY_DIR}/lib/rfnoc/chdr/) +include_directories(${CMAKE_SOURCE_DIR}/lib/rfnoc/chdr/) +add_executable(rfnoc_chdr_test + rfnoc_chdr_test.cpp + ${CMAKE_SOURCE_DIR}/lib/rfnoc/chdr/chdr_types.cpp + ${CMAKE_SOURCE_DIR}/lib/rfnoc/chdr/chdr_packet.cpp +) +target_link_libraries(rfnoc_chdr_test uhd ${Boost_LIBRARIES}) +UHD_ADD_TEST(rfnoc_chdr_test rfnoc_chdr_test) +UHD_INSTALL(TARGETS rfnoc_chdr_test RUNTIME DESTINATION ${PKG_LIB_DIR}/tests COMPONENT tests) + + + # Careful: This is to satisfy the out-of-library build of paths.cpp. This is # duplicate code from lib/utils/CMakeLists.txt, and it's been simplified. # TODO Figure out if this is even needed |