Logger v2.1 (#24)

* Upm logger

Signed-off-by: Mihai Stefanescu <mihai.t.gh.stefanescu@gmail.com>

* upm logger using nanoseconds only timestamp

Signed-off-by: Mihai Stefanescu <mihai.t.gh.stefanescu@gmail.com>

* Nice timestamp format using Howard Hinnant's header only date C++ library

Signed-off-by: Mihai Stefanescu <mihai.t.gh.stefanescu@gmail.com>

* Initial commit for logger unit tests

Signed-off-by: Mihai Stefanescu <mihai.stefanescu@rinftech.com>

* Finished basic tests for logger

Signed-off-by: Mihai Stefanescu <mihai.stefanescu@rinftech.com>
This commit is contained in:
mihaitghstefanescu
2018-07-19 17:57:28 +03:00
committed by GitHub
parent 1018ffea16
commit 264f5db3ec
2 changed files with 142 additions and 0 deletions

View File

@ -18,6 +18,12 @@ target_link_libraries(json_tests GTest::GTest GTest::Main)
target_include_directories(json_tests PRIVATE "${UPM_COMMON_HEADER_DIRS}/")
gtest_add_tests(json_tests "" AUTO)
# Unit tests - logger header library
add_executable(logger_tests logger/logger_tests.cxx)
target_link_libraries(logger_tests pthread GTest::GTest GTest::Main)
target_include_directories(logger_tests PRIVATE "${UPM_COMMON_HEADER_DIRS}/")
gtest_add_tests(logger_tests "" AUTO)
# Unit tests - nmea_gps library
add_executable(nmea_gps_tests nmea_gps/nmea_gps_tests.cxx)
target_link_libraries(nmea_gps_tests nmea_gps GTest::GTest GTest::Main)
@ -28,5 +34,6 @@ add_custom_target(tests-unit ALL
DEPENDS
utilities_tests
json_tests
logger_tests
COMMENT "UPM unit test collection")