summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-07-16 20:37:56 +0200
committerBram Moolenaar <Bram@vim.org>2016-07-16 20:37:56 +0200
commitc3e539fa703b23d9a24c3520c96ec305ee932cb4 (patch)
tree6ba1b53de6ff2674051d9b71c9ed5106248a51ad /src
parent502ae4ba63561c98ac69af26cd9883bfd18d225f (diff)
downloadvim-git-c3e539fa703b23d9a24c3520c96ec305ee932cb4.tar.gz
patch 7.4.2052v7.4.2052
Problem: Coverage report is messed up by the unittests. Solution: Add a separate test target for script tests. Use that when collecting coverage information.
Diffstat (limited to 'src')
-rw-r--r--src/Makefile10
-rw-r--r--src/version.c2
2 files changed, 10 insertions, 2 deletions
diff --git a/src/Makefile b/src/Makefile
index 49b4745a0..4742db160 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -1937,6 +1937,11 @@ types.vim: $(TAGS_SRC) $(TAGS_INCL)
{printf("%s ", $$1)}END{print ""}' > $@
echo "syn keyword Constant OK FAIL TRUE FALSE MAYBE" >> $@
+# TESTING
+#
+# Execute the test scripts and the unittests.
+test check: scripttests unittests
+
# Execute the test scripts. Run these after compiling Vim, before installing.
# This doesn't depend on $(VIMTARGET), because that won't work when configure
# wasn't run yet. Restart make to build it instead.
@@ -1948,7 +1953,7 @@ types.vim: $(TAGS_SRC) $(TAGS_INCL)
# If everything is alright, the final message will be "ALL DONE". If not you
# get "TEST FAILURE".
#
-test check:
+scripttests:
$(MAKE) -f Makefile $(VIMTARGET)
if test -n "$(MAKEMO)" -a -f $(PODIR)/Makefile; then \
cd $(PODIR); $(MAKE) -f Makefile check VIM=../$(VIMTARGET); \
@@ -1957,7 +1962,7 @@ test check:
ln -s $(VIMTARGET) vim; \
fi
cd testdir; $(MAKE) -f Makefile $(GUI_TESTTARGET) VIMPROG=../$(VIMTARGET) $(GUI_TESTARG) SCRIPTSOURCE=../$(SCRIPTSOURCE)
- $(MAKE) -f Makefile unittest
+
# Run the tests with the GUI. Assumes vim/gvim was already built
testgui:
@@ -1969,6 +1974,7 @@ benchmark:
unittesttargets:
$(MAKE) -f Makefile $(UNITTEST_TARGETS)
+# Execute the unittests one by one.
unittest unittests: $(UNITTEST_TARGETS)
@for t in $(UNITTEST_TARGETS); do \
./$$t || exit 1; echo $$t passed; \
diff --git a/src/version.c b/src/version.c
index 575b43a74..d9701fe19 100644
--- a/src/version.c
+++ b/src/version.c
@@ -759,6 +759,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 2052,
+/**/
2051,
/**/
2050,