lnav/test/CMakeLists.txt

94 lines
4.0 KiB
CMake
Raw Normal View History

enable_testing()
include_directories(
2022-03-17 05:29:45 +00:00
. ${CMAKE_SOURCE_DIR}/src ${CMAKE_SOURCE_DIR}/src/fmtlib
${CMAKE_SOURCE_DIR}/src/third-party/date/include
2022-03-17 05:29:45 +00:00
${CMAKE_CURRENT_BINARY_DIR}/../src ${CMAKE_CURRENT_BINARY_DIR})
2022-03-17 05:29:45 +00:00
add_executable(test_abbrev test_abbrev.cc test_stubs.cc)
2022-03-16 22:38:08 +00:00
target_link_libraries(test_abbrev diag)
2021-01-02 04:40:52 +00:00
add_test(NAME test_abbrev COMMAND test_abbrev)
2022-03-17 05:29:45 +00:00
add_executable(test_ansi_scrubber test_ansi_scrubber.cc test_stubs.cc)
target_link_libraries(test_ansi_scrubber diag)
add_test(NAME test_ansi_scrubber COMMAND test_ansi_scrubber)
2022-03-17 05:29:45 +00:00
add_executable(test_auto_fd test_auto_fd.cc test_stubs.cc)
2022-03-16 22:38:08 +00:00
target_link_libraries(test_auto_fd diag)
2021-01-02 04:40:52 +00:00
add_test(NAME test_auto_fd COMMAND test_auto_fd)
2022-03-17 05:29:45 +00:00
add_executable(test_auto_mem test_auto_mem.cc test_stubs.cc)
2022-03-16 22:38:08 +00:00
target_link_libraries(test_auto_mem diag)
2021-01-02 04:40:52 +00:00
add_test(NAME test_auto_mem COMMAND test_auto_mem)
2022-07-01 23:02:14 +00:00
add_executable(test_column_namer test_column_namer.cc test_stubs.cc)
target_include_directories(test_column_namer PUBLIC ../src/third-party/doctest-root)
target_link_libraries(test_column_namer diag)
add_test(NAME test_column_namer COMMAND test_column_namer)
2022-05-23 03:44:18 +00:00
add_executable(document.sections.tests document.sections.tests.cc test_stubs.cc)
target_include_directories(document.sections.tests PUBLIC ../src/third-party/doctest-root)
target_link_libraries(document.sections.tests diag)
add_test(NAME document.sections.tests COMMAND document.sections.tests)
2022-03-17 05:29:45 +00:00
add_executable(test_bookmarks test_bookmarks.cc test_stubs.cc)
2022-03-16 22:38:08 +00:00
target_link_libraries(test_bookmarks diag)
2021-01-02 04:40:52 +00:00
add_test(NAME test_bookmarks COMMAND test_bookmarks)
add_executable(test_date_time_scanner test_date_time_scanner.cc)
target_include_directories(test_date_time_scanner PUBLIC ../src/third-party/doctest-root)
2023-08-25 06:06:42 +00:00
target_link_libraries(test_date_time_scanner base lnavdt diag)
2021-01-02 04:40:52 +00:00
add_test(NAME test_date_time_scanner COMMAND test_date_time_scanner)
add_executable(test_grep_proc2 test_grep_proc2.cc)
2022-03-16 22:38:08 +00:00
target_link_libraries(test_grep_proc2 lnavfileio)
2021-01-02 04:40:52 +00:00
add_test(NAME test_grep_proc2 COMMAND test_grep_proc2)
2019-07-15 17:08:14 +00:00
add_executable(test_line_buffer2 test_line_buffer2.cc)
2022-03-16 22:38:08 +00:00
target_link_libraries(test_line_buffer2 lnavfileio)
2019-07-15 17:08:14 +00:00
add_test(NAME test_line_buffer2 COMMAND test_line_buffer2)
2022-03-17 05:29:45 +00:00
add_executable(test_log_accel test_log_accel.cc test_stubs.cc)
target_link_libraries(test_log_accel diag)
2021-01-02 04:40:52 +00:00
add_test(NAME test_log_accel COMMAND test_log_accel)
2022-03-17 05:29:45 +00:00
add_executable(lnav_doctests lnav_doctests.cc test_stubs.cc)
target_include_directories(lnav_doctests PUBLIC ../src/third-party/doctest-root)
2022-03-17 05:29:45 +00:00
target_link_libraries(lnav_doctests diag ${lnav_LIBS})
2021-01-02 04:40:52 +00:00
add_test(NAME lnav_doctests COMMAND lnav_doctests)
2022-03-17 05:29:45 +00:00
add_executable(test_reltime test_reltime.cc test_stubs.cc)
target_include_directories(test_reltime PUBLIC ../src/third-party/doctest-root)
2022-03-17 05:29:45 +00:00
target_link_libraries(test_reltime diag)
2019-07-15 17:08:14 +00:00
add_test(NAME test_reltime COMMAND test_reltime)
2022-03-17 05:29:45 +00:00
add_executable(test_top_status test_top_status.cc test_stubs.cc)
target_link_libraries(test_top_status diag logfmt)
2021-01-02 04:40:52 +00:00
add_test(NAME test_top_status COMMAND test_top_status)
2019-07-15 17:08:14 +00:00
add_executable(test_text_anonymizer test_text_anonymizer.cc test_stubs.cc)
target_include_directories(test_text_anonymizer PUBLIC ../src/third-party/doctest-root)
target_link_libraries(test_text_anonymizer diag)
add_test(NAME test_text_anonymizer COMMAND test_text_anonymizer)
2022-03-17 05:29:45 +00:00
add_executable(drive_view_colors drive_view_colors.cc test_stubs.cc)
target_link_libraries(drive_view_colors diag)
2022-03-17 05:29:45 +00:00
add_executable(drive_vt52_curses drive_vt52_curses.cc test_stubs.cc)
target_link_libraries(drive_vt52_curses diag)
2022-03-17 05:29:45 +00:00
add_executable(drive_logfile drive_logfile.cc test_stubs.cc)
target_link_libraries(drive_logfile diag)
2022-03-17 05:29:45 +00:00
add_executable(drive_sql_anno drive_sql_anno.cc test_stubs.cc)
target_link_libraries(drive_sql_anno diag)
2022-03-17 05:29:45 +00:00
add_executable(drive_data_scanner drive_data_scanner.cc test_stubs.cc)
target_link_libraries(drive_data_scanner diag logfmt)
add_executable(drive_doc_discovery drive_doc_discovery.cc test_stubs.cc)
target_link_libraries(drive_doc_discovery diag logfmt)
2022-03-17 05:29:45 +00:00
add_executable(scripty scripty.cc test_stubs.cc)
target_link_libraries(scripty diag)