mirror of
https://github.com/tstack/lnav
synced 2024-11-05 21:21:19 +00:00
63dba408ec
When piping the output of a program into lnav, the data would be dumped to the terminal on exit so that it would not be lost. Since that is a bit noisy, the temp file used to store the data is now left in .lnav so that it can be reopened later. Older stdin captures are automatically removed after a day. Also took the opportunity to start using filesystem::path more. Fixes #436
42 lines
1.3 KiB
CMake
42 lines
1.3 KiB
CMake
|
|
enable_testing()
|
|
|
|
include_directories(
|
|
.
|
|
${CMAKE_CURRENT_BINARY_DIR}/../src
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
)
|
|
|
|
add_executable(lnav_doctests lnav_doctests.cc)
|
|
target_link_libraries(lnav_doctests diag ${lnav_LIBS})
|
|
add_test(NAME lnav_doctests COMMAND lnav_doctests)
|
|
|
|
add_executable(test_pcrepp test_pcrepp.cc)
|
|
target_link_libraries(test_pcrepp diag PkgConfig::libpcre)
|
|
add_test(NAME test_pcrepp COMMAND test_pcrepp)
|
|
|
|
add_executable(test_line_buffer2 test_line_buffer2.cc)
|
|
target_link_libraries(test_line_buffer2
|
|
diag
|
|
BZip2::bz2
|
|
ZLIB::zlib)
|
|
add_test(NAME test_line_buffer2 COMMAND test_line_buffer2)
|
|
|
|
add_executable(test_reltime test_reltime.cc)
|
|
target_link_libraries(test_reltime diag PkgConfig::libpcre)
|
|
add_test(NAME test_reltime COMMAND test_reltime)
|
|
|
|
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_abbrev test_abbrev.cc)
|
|
target_link_libraries(test_abbrev diag PkgConfig::libpcre)
|
|
add_test(NAME test_abbrev COMMAND test_abbrev)
|
|
|
|
add_executable(drive_sql_anno drive_sql_anno.cc)
|
|
target_link_libraries(drive_sql_anno diag PkgConfig::libpcre)
|
|
|
|
add_executable(scripty scripty.cc)
|
|
target_link_libraries(scripty diag PkgConfig::ncursesw)
|