aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Hahler <git@thequod.de>2019-10-18 16:32:56 +0200
committerGitHub <noreply@github.com>2019-10-18 16:32:56 +0200
commit84aa86afb7c58f6a769ec9215fa69dec19619f5f (patch)
treeec564d6a2dba2269f7e84ff33bd754fa27c29524
parent4bbad5481773ac2a273a41a9fe8035ca57e03cd8 (diff)
downloadrneovim-84aa86afb7c58f6a769ec9215fa69dec19619f5f.tar.gz
rneovim-84aa86afb7c58f6a769ec9215fa69dec19619f5f.tar.bz2
rneovim-84aa86afb7c58f6a769ec9215fa69dec19619f5f.zip
build: do not build test fixtures by default (#11230)
- tty-test is also used on Windows - FUNCTIONALTEST_PREREQS: add printenv-test
-rw-r--r--CMakeLists.txt5
-rw-r--r--test/functional/fixtures/CMakeLists.txt10
2 files changed, 6 insertions, 9 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 98a32a116b..08447d5ff9 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -562,10 +562,7 @@ if(BUSTED_PRG)
endif()
set(UNITTEST_PREREQS nvim-test unittest-headers)
- set(FUNCTIONALTEST_PREREQS nvim printargs-test shell-test streams-test ${GENERATED_HELP_TAGS})
- if(NOT WIN32)
- list(APPEND FUNCTIONALTEST_PREREQS tty-test)
- endif()
+ set(FUNCTIONALTEST_PREREQS nvim printenv-test printargs-test shell-test streams-test tty-test ${GENERATED_HELP_TAGS})
set(BENCHMARK_PREREQS nvim tty-test)
# Useful for automated build systems, if they want to manually run the tests.
diff --git a/test/functional/fixtures/CMakeLists.txt b/test/functional/fixtures/CMakeLists.txt
index dbcb157956..270540de2e 100644
--- a/test/functional/fixtures/CMakeLists.txt
+++ b/test/functional/fixtures/CMakeLists.txt
@@ -1,12 +1,12 @@
-add_executable(tty-test tty-test.c)
+add_executable(tty-test EXCLUDE_FROM_ALL tty-test.c)
target_link_libraries(tty-test ${LIBUV_LIBRARIES})
-add_executable(shell-test shell-test.c)
-add_executable(printargs-test printargs-test.c)
-add_executable(printenv-test printenv-test.c)
+add_executable(shell-test EXCLUDE_FROM_ALL shell-test.c)
+add_executable(printargs-test EXCLUDE_FROM_ALL printargs-test.c)
+add_executable(printenv-test EXCLUDE_FROM_ALL printenv-test.c)
if(WIN32)
set_target_properties(printenv-test PROPERTIES LINK_FLAGS -municode)
endif()
-add_executable(streams-test streams-test.c)
+add_executable(streams-test EXCLUDE_FROM_ALL streams-test.c)
target_link_libraries(streams-test ${LIBUV_LIBRARIES})