2014-09-29 05:36:07 +00:00
|
|
|
|
2019-07-09 15:34:55 +00:00
|
|
|
enable_testing()
|
|
|
|
|
2019-06-22 00:19:56 +00:00
|
|
|
include_directories(
|
2019-07-15 17:08:14 +00:00
|
|
|
.
|
2019-07-30 05:18:32 +00:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/../src
|
2019-07-15 17:08:14 +00:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
2019-06-22 00:19:56 +00:00
|
|
|
)
|
2014-09-29 05:36:07 +00:00
|
|
|
|
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)
|
|
|
|
|
2019-07-15 17:08:14 +00:00
|
|
|
add_executable(lnav_doctests lnav_doctests.cc)
|
|
|
|
target_link_libraries(lnav_doctests diag ${lnav_LIBS})
|
2019-07-09 15:34:55 +00:00
|
|
|
add_test(NAME lnav_doctests COMMAND lnav_doctests)
|
|
|
|
|
2019-07-15 17:08:14 +00:00
|
|
|
add_executable(test_pcrepp test_pcrepp.cc)
|
|
|
|
target_link_libraries(test_pcrepp diag PkgConfig::libpcre)
|
2019-07-09 15:34:55 +00:00
|
|
|
add_test(NAME test_pcrepp COMMAND test_pcrepp)
|
2019-07-15 17:08:14 +00:00
|
|
|
|
|
|
|
add_executable(test_line_buffer2 test_line_buffer2.cc)
|
2019-06-15 13:32:02 +00:00
|
|
|
target_link_libraries(test_line_buffer2
|
2019-07-15 17:08:14 +00:00
|
|
|
diag
|
2019-07-09 15:34:55 +00:00
|
|
|
BZip2::bz2
|
|
|
|
ZLIB::zlib)
|
2019-07-15 17:08:14 +00:00
|
|
|
add_test(NAME test_line_buffer2 COMMAND test_line_buffer2)
|
|
|
|
|
2019-07-09 15:34:55 +00:00
|
|
|
add_executable(test_reltime test_reltime.cc)
|
2019-07-15 17:08:14 +00:00
|
|
|
target_link_libraries(test_reltime diag PkgConfig::libpcre)
|
|
|
|
add_test(NAME test_reltime COMMAND test_reltime)
|
|
|
|
|
2019-07-09 15:34:55 +00:00
|
|
|
add_executable(test_date_time_scanner test_date_time_scanner.cc)
|
2019-07-15 17:08:14 +00:00
|
|
|
target_link_libraries(test_date_time_scanner diag PkgConfig::libpcre)
|
|
|
|
add_test(NAME test_date_time_scanner COMMAND test_date_time_scanner)
|
|
|
|
|
2019-07-09 15:34:55 +00:00
|
|
|
add_executable(test_abbrev test_abbrev.cc)
|
2019-07-15 17:08:14 +00:00
|
|
|
target_link_libraries(test_abbrev diag PkgConfig::libpcre)
|
|
|
|
add_test(NAME test_abbrev COMMAND test_abbrev)
|
|
|
|
|
2019-07-09 15:34:55 +00:00
|
|
|
add_executable(drive_sql_anno drive_sql_anno.cc)
|
2019-07-15 17:08:14 +00:00
|
|
|
target_link_libraries(drive_sql_anno diag PkgConfig::libpcre)
|
2019-07-30 05:18:32 +00:00
|
|
|
|
|
|
|
add_executable(scripty scripty.cc)
|
|
|
|
target_link_libraries(scripty diag PkgConfig::ncursesw)
|