From 5ba1d980fba06fe11964159ee4fcc00c1e59f817 Mon Sep 17 00:00:00 2001 From: John Szakmeister Date: Wed, 5 Nov 2014 07:26:35 -0500 Subject: build: fix running of functional tests directly with CMake If you aren't just building everything into build/, then the functional tests fail because they can't find the nvim executable. Let's pass in the location of the nvim executable, and set NVIM_PRG environment variable accordingly. --- cmake/RunTests.cmake | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cmake') diff --git a/cmake/RunTests.cmake b/cmake/RunTests.cmake index e2c548d7e6..b926e31994 100644 --- a/cmake/RunTests.cmake +++ b/cmake/RunTests.cmake @@ -1,5 +1,9 @@ get_filename_component(BUSTED_DIR ${BUSTED_PRG} PATH) set(ENV{PATH} "${BUSTED_DIR}:$ENV{PATH}") +if(NVIM_PRG) + set(ENV{NVIM_PROG} "${NVIM_PRG}") +endif() + if(DEFINED ENV{TEST_FILE}) set(TEST_DIR $ENV{TEST_FILE}) endif() -- cgit