Skip to content

Commit f3dc235

Browse files
committed
patch 8.1.0152: cannot easily run individual tests on MS-Windows
Problem: Cannot easily run individual tests on MS-Windows. Solution: Move the list of tests to a separate file. Add a build rule in the MSVC makefile.
1 parent 81e2ac7 commit f3dc235

File tree

5 files changed

+220
-197
lines changed

5 files changed

+220
-197
lines changed

Filelist

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ SRC_ALL = \
77
.lgtm.yml \
88
.travis.yml \
99
appveyor.yml \
10+
src/Make_all.mak \
1011
src/appveyor.bat \
1112
src/README.txt \
1213
src/alloc.h \

src/Make_all.mak

Lines changed: 203 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,203 @@
1+
#
2+
# Common Makefile, defines the list of tests to run.
3+
#
4+
5+
# Individual tests, including the ones part of test_alot
6+
NEW_TESTS = \
7+
test_arglist \
8+
test_arabic \
9+
test_assert \
10+
test_assign \
11+
test_autochdir \
12+
test_autocmd \
13+
test_autoload \
14+
test_backspace_opt \
15+
test_blockedit \
16+
test_breakindent \
17+
test_bufline \
18+
test_bufwintabinfo \
19+
test_cd \
20+
test_cdo \
21+
test_changedtick \
22+
test_changelist \
23+
test_channel \
24+
test_charsearch \
25+
test_charsearch_utf8 \
26+
test_cindent \
27+
test_clientserver \
28+
test_close_count \
29+
test_cmdline \
30+
test_command_count \
31+
test_comparators \
32+
test_compiler \
33+
test_crypt \
34+
test_cscope \
35+
test_cursor_func \
36+
test_curswant \
37+
test_delete \
38+
test_diffmode \
39+
test_digraph \
40+
test_display \
41+
test_edit \
42+
test_erasebackword \
43+
test_escaped_glob \
44+
test_eval_stuff \
45+
test_ex_undo \
46+
test_ex_z \
47+
test_exit \
48+
test_exec_while_if \
49+
test_execute_func \
50+
test_exists \
51+
test_exists_autocmd \
52+
test_expand \
53+
test_expand_dllpath \
54+
test_expr \
55+
test_expr_utf8 \
56+
test_farsi \
57+
test_feedkeys \
58+
test_file_perm \
59+
test_file_size \
60+
test_fileformat \
61+
test_filetype \
62+
test_filter_cmd \
63+
test_filter_map \
64+
test_find_complete \
65+
test_findfile \
66+
test_fixeol \
67+
test_float_func \
68+
test_fnameescape \
69+
test_fnamemodify \
70+
test_fold \
71+
test_functions \
72+
test_ga \
73+
test_getcwd \
74+
test_getvar \
75+
test_gf \
76+
test_glob2regpat \
77+
test_global \
78+
test_gn \
79+
test_goto \
80+
test_gui \
81+
test_gui_init \
82+
test_hardcopy \
83+
test_help \
84+
test_help_tagjump \
85+
test_hide \
86+
test_highlight \
87+
test_history \
88+
test_hlsearch \
89+
test_iminsert \
90+
test_increment \
91+
test_increment_dbcs \
92+
test_ins_complete \
93+
test_job_fails \
94+
test_join \
95+
test_json \
96+
test_jumplist \
97+
test_jumps \
98+
test_lambda \
99+
test_langmap \
100+
test_largefile \
101+
test_let \
102+
test_lineending \
103+
test_lispwords \
104+
test_listchars \
105+
test_listdict \
106+
test_listlbr \
107+
test_listlbr_utf8 \
108+
test_lua \
109+
test_makeencoding \
110+
test_man \
111+
test_maparg \
112+
test_mapping \
113+
test_marks \
114+
test_match \
115+
test_matchadd_conceal \
116+
test_matchadd_conceal_utf8 \
117+
test_menu \
118+
test_messages \
119+
test_mksession \
120+
test_mksession_utf8 \
121+
test_nested_function \
122+
test_netbeans \
123+
test_normal \
124+
test_number \
125+
test_options \
126+
test_packadd \
127+
test_partial \
128+
test_paste \
129+
test_perl \
130+
test_plus_arg_edit \
131+
test_popup \
132+
test_preview \
133+
test_profile \
134+
test_prompt_buffer \
135+
test_put \
136+
test_python2 \
137+
test_python3 \
138+
test_pyx2 \
139+
test_pyx3 \
140+
test_quickfix \
141+
test_quotestar \
142+
test_recover \
143+
test_regex_char_classes \
144+
test_regexp_latin \
145+
test_regexp_utf8 \
146+
test_registers \
147+
test_reltime \
148+
test_retab \
149+
test_ruby \
150+
test_scroll_opt \
151+
test_scrollbind \
152+
test_search \
153+
test_searchpos \
154+
test_set \
155+
test_sha256 \
156+
test_signs \
157+
test_smartindent \
158+
test_sort \
159+
test_source_utf8 \
160+
test_spell \
161+
test_startup \
162+
test_startup_utf8 \
163+
test_stat \
164+
test_statusline \
165+
test_substitute \
166+
test_swap \
167+
test_syn_attr \
168+
test_syntax \
169+
test_system \
170+
test_tab \
171+
test_tabline \
172+
test_tabpage \
173+
test_tagcase \
174+
test_tagjump \
175+
test_taglist \
176+
test_tcl \
177+
test_terminal \
178+
test_terminal_fail \
179+
test_textformat \
180+
test_textobjects \
181+
test_timers \
182+
test_true_false \
183+
test_undo \
184+
test_unlet \
185+
test_usercommands \
186+
test_utf8 \
187+
test_utf8_comparisons \
188+
test_vartabs \
189+
test_viminfo \
190+
test_vimscript \
191+
test_virtualedit \
192+
test_visual \
193+
test_winbar \
194+
test_winbuf_close \
195+
test_window_cmd \
196+
test_window_id \
197+
test_windows_home \
198+
test_wordcount \
199+
test_writefile \
200+
test_xxd \
201+
test_alot_latin \
202+
test_alot_utf8 \
203+
test_alot

src/Make_mvc.mak

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -693,6 +693,8 @@ CFLAGS = $(CFLAGS) /Zl /MTd
693693
! endif
694694
!endif # DEBUG
695695

696+
!include Make_all.mak
697+
696698
INCL = vim.h alloc.h arabic.h ascii.h ex_cmds.h farsi.h feature.h globals.h \
697699
keymap.h macros.h option.h os_dos.h os_win32.h proto.h regexp.h \
698700
spell.h structs.h term.h beval.h $(NBDEBUG_INCL)
@@ -1296,6 +1298,14 @@ testclean:
12961298
$(MAKE) /NOLOGO -f Make_dos.mak clean
12971299
cd ..
12981300

1301+
$(NEW_TESTS):
1302+
cd testdir
1303+
- if exist $@.res del $@.res
1304+
$(MAKE) /NOLOGO -f Make_dos.mak nolog
1305+
$(MAKE) /NOLOGO -f Make_dos.mak $@.res
1306+
$(MAKE) /NOLOGO -f Make_dos.mak report
1307+
cd ..
1308+
12991309
###########################################################################
13001310

13011311
# Create a default rule for transforming .c files to .obj files in $(OUTDIR)

0 commit comments

Comments
 (0)