mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-09 17:19:03 -04:00
[cmake] also try notcurses-input with a textfile
This commit is contained in:
parent
12e4570e03
commit
7f0f84fcdd
@ -871,16 +871,23 @@ add_test(
|
|||||||
NAME ncpp_build_exceptions
|
NAME ncpp_build_exceptions
|
||||||
COMMAND ncpp_build_exceptions
|
COMMAND ncpp_build_exceptions
|
||||||
)
|
)
|
||||||
|
# provide an empty source
|
||||||
add_test(
|
add_test(
|
||||||
NAME input-devnull
|
NAME input-devnull
|
||||||
COMMAND sh -c "./notcurses-input < /dev/null"
|
COMMAND sh -c "./notcurses-input < /dev/null"
|
||||||
)
|
)
|
||||||
|
# provide a binary file
|
||||||
add_test(
|
add_test(
|
||||||
NAME input-self
|
NAME input-binary
|
||||||
COMMAND sh -c "./notcurses-input < notcurses-input"
|
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)
|
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()
|
endif()
|
||||||
add_test(
|
add_test(
|
||||||
NAME sgr-direct
|
NAME sgr-direct
|
||||||
|
Loading…
x
Reference in New Issue
Block a user