From 7f0f84fcdd1e3eaead684ed3268cc1524f63d03a Mon Sep 17 00:00:00 2001 From: nick black Date: Tue, 4 Jan 2022 21:34:26 -0500 Subject: [PATCH] [cmake] also try notcurses-input with a textfile --- CMakeLists.txt | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c6f7507a0..0b3ed9510 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -871,16 +871,23 @@ add_test( NAME ncpp_build_exceptions COMMAND ncpp_build_exceptions ) +# provide an empty source add_test( NAME input-devnull COMMAND sh -c "./notcurses-input < /dev/null" ) +# provide a binary file add_test( - NAME input-self + NAME input-binary COMMAND sh -c "./notcurses-input < notcurses-input" ) +# provide an ASCII file +add_test( + NAME input-text + COMMAND sh -c "./notcurses-input < ${CMAKE_CURRENT_LIST_FILE}" +) add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND} DEPENDS notcurses-input) -LIST(APPEND TESTBINS ncpp_build ncpp_build_exceptions input-devnull input-self) +LIST(APPEND TESTBINS ncpp_build ncpp_build_exceptions input-devnull input-binary input-text) endif() add_test( NAME sgr-direct