From 6eb03cd94c8cacbdb327090e0be72d5502dae480 Mon Sep 17 00:00:00 2001 From: Carles Fernandez Date: Sat, 24 Feb 2018 00:13:35 +0100 Subject: [PATCH] Add matio_test to make check in order to detect outdated matio library --- src/tests/CMakeLists.txt | 18 +++++++++++++++++- src/tests/unit-tests/arithmetic/matio_test.cc | 1 + 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/src/tests/CMakeLists.txt b/src/tests/CMakeLists.txt index 9aa8f0388..ecc45fb8e 100644 --- a/src/tests/CMakeLists.txt +++ b/src/tests/CMakeLists.txt @@ -700,6 +700,22 @@ else(NOT ${GTEST_DIR_LOCAL}) add_dependencies(gnuradio_block_test gtest) endif(NOT ${GTEST_DIR_LOCAL}) +add_executable(matio_test ${CMAKE_CURRENT_SOURCE_DIR}/single_test_main.cc + ${CMAKE_CURRENT_SOURCE_DIR}/unit-tests/arithmetic/matio_test.cc ) + +target_link_libraries(matio_test ${Boost_LIBRARIES} + ${GFlags_LIBS} + ${GLOG_LIBRARIES} + ${GTEST_LIBRARIES} + ${MATIO_LIBRARIES} + gnss_system_parameters ) +add_test(matio_test matio_test) +if(NOT ${GTEST_DIR_LOCAL}) + add_dependencies(matio_test gtest-${GNSSSDR_GTEST_LOCAL_VERSION}) +else(NOT ${GTEST_DIR_LOCAL}) + add_dependencies(matio_test gtest) +endif(NOT ${GTEST_DIR_LOCAL}) + add_executable(acq_test ${CMAKE_CURRENT_SOURCE_DIR}/single_test_main.cc ${CMAKE_CURRENT_SOURCE_DIR}/unit-tests/signal-processing-blocks/acquisition/gps_l1_ca_pcps_acquisition_test.cc @@ -757,4 +773,4 @@ endif(NOT ${GTEST_DIR_LOCAL}) add_dependencies(check control_thread_test flowgraph_test gnss_block_test - gnuradio_block_test acq_test trk_test) + gnuradio_block_test acq_test trk_test matio_test) diff --git a/src/tests/unit-tests/arithmetic/matio_test.cc b/src/tests/unit-tests/arithmetic/matio_test.cc index 552414d5d..5784a2428 100644 --- a/src/tests/unit-tests/arithmetic/matio_test.cc +++ b/src/tests/unit-tests/arithmetic/matio_test.cc @@ -33,6 +33,7 @@ #include #include #include +#include TEST(MatioTest, WriteAndReadDoubles) {