summaryrefslogtreecommitdiff
path: root/src/testdir/Make_dos.mak
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2013-06-17 21:53:37 +0200
committerBram Moolenaar <Bram@vim.org>2013-06-17 21:53:37 +0200
commit555d2a83402a4dd21f0b353c757b3cde4a4e47de (patch)
treefd5a95f2102cfafebfaf27dadc7fee5154f720c8 /src/testdir/Make_dos.mak
parentd79862599d8cdd2186480dda1cf990d4ca0134fe (diff)
downloadvim-git-555d2a83402a4dd21f0b353c757b3cde4a4e47de.tar.gz
updated for version 7.3.1218v7.3.1218
Problem: "make test" on MS-Windows does not clean all temporary files and gives some unneccessary message. Solution: Clean the right files. Create .failed files. (Ken Takata)
Diffstat (limited to 'src/testdir/Make_dos.mak')
-rw-r--r--src/testdir/Make_dos.mak13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/testdir/Make_dos.mak b/src/testdir/Make_dos.mak
index 7c5b0eef1..11ecd9a67 100644
--- a/src/testdir/Make_dos.mak
+++ b/src/testdir/Make_dos.mak
@@ -61,6 +61,7 @@ report:
clean:
-del *.out
+ -del *.failed
-if exist test.ok del test.ok
-if exist small.vim del small.vim
-if exist tiny.vim del tiny.vim
@@ -68,18 +69,22 @@ clean:
-if exist mzscheme.vim del mzscheme.vim
-if exist lua.vim del lua.vim
-del X*
+ -if exist Xdir1 rd /s /q Xdir1
+ -if exist Xfind rd /s /q Xfind
-if exist viminfo del viminfo
-del test.log
.in.out:
+ -if exist $*.failed del $*.failed
copy $*.ok test.ok
$(VIMPROG) -u dos.vim -U NONE --noplugin -s dotest.in $*.in
- @diff test.out $*.ok & if errorlevel 1 (echo $* FAILED >> test.log ) \
- else ( del /F $*.out & rename test.out $*.out )
+ @diff test.out $*.ok & if errorlevel 1 \
+ ( move /y test.out $*.failed & echo $* FAILED >> test.log ) \
+ else ( move /y test.out $*.out )
-del X*
- -del X*.*
-del test.ok
- -rd /s /q Xfind
+ -if exist Xdir1 rd /s /q Xdir1
+ -if exist Xfind rd /s /q Xfind
-if exist viminfo del viminfo
nolog: