Skip to content

Commit

Permalink
[cmake] also try notcurses-input with a textfile
Browse files Browse the repository at this point in the history
  • Loading branch information
dankamongmen committed Jan 5, 2022
1 parent 12e4570 commit cea9489
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -871,14 +871,21 @@ 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
COMMAND sh -c "./notcurses-input < notcurses-input"
)
# provide an ASCII file
add_test(
NAME input-self
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)
endif()
Expand Down

0 comments on commit cea9489

Please sign in to comment.