mirror of
https://github.com/neovim/neovim.git
synced 2024-12-19 18:55:14 -07:00
build: create prereq targets for test dependencies
This will help make sure that we build all the right prereqs before manually running tests under QuickBuild. Notice that shell-test has been added as a prereq for the functional tests, since it's a requirement for testing the terminal features.
This commit is contained in:
parent
bcfc559395
commit
d00558bbdb
@ -316,6 +316,20 @@ if(BUSTED_PRG)
|
|||||||
test/config/paths.lua.in
|
test/config/paths.lua.in
|
||||||
${CMAKE_BINARY_DIR}/test/config/paths.lua)
|
${CMAKE_BINARY_DIR}/test/config/paths.lua)
|
||||||
|
|
||||||
|
set(UNITTEST_PREREQS nvim-test unittest-headers)
|
||||||
|
set(FUNCTIONALTEST_PREREQS nvim tty-test shell-test)
|
||||||
|
set(BENCHMARK_PREREQS nvim tty-test)
|
||||||
|
|
||||||
|
# Useful for automated build systems, if they want to manually run the tests.
|
||||||
|
add_custom_target(unittest-prereqs
|
||||||
|
DEPENDS ${UNITTEST_PREREQS})
|
||||||
|
|
||||||
|
add_custom_target(functionaltest-prereqs
|
||||||
|
DEPENDS ${FUNCTIONALTEST_PREREQS})
|
||||||
|
|
||||||
|
add_custom_target(benchmark-prereqs
|
||||||
|
DEPENDS ${BENCHMARK_PREREQS})
|
||||||
|
|
||||||
add_custom_target(unittest
|
add_custom_target(unittest
|
||||||
COMMAND ${CMAKE_COMMAND}
|
COMMAND ${CMAKE_COMMAND}
|
||||||
-DBUSTED_PRG=${BUSTED_PRG}
|
-DBUSTED_PRG=${BUSTED_PRG}
|
||||||
@ -326,7 +340,7 @@ if(BUSTED_PRG)
|
|||||||
-DBUILD_DIR=${CMAKE_BINARY_DIR}
|
-DBUILD_DIR=${CMAKE_BINARY_DIR}
|
||||||
-DTEST_TYPE=unit
|
-DTEST_TYPE=unit
|
||||||
-P ${PROJECT_SOURCE_DIR}/cmake/RunTests.cmake
|
-P ${PROJECT_SOURCE_DIR}/cmake/RunTests.cmake
|
||||||
DEPENDS nvim-test unittest-headers)
|
DEPENDS ${UNITTEST_PREREQS})
|
||||||
|
|
||||||
add_custom_target(functionaltest
|
add_custom_target(functionaltest
|
||||||
COMMAND ${CMAKE_COMMAND}
|
COMMAND ${CMAKE_COMMAND}
|
||||||
@ -338,7 +352,7 @@ if(BUSTED_PRG)
|
|||||||
-DBUILD_DIR=${CMAKE_BINARY_DIR}
|
-DBUILD_DIR=${CMAKE_BINARY_DIR}
|
||||||
-DTEST_TYPE=functional
|
-DTEST_TYPE=functional
|
||||||
-P ${PROJECT_SOURCE_DIR}/cmake/RunTests.cmake
|
-P ${PROJECT_SOURCE_DIR}/cmake/RunTests.cmake
|
||||||
DEPENDS nvim tty-test)
|
DEPENDS ${FUNCTIONALTEST_PREREQS})
|
||||||
|
|
||||||
add_custom_target(benchmark
|
add_custom_target(benchmark
|
||||||
COMMAND ${CMAKE_COMMAND}
|
COMMAND ${CMAKE_COMMAND}
|
||||||
@ -350,5 +364,5 @@ if(BUSTED_PRG)
|
|||||||
-DBUILD_DIR=${CMAKE_BINARY_DIR}
|
-DBUILD_DIR=${CMAKE_BINARY_DIR}
|
||||||
-DTEST_TYPE=benchmark
|
-DTEST_TYPE=benchmark
|
||||||
-P ${PROJECT_SOURCE_DIR}/cmake/RunTests.cmake
|
-P ${PROJECT_SOURCE_DIR}/cmake/RunTests.cmake
|
||||||
DEPENDS nvim tty-test)
|
DEPENDS ${BENCHMARK_PREREQS})
|
||||||
endif()
|
endif()
|
||||||
|
Loading…
Reference in New Issue
Block a user