1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-06-25 22:43:14 +00:00

Add matio_test to make check in order to detect outdated matio library

This commit is contained in:
Carles Fernandez 2018-02-24 00:13:35 +01:00
parent 59e49a5eba
commit 6eb03cd94c
2 changed files with 18 additions and 1 deletions

View File

@ -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)

View File

@ -33,6 +33,7 @@
#include <matio.h>
#include <cstdio>
#include <gnuradio/gr_complex.h>
#include <gtest/gtest.h>
TEST(MatioTest, WriteAndReadDoubles)
{