1# 2# Makefile to run all tests for Vim, on Dos-like machines. 3# 4# Requires a set of Unix tools: echo, diff, etc. 5 6VIMPROG = ..\\vim 7 8# Omitted: 9# test2 "\\tmp" doesn't work. 10# test10 'errorformat' is different 11# test12 can't unlink a swap file 12# test25 uses symbolic link 13# test27 can't edit file with "*" in file name 14# test31 16 bit version runs out of memory... 15 16SCRIPTS16 = test1.out test19.out test20.out test22.out \ 17 test23.out test24.out test28.out test29.out \ 18 test35.out test36.out test43.out \ 19 test44.out test45.out test46.out test47.out \ 20 test48.out test51.out test53.out test54.out \ 21 test55.out test56.out test57.out test58.out test59.out \ 22 test60.out test61.out test62.out test63.out test64.out 23 24SCRIPTS = test3.out test4.out test5.out test6.out test7.out \ 25 test8.out test9.out test11.out test13.out test14.out \ 26 test15.out test17.out test18.out test21.out test26.out \ 27 test30.out test31.out test32.out test33.out test34.out \ 28 test37.out test38.out test39.out test40.out test41.out \ 29 test42.out test52.out test65.out test66.out test67.out \ 30 test68.out test69.out test71.out test72.out test73.out 31 32SCRIPTS32 = test50.out test70.out 33 34SCRIPTS_GUI = test16.out 35 36.SUFFIXES: .in .out 37 38nongui: fixff $(SCRIPTS16) $(SCRIPTS) 39 echo ALL DONE 40 41small: 42 echo ALL DONE 43 44gui: fixff $(SCRIPTS16) $(SCRIPTS) $(SCRIPTS_GUI) 45 echo ALL DONE 46 47win32: fixff $(SCRIPTS16) $(SCRIPTS) $(SCRIPTS32) 48 echo ALL DONE 49 50fixff: 51 -$(VIMPROG) -u dos.vim --noplugin "+argdo set ff=dos|upd" +q *.in *.ok 52 -$(VIMPROG) -u dos.vim --noplugin "+argdo set ff=unix|upd" +q dotest.in 53 54clean: 55 -del *.out 56 -if exist test.ok del test.ok 57 -if exist small.vim del small.vim 58 -if exist tiny.vim del tiny.vim 59 -if exist mbyte.vim del mbyte.vim 60 -if exist mzscheme.vim del mzscheme.vim 61 -del X* 62 -if exist viminfo del viminfo 63 64.in.out: 65 copy $*.ok test.ok 66 $(VIMPROG) -u dos.vim -U NONE --noplugin -s dotest.in $*.in 67 diff test.out $*.ok 68 -if exist $*.out del $*.out 69 rename test.out $*.out 70 -del X* 71 -del X*.* 72 -del test.ok 73 -rmdir /s /q Xfind 74 -if exist viminfo del viminfo 75