mirror of
https://github.com/neovim/neovim.git
synced 2025-10-18 07:41:51 +00:00
Use MAKEOVERRIDES to pass SCRIPTS/TESTNUM arguments for make test
This commit is contained in:
6
Makefile
6
Makefile
@@ -42,8 +42,8 @@ ifneq (,$(USE_BUNDLED_DEPS))
|
|||||||
BUNDLED_CMAKE_FLAG := -DUSE_BUNDLED=$(USE_BUNDLED_DEPS)
|
BUNDLED_CMAKE_FLAG := -DUSE_BUNDLED=$(USE_BUNDLED_DEPS)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# For use where we want to make sure only a single job is run. This also avoids
|
# For use where we want to make sure only a single job is run. This does issue
|
||||||
# any warnings from the sub-make.
|
# a warning, but we need to keep SCRIPTS argument.
|
||||||
SINGLE_MAKE = export MAKEFLAGS= ; $(MAKE)
|
SINGLE_MAKE = export MAKEFLAGS= ; $(MAKE)
|
||||||
|
|
||||||
all: nvim
|
all: nvim
|
||||||
@@ -75,7 +75,7 @@ endif
|
|||||||
touch $@
|
touch $@
|
||||||
|
|
||||||
test: | nvim
|
test: | nvim
|
||||||
+$(SINGLE_MAKE) -C src/nvim/testdir
|
+$(SINGLE_MAKE) -C src/nvim/testdir $(MAKEOVERRIDES)
|
||||||
|
|
||||||
unittest: | nvim
|
unittest: | nvim
|
||||||
+$(BUILD_CMD) -C build unittest
|
+$(BUILD_CMD) -C build unittest
|
||||||
|
Reference in New Issue
Block a user