Skip to content

Commit e92caf9

Browse files
committed
Merge remote-tracking branch 'vim/master'
2 parents c33f31b + 08b7bae commit e92caf9

File tree

8 files changed

+452
-360
lines changed

8 files changed

+452
-360
lines changed

src/Makefile

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,12 @@ CC=
281281
#GUI_LIB_LOC = -L/usr/X11R6/lib
282282
# }}}
283283

284+
# Defaults used when auto/config.mk does not exist.
285+
srcdir = .
286+
VIMNAME = vim
287+
EXNAME = ex
288+
VIEWNAME = view
289+
284290
######################## auto/config.mk ######################## {{{1
285291
# At this position auto/config.mk is included. When starting from the
286292
# toplevel Makefile it is almost empty. After running auto/configure it
@@ -1993,12 +1999,19 @@ test_assert \
19931999
test_searchpos \
19942000
test_sort \
19952001
test_undolevels \
2002+
test_viml \
19962003
test_alot:
19972004
cd testdir; rm -f [email protected] test.log messages; $(MAKE) -f Makefile [email protected] VIMPROG=../$(VIMTARGET) $(GUI_TESTARG) SCRIPTSOURCE=../$(SCRIPTSOURCE)
2005+
@if test -f testdir/test.log; then \
2006+
cat testdir/test.log; \
2007+
fi
19982008
cat testdir/messages
19992009

20002010
newtests:
20012011
cd testdir; rm -f $@.res test.log messages; $(MAKE) -f Makefile newtests VIMPROG=../$(VIMTARGET) $(GUI_TESTARG) SCRIPTSOURCE=../$(SCRIPTSOURCE)
2012+
@if test -f testdir/test.log; then \
2013+
cat testdir/test.log; \
2014+
fi
20022015
cat testdir/messages
20032016

20042017
testclean:
@@ -2498,7 +2511,6 @@ shadow: runtime pixmaps
24982511
mkdir $(SHADOWDIR)/testdir
24992512
cd $(SHADOWDIR)/testdir; ln -s ../../testdir/Makefile \
25002513
../../testdir/Make_all.mak \
2501-
../../testdir/vimrc.unix \
25022514
../../testdir/*.in \
25032515
../../testdir/*.vim \
25042516
../../testdir/python* \

src/testdir/Make_all.mak

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ SCRIPTS_GUI = test16.out
174174
# Keep test_alot.res as the last one, sort the others.
175175
NEW_TESTS = test_assert.res \
176176
test_cdo.res \
177+
test_viml.res \
177178
test_alot.res
178179

179180

src/testdir/Make_dos.mak

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,6 @@ DOSTMP_INFILES = $(DOSTMP_OUTFILES:.out=.in)
2727

2828
.SUFFIXES: .in .out .res .vim
2929

30-
# Must run test1 first to create small.vim.
31-
$(SCRIPTS) $(SCRIPTS_GUI) $(SCRIPTS_WIN32) $(NEW_TESTS): $(SCRIPTS_FIRST)
32-
3330
nongui: nolog $(SCRIPTS_FIRST) $(SCRIPTS) newtests report
3431

3532
small: nolog report
@@ -67,6 +64,11 @@ $(TEST_OUTFILES): $(DOSTMP)\$(*B).in
6764
& echo $* FAILED >> test.log ) \
6865
else ( move /y test.out $*.out )
6966

67+
# Must run test1 first to create small.vim.
68+
# This rule must come after the one that copies the input files to dostmp to
69+
# allow for running an individual test.
70+
$(SCRIPTS) $(SCRIPTS_GUI) $(SCRIPTS_WIN32) $(NEW_TESTS): $(SCRIPTS_FIRST)
71+
7072
report:
7173
@echo ""
7274
@echo Test results:

src/testdir/runtest.vim

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,16 @@ if &lines < 24 || &columns < 80
3333
cquit
3434
endif
3535

36+
" For consistency run all tests with 'nocompatible' set.
37+
" This also enables use of line continuation.
38+
set nocp viminfo+=nviminfo
39+
40+
" Avoid stopping at the "hit enter" prompt
41+
set nomore
42+
43+
" Output all messages in English.
44+
lang mess C
45+
3646
" Source the test script. First grab the file name, in case the script
3747
" navigates away.
3848
let testname = expand('%')

src/testdir/test49.ok

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
11
Results of test49.vim:
2-
*** Test 1: OK (34695)
3-
*** Test 2: OK (34695)
4-
*** Test 3: OK (1384648195)
5-
*** Test 4: OK (32883)
6-
*** Test 5: OK (32883)
7-
*** Test 6: OK (603978947)
82
*** Test 7: OK (90563)
93
*** Test 8: OK (562493431)
104
*** Test 9: OK (363)

0 commit comments

Comments
 (0)