Skip to content

Commit

Permalink
gnss_info: Added tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
peci1 committed Nov 14, 2023
1 parent deb800a commit a41e2e2
Show file tree
Hide file tree
Showing 6 changed files with 7,062 additions and 1 deletion.
10 changes: 9 additions & 1 deletion gnss_info/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,20 @@ if (CATKIN_ENABLE_TESTING)
endif()

# Roslint C++ - checks formatting and some other rules for C++ files
file(GLOB_RECURSE ROSLINT_SRC src/*.cpp include/${PROJECT_NAME}/*.h nodes/*.cpp)
file(GLOB_RECURSE ROSLINT_SRC src/*.cpp include/${PROJECT_NAME}/*.h nodes/*.cpp test/*.cpp)

set(ROSLINT_CPP_OPTS "--extensions=h,hpp,hh,c,cpp,cc;--linelength=120;--filter=\
-build/header_guard,-readability/namespace,-whitespace/braces,-runtime/references,\
-build/c++11,-readability/nolint,-readability/todo,-legal/copyright,-build/namespaces")
roslint_cpp(${ROSLINT_SRC})

roslint_add_test()

catkin_add_gtest(test_igs_satellite_metadata test/test_igs_satellite_metadata.cpp)
target_link_libraries(test_igs_satellite_metadata satellite_metadata ${catkin_LIBRARIES})
target_compile_definitions(test_igs_satellite_metadata PRIVATE TEST_CACHE_DIR="${CMAKE_CURRENT_SOURCE_DIR}/test/")

catkin_add_gtest(test_ethz_satdb test/test_ethz_satdb.cpp)
target_link_libraries(test_ethz_satdb orbital_data satellite_metadata ${catkin_LIBRARIES})
target_compile_definitions(test_ethz_satdb PRIVATE TEST_CACHE_DIR="${CMAKE_CURRENT_SOURCE_DIR}/test/")
endif()
Loading

0 comments on commit a41e2e2

Please sign in to comment.