From 12e4570e03268b14b14942e4f44b261da983a8fd Mon Sep 17 00:00:00 2001 From: nick black Date: Tue, 4 Jan 2022 20:57:04 -0500 Subject: [PATCH] [cmake] get notcurses-input run in ctest on drone --- CMakeLists.txt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1a14ca3a2..c6f7507a0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -873,13 +873,14 @@ add_test( ) add_test( NAME input-devnull - COMMAND sh -c "notcurses-input < /dev/null" + COMMAND sh -c "./notcurses-input < /dev/null" ) add_test( NAME input-self - COMMAND sh -c "notcurses-input < notcurses-input" + COMMAND sh -c "./notcurses-input < notcurses-input" ) -LIST(APPEND TESTBINS ncpp_build ncpp_build_exceptions) +add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND} DEPENDS notcurses-input) +LIST(APPEND TESTBINS ncpp_build ncpp_build_exceptions input-devnull input-self) endif() add_test( NAME sgr-direct