astepano / rpms / vim

Forked from rpms/vim 6 years ago
Clone
307bbf4
To: vim-dev@vim.org
307bbf4
Subject: Patch 7.2.022 (extra)
307bbf4
Fcc: outbox
307bbf4
From: Bram Moolenaar <Bram@moolenaar.net>
307bbf4
Mime-Version: 1.0
307bbf4
Content-Type: text/plain; charset=ISO-8859-1
307bbf4
Content-Transfer-Encoding: 8bit
307bbf4
------------
307bbf4
307bbf4
Patch 7.2.022 (extra)
307bbf4
Problem:    Testing is not possible when compiling with MingW.
307bbf4
Solution:   Add a MingW specific test Makefile. (Bill McCarthy)
307bbf4
Files:	    Filelist, src/testdir/Make_ming.mak
307bbf4
307bbf4
307bbf4
*** ../vim-7.2.021/Filelist	Sun Jul 13 19:33:31 2008
307bbf4
--- Filelist	Sun Sep 14 21:47:01 2008
307bbf4
***************
307bbf4
*** 285,290 ****
307bbf4
--- 285,291 ----
307bbf4
  		src/proto/os_win32.pro \
307bbf4
  		src/proto/os_mswin.pro \
307bbf4
  		src/testdir/Make_dos.mak \
307bbf4
+ 		src/testdir/Make_ming.mak \
307bbf4
  		src/testdir/dos.vim \
307bbf4
  		src/uninstal.c \
307bbf4
  		src/vim.def \
307bbf4
*** ../vim-7.2.021/src/testdir/Make_ming.mak	Sat Sep 20 16:25:06 2008
307bbf4
--- src/testdir/Make_ming.mak	Sat Sep 20 16:25:58 2008
307bbf4
***************
307bbf4
*** 0 ****
307bbf4
--- 1,91 ----
307bbf4
+ # Makefile to run tests for Vim, on Dos-like machines
307bbf4
+ # with sh.exe or zsh.exe in the path or not.
307bbf4
+ #
307bbf4
+ # Author: Bill McCarthy
307bbf4
+ #
307bbf4
+ # Note that test54 has been removed until it is fixed.
307bbf4
+ #
307bbf4
+ # Requires a set of Unix tools: echo, diff, etc.
307bbf4
+ 
307bbf4
+ ifneq (sh.exe, $(SHELL))
307bbf4
+ DEL = rm -f
307bbf4
+ MV = mv
307bbf4
+ CP = cp
307bbf4
+ DIRSLASH = /
307bbf4
+ else
307bbf4
+ DEL = del
307bbf4
+ MV = rename
307bbf4
+ CP = copy
307bbf4
+ DIRSLASH = \\
307bbf4
+ endif
307bbf4
+ 
307bbf4
+ VIMPROG = ..$(DIRSLASH)vim
307bbf4
+ 
307bbf4
+ # Omitted:
307bbf4
+ # test2		"\\tmp" doesn't work.
307bbf4
+ # test10	'errorformat' is different
307bbf4
+ # test12	can't unlink a swap file
307bbf4
+ # test25	uses symbolic link
307bbf4
+ # test27	can't edit file with "*" in file name
307bbf4
+ # test31	16 bit version runs out of memory...
307bbf4
+ 
307bbf4
+ SCRIPTS16 =	test1.out test19.out test20.out test22.out \
307bbf4
+ 		test23.out test24.out test28.out test29.out \
307bbf4
+ 		test35.out test36.out test43.out \
307bbf4
+ 		test44.out test45.out test46.out test47.out \
307bbf4
+ 		test48.out test51.out test53.out            \
307bbf4
+ 		test55.out test56.out test57.out test58.out test59.out \
307bbf4
+ 		test60.out test61.out test62.out test63.out test64.out
307bbf4
+ 
307bbf4
+ # Had to remove test54 which doesn't work yet.
307bbf4
+ #		                                 test54.out
307bbf4
+ 
307bbf4
+ SCRIPTS =	test3.out test4.out test5.out test6.out test7.out \
307bbf4
+ 		test8.out test9.out test11.out test13.out test14.out \
307bbf4
+ 		test15.out test17.out test18.out test21.out test26.out \
307bbf4
+ 		test30.out test31.out test32.out test33.out test34.out \
307bbf4
+ 		test37.out test38.out test39.out test40.out test41.out \
307bbf4
+ 		test42.out test52.out test65.out
307bbf4
+ 
307bbf4
+ SCRIPTS32 =	test50.out
307bbf4
+ 
307bbf4
+ SCRIPTS_GUI = test16.out
307bbf4
+ 
307bbf4
+ .SUFFIXES: .in .out
307bbf4
+ 
307bbf4
+ vimall:	fixff $(SCRIPTS16) $(SCRIPTS) $(SCRIPTS_GUI) $(SCRIPTS32)
307bbf4
+ 	echo ALL DONE
307bbf4
+ 
307bbf4
+ nongui:	fixff $(SCRIPTS16) $(SCRIPTS)
307bbf4
+ 	echo ALL DONE
307bbf4
+ 
307bbf4
+ small:
307bbf4
+ 	echo ALL DONE
307bbf4
+ 
307bbf4
+ gui:	fixff $(SCRIPTS16) $(SCRIPTS) $(SCRIPTS_GUI)
307bbf4
+ 	echo ALL DONE
307bbf4
+ 
307bbf4
+ win32:	fixff $(SCRIPTS16) $(SCRIPTS) $(SCRIPTS32)
307bbf4
+ 	echo ALL DONE
307bbf4
+ 
307bbf4
+ fixff:
307bbf4
+ 	-$(VIMPROG) -u dos.vim --noplugin "+argdo set ff=dos|upd" +q *.in *.ok
307bbf4
+ 
307bbf4
+ clean:
307bbf4
+ 	-$(DEL) *.out
307bbf4
+ 	-$(DEL) test.ok
307bbf4
+ 	-$(DEL) small.vim
307bbf4
+ 	-$(DEL) tiny.vim
307bbf4
+ 	-$(DEL) mbyte.vim
307bbf4
+ 	-$(DEL) X*
307bbf4
+ 	-$(DEL) viminfo
307bbf4
+ 
307bbf4
+ .in.out:
307bbf4
+ 	$(CP) $*.ok test.ok
307bbf4
+ 	$(VIMPROG) -u dos.vim -U NONE --noplugin -s dotest.in $*.in
307bbf4
+ 	diff test.out $*.ok
307bbf4
+ 	-$(DEL) $*.out
307bbf4
+ 	$(MV) test.out $*.out
307bbf4
+ 	-$(DEL) X*
307bbf4
+ 	-$(DEL) test.ok
307bbf4
+ 	-$(DEL) viminfo
307bbf4
*** ../vim-7.2.021/src/version.c	Thu Sep 18 21:29:07 2008
307bbf4
--- src/version.c	Sat Sep 20 16:25:16 2008
307bbf4
***************
307bbf4
*** 678,679 ****
307bbf4
--- 678,681 ----
307bbf4
  {   /* Add new patch number below this line */
307bbf4
+ /**/
307bbf4
+     22,
307bbf4
  /**/
307bbf4
307bbf4
-- 
307bbf4
Where do you want to crash today?
307bbf4
307bbf4
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
307bbf4
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
307bbf4
\\\        download, build and distribute -- http://www.A-A-P.org        ///
307bbf4
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///