2019-07-09 15:34:55 +00:00
|
|
|
enable_testing()
|
|
|
|
|
2019-06-22 00:19:56 +00:00
|
|
|
include_directories(
|
2021-09-27 22:59:23 +00:00
|
|
|
. ${CMAKE_SOURCE_DIR}/src ${CMAKE_SOURCE_DIR}/src/fmtlib
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/../src ${CMAKE_CURRENT_BINARY_DIR})
|
2014-09-29 05:36:07 +00:00
|
|
|
|
2021-09-27 22:59:23 +00:00
|
|
|
add_library(testdummy STATIC test_stubs.cc)
|
2021-03-28 20:50:26 +00:00
|
|
|
target_link_libraries(testdummy PkgConfig::libpcre)
|
|
|
|
|
2021-01-02 04:40:52 +00:00
|
|
|
add_executable(test_abbrev test_abbrev.cc)
|
|
|
|
target_link_libraries(test_abbrev diag PkgConfig::libpcre)
|
|
|
|
add_test(NAME test_abbrev COMMAND test_abbrev)
|
|
|
|
|
2020-09-05 21:41:05 +00:00
|
|
|
add_executable(test_ansi_scrubber test_ansi_scrubber.cc)
|
|
|
|
target_link_libraries(test_ansi_scrubber diag)
|
|
|
|
add_test(NAME test_ansi_scrubber COMMAND test_ansi_scrubber)
|
|
|
|
|
2021-01-02 04:40:52 +00:00
|
|
|
add_executable(test_auto_fd test_auto_fd.cc)
|
|
|
|
target_link_libraries(test_auto_fd diag PkgConfig::libpcre)
|
|
|
|
add_test(NAME test_auto_fd COMMAND test_auto_fd)
|
2019-07-09 15:34:55 +00:00
|
|
|
|
2021-01-02 04:40:52 +00:00
|
|
|
add_executable(test_auto_mem test_auto_mem.cc)
|
|
|
|
target_link_libraries(test_auto_mem diag PkgConfig::libpcre)
|
|
|
|
add_test(NAME test_auto_mem COMMAND test_auto_mem)
|
|
|
|
|
|
|
|
add_executable(test_bookmarks test_bookmarks.cc)
|
|
|
|
target_link_libraries(test_bookmarks diag PkgConfig::libpcre)
|
|
|
|
add_test(NAME test_bookmarks COMMAND test_bookmarks)
|
|
|
|
|
|
|
|
add_executable(test_date_time_scanner test_date_time_scanner.cc)
|
|
|
|
target_link_libraries(test_date_time_scanner diag PkgConfig::libpcre)
|
|
|
|
add_test(NAME test_date_time_scanner COMMAND test_date_time_scanner)
|
|
|
|
|
|
|
|
add_executable(test_grep_proc2 test_grep_proc2.cc)
|
|
|
|
target_link_libraries(test_grep_proc2 diag PkgConfig::libpcre)
|
|
|
|
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)
|
2021-09-27 22:59:23 +00:00
|
|
|
target_link_libraries(test_line_buffer2 diag BZip2::bz2 ZLIB::zlib)
|
2019-07-15 17:08:14 +00:00
|
|
|
add_test(NAME test_line_buffer2 COMMAND test_line_buffer2)
|
|
|
|
|
2021-01-02 04:40:52 +00:00
|
|
|
add_executable(test_log_accel test_log_accel.cc)
|
|
|
|
target_link_libraries(test_log_accel diag PkgConfig::libpcre)
|
|
|
|
add_test(NAME test_log_accel COMMAND test_log_accel)
|
|
|
|
|
|
|
|
add_executable(lnav_doctests lnav_doctests.cc)
|
2021-09-27 22:54:10 +00:00
|
|
|
target_include_directories(lnav_doctests PUBLIC ../src/third-party/doctest-root)
|
2021-01-02 04:40:52 +00:00
|
|
|
target_link_libraries(lnav_doctests diag ${lnav_LIBS})
|
|
|
|
add_test(NAME lnav_doctests COMMAND lnav_doctests)
|
|
|
|
|
2021-01-30 06:20:42 +00:00
|
|
|
add_executable(test_pcrepp ../src/pcrepp/test_pcrepp.cc)
|
2021-01-02 04:40:52 +00:00
|
|
|
target_link_libraries(test_pcrepp diag PkgConfig::libpcre)
|
|
|
|
add_test(NAME test_pcrepp COMMAND test_pcrepp)
|
|
|
|
|
2019-07-09 15:34:55 +00:00
|
|
|
add_executable(test_reltime test_reltime.cc)
|
2021-09-27 22:54:10 +00:00
|
|
|
target_include_directories(test_reltime PUBLIC ../src/third-party/doctest-root)
|
2019-07-15 17:08:14 +00:00
|
|
|
target_link_libraries(test_reltime diag PkgConfig::libpcre)
|
|
|
|
add_test(NAME test_reltime COMMAND test_reltime)
|
|
|
|
|
2021-01-02 04:40:52 +00:00
|
|
|
add_executable(test_top_status test_top_status.cc)
|
2021-10-03 06:17:33 +00:00
|
|
|
target_link_libraries(test_top_status diag testdummy PkgConfig::libpcre 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
|
|
|
|
2021-02-13 20:41:48 +00:00
|
|
|
add_executable(drive_view_colors drive_view_colors.cc)
|
2021-03-28 20:50:26 +00:00
|
|
|
target_link_libraries(drive_view_colors diag testdummy PkgConfig::ncursesw)
|
2021-02-13 20:41:48 +00:00
|
|
|
|
2021-01-08 22:08:52 +00:00
|
|
|
add_executable(drive_vt52_curses drive_vt52_curses.cc)
|
|
|
|
target_link_libraries(drive_vt52_curses diag PkgConfig::ncursesw)
|
|
|
|
|
2021-05-29 05:53:50 +00:00
|
|
|
add_executable(drive_logfile drive_logfile.cc)
|
2021-06-07 04:52:06 +00:00
|
|
|
target_link_libraries(drive_logfile diag testdummy PkgConfig::libpcre)
|
2021-05-29 05:53:50 +00:00
|
|
|
|
2019-07-09 15:34:55 +00:00
|
|
|
add_executable(drive_sql_anno drive_sql_anno.cc)
|
2021-03-28 20:50:26 +00:00
|
|
|
target_link_libraries(drive_sql_anno diag testdummy PkgConfig::libpcre)
|
2019-07-30 05:18:32 +00:00
|
|
|
|
2020-12-31 21:55:21 +00:00
|
|
|
add_executable(drive_data_scanner drive_data_scanner.cc)
|
2021-10-03 06:17:33 +00:00
|
|
|
target_link_libraries(drive_data_scanner diag testdummy PkgConfig::libpcre logfmt)
|
2020-12-31 21:55:21 +00:00
|
|
|
|
2019-07-30 05:18:32 +00:00
|
|
|
add_executable(scripty scripty.cc)
|
|
|
|
target_link_libraries(scripty diag PkgConfig::ncursesw)
|