comparison src/testdir/Makefile @ 10944:4e2cdce4576c v8.0.0361

patch 8.0.0361: GUI initialisation is not sufficiently tested commit https://github.com/vim/vim/commit/8be2fbb6705dfb41d06d688701803d206c968404 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Feb 23 19:32:47 2017 +0100 patch 8.0.0361: GUI initialisation is not sufficiently tested Problem: GUI initialisation is not sufficiently tested. Solution: Add the gui_init test. (Kazuki Kuriyama)
author Christian Brabandt <cb@256bit.org>
date Thu, 23 Feb 2017 19:45:04 +0100
parents 82792f199f9b
children 50459aeb4773
comparison
equal deleted inserted replaced
10943:02654bf3c3f6 10944:4e2cdce4576c
50 # Must run test1 first to create small.vim. 50 # Must run test1 first to create small.vim.
51 $(SCRIPTS) $(SCRIPTS_GUI) $(NEW_TESTS): $(SCRIPTS_FIRST) 51 $(SCRIPTS) $(SCRIPTS_GUI) $(NEW_TESTS): $(SCRIPTS_FIRST)
52 52
53 RM_ON_RUN = test.out X* viminfo 53 RM_ON_RUN = test.out X* viminfo
54 RM_ON_START = tiny.vim small.vim mbyte.vim mzscheme.vim lua.vim test.ok benchmark.out 54 RM_ON_START = tiny.vim small.vim mbyte.vim mzscheme.vim lua.vim test.ok benchmark.out
55 RUN_VIM = VIMRUNTIME=$(SCRIPTSOURCE); export VIMRUNTIME; $(VALGRIND) $(VIMPROG) -f $(GUI_FLAG) -u unix.vim $(NO_PLUGIN) -s dotest.in 55 RUN_VIM = VIMRUNTIME=$(SCRIPTSOURCE); export VIMRUNTIME; $(VALGRIND) $(VIMPROG) -f $(GUI_FLAG) -u unix.vim $(NO_INITS) -s dotest.in
56 56
57 clean: 57 clean:
58 -rm -rf *.out *.failed *.res *.rej *.orig test.log messages $(RM_ON_RUN) $(RM_ON_START) valgrind.* 58 -rm -rf *.out *.failed *.res *.rej *.orig test.log messages $(RM_ON_RUN) $(RM_ON_START) valgrind.*
59 59
60 test1.out: test1.in 60 test1.out: test1.in
116 116
117 117
118 # New style of tests uses Vim script with assert calls. These are easier 118 # New style of tests uses Vim script with assert calls. These are easier
119 # to write and a lot easier to read and debug. 119 # to write and a lot easier to read and debug.
120 # Limitation: Only works with the +eval feature. 120 # Limitation: Only works with the +eval feature.
121 RUN_VIMTEST = VIMRUNTIME=$(SCRIPTSOURCE); export VIMRUNTIME; $(VALGRIND) $(VIMPROG) -f $(GUI_FLAG) -u unix.vim $(NO_PLUGIN) 121 RUN_VIMTEST = VIMRUNTIME=$(SCRIPTSOURCE); export VIMRUNTIME; $(VALGRIND) $(VIMPROG) -f $(GUI_FLAG) -u unix.vim
122 122
123 newtests: newtestssilent 123 newtests: newtestssilent
124 @/bin/sh -c "if test -f messages && grep -q 'SKIPPED\|FAILED' messages; then cat messages && if test -f test.log; then cat test.log; fi ; fi" 124 @/bin/sh -c "if test -f messages && grep -q 'SKIPPED\|FAILED' messages; then cat messages && if test -f test.log; then cat test.log; fi ; fi"
125 125
126 newtestssilent: $(NEW_TESTS) 126 newtestssilent: $(NEW_TESTS)
127 127
128 128
129 .vim.res: 129 .vim.res:
130 @echo "$(RUN_VIMTEST)" > vimcmd 130 @echo "$(RUN_VIMTEST)" > vimcmd
131 $(RUN_VIMTEST) -U NONE -S runtest.vim $*.vim 131 $(RUN_VIMTEST) $(NO_INITS) -S runtest.vim $*.vim
132 @rm vimcmd 132 @rm vimcmd
133
134 test_gui.res: test_gui.vim
135 @echo "$(RUN_GVIMTEST)" > vimcmd
136 $(RUN_VIMTEST) -u NONE $(NO_INITS) -S runtest.vim $<
137 @rm vimcmd
138
139 test_gui_init.res: test_gui_init.vim
140 @echo "$(RUN_GVIMTEST_WITH_GVIMRC)" > vimcmd
141 $(RUN_VIMTEST) -u NONE -U gui_init.vim $(NO_PLUGINS) -S runtest.vim $<
142 @rm vimcmd