Bram Moolenaar | 6839272 | 2010-07-30 22:04:17 +0200 | [diff] [blame] | 1 | # |
| 2 | # Makefile to run all tests for Vim, on Dos-like machines |
Bram Moolenaar | 34b6cb1 | 2008-09-20 14:27:03 +0000 | [diff] [blame] | 3 | # with sh.exe or zsh.exe in the path or not. |
| 4 | # |
| 5 | # Author: Bill McCarthy |
| 6 | # |
| 7 | # Note that test54 has been removed until it is fixed. |
| 8 | # |
| 9 | # Requires a set of Unix tools: echo, diff, etc. |
| 10 | |
| 11 | ifneq (sh.exe, $(SHELL)) |
| 12 | DEL = rm -f |
| 13 | MV = mv |
| 14 | CP = cp |
| 15 | DIRSLASH = / |
| 16 | else |
| 17 | DEL = del |
| 18 | MV = rename |
| 19 | CP = copy |
| 20 | DIRSLASH = \\ |
| 21 | endif |
| 22 | |
| 23 | VIMPROG = ..$(DIRSLASH)vim |
| 24 | |
| 25 | # Omitted: |
| 26 | # test2 "\\tmp" doesn't work. |
| 27 | # test10 'errorformat' is different |
| 28 | # test12 can't unlink a swap file |
| 29 | # test25 uses symbolic link |
| 30 | # test27 can't edit file with "*" in file name |
Bram Moolenaar | ee0ee2a | 2013-07-03 21:19:07 +0200 | [diff] [blame] | 31 | # test97 \{ and \$ are not escaped characters. |
Bram Moolenaar | 34b6cb1 | 2008-09-20 14:27:03 +0000 | [diff] [blame] | 32 | |
| 33 | SCRIPTS16 = test1.out test19.out test20.out test22.out \ |
| 34 | test23.out test24.out test28.out test29.out \ |
| 35 | test35.out test36.out test43.out \ |
| 36 | test44.out test45.out test46.out test47.out \ |
| 37 | test48.out test51.out test53.out \ |
| 38 | test55.out test56.out test57.out test58.out test59.out \ |
| 39 | test60.out test61.out test62.out test63.out test64.out |
| 40 | |
| 41 | # Had to remove test54 which doesn't work yet. |
| 42 | # test54.out |
| 43 | |
| 44 | SCRIPTS = test3.out test4.out test5.out test6.out test7.out \ |
| 45 | test8.out test9.out test11.out test13.out test14.out \ |
| 46 | test15.out test17.out test18.out test21.out test26.out \ |
| 47 | test30.out test31.out test32.out test33.out test34.out \ |
| 48 | test37.out test38.out test39.out test40.out test41.out \ |
Bram Moolenaar | f11021b | 2009-11-17 16:57:14 +0000 | [diff] [blame] | 49 | test42.out test52.out test65.out test66.out test67.out \ |
Bram Moolenaar | 680eeca | 2010-10-20 17:44:42 +0200 | [diff] [blame] | 50 | test68.out test69.out test71.out test72.out test73.out \ |
Bram Moolenaar | 978287b | 2011-06-19 04:32:15 +0200 | [diff] [blame] | 51 | test74.out test75.out test76.out test77.out test78.out \ |
Bram Moolenaar | 913077c | 2012-03-28 19:59:04 +0200 | [diff] [blame] | 52 | test79.out test80.out test81.out test82.out test83.out \ |
Bram Moolenaar | f4e5e86 | 2013-02-13 15:44:26 +0100 | [diff] [blame] | 53 | test84.out test85.out test86.out test87.out test88.out \ |
Bram Moolenaar | e3e6e57 | 2013-04-12 13:45:02 +0200 | [diff] [blame] | 54 | test89.out test90.out test91.out test92.out test93.out \ |
Bram Moolenaar | c1c023e | 2013-11-07 03:26:06 +0100 | [diff] [blame] | 55 | test94.out test95.out test96.out test98.out test99.out \ |
Bram Moolenaar | 26df092 | 2014-02-23 23:39:13 +0100 | [diff] [blame] | 56 | test100.out test101.out test102.out test103.out test104.out \ |
Bram Moolenaar | c35b0fb | 2014-05-29 11:47:40 +0200 | [diff] [blame] | 57 | test105.out test106.out test107.out \ |
Bram Moolenaar | d69bd9a | 2014-04-29 12:15:40 +0200 | [diff] [blame] | 58 | test_autoformat_join.out \ |
Bram Moolenaar | 597a422 | 2014-06-25 14:39:50 +0200 | [diff] [blame] | 59 | test_breakindent.out \ |
Bram Moolenaar | 86b17e9 | 2014-07-02 20:00:47 +0200 | [diff] [blame] | 60 | test_listlbr.out \ |
Bram Moolenaar | b5647f7 | 2014-07-16 17:01:53 +0200 | [diff] [blame] | 61 | test_listlbr_utf8.out \ |
Bram Moolenaar | fb60409 | 2014-07-23 15:55:00 +0200 | [diff] [blame] | 62 | test_qf_title.out \ |
Bram Moolenaar | 23fb7a9 | 2014-07-30 14:05:00 +0200 | [diff] [blame] | 63 | test_changelist.out \ |
Bram Moolenaar | b7cb42b | 2014-04-02 19:55:10 +0200 | [diff] [blame] | 64 | test_eval.out \ |
Bram Moolenaar | 4f5ce33 | 2014-07-30 16:00:58 +0200 | [diff] [blame^] | 65 | test_insertcount.out \ |
Bram Moolenaar | efa304d | 2014-04-01 14:08:28 +0200 | [diff] [blame] | 66 | test_options.out |
Bram Moolenaar | 34b6cb1 | 2008-09-20 14:27:03 +0000 | [diff] [blame] | 67 | |
Bram Moolenaar | 7e506b6 | 2010-01-19 15:55:06 +0100 | [diff] [blame] | 68 | SCRIPTS32 = test50.out test70.out |
Bram Moolenaar | 34b6cb1 | 2008-09-20 14:27:03 +0000 | [diff] [blame] | 69 | |
| 70 | SCRIPTS_GUI = test16.out |
| 71 | |
| 72 | .SUFFIXES: .in .out |
| 73 | |
| 74 | vimall: fixff $(SCRIPTS16) $(SCRIPTS) $(SCRIPTS_GUI) $(SCRIPTS32) |
| 75 | echo ALL DONE |
| 76 | |
| 77 | nongui: fixff $(SCRIPTS16) $(SCRIPTS) |
| 78 | echo ALL DONE |
| 79 | |
| 80 | small: |
| 81 | echo ALL DONE |
| 82 | |
| 83 | gui: fixff $(SCRIPTS16) $(SCRIPTS) $(SCRIPTS_GUI) |
| 84 | echo ALL DONE |
| 85 | |
| 86 | win32: fixff $(SCRIPTS16) $(SCRIPTS) $(SCRIPTS32) |
| 87 | echo ALL DONE |
| 88 | |
| 89 | fixff: |
| 90 | -$(VIMPROG) -u dos.vim --noplugin "+argdo set ff=dos|upd" +q *.in *.ok |
Bram Moolenaar | 09210ac | 2012-04-13 19:11:20 +0200 | [diff] [blame] | 91 | -$(VIMPROG) -u dos.vim --noplugin "+argdo set ff=unix|upd" +q \ |
| 92 | dotest.in test60.ok test71.ok test74.ok |
Bram Moolenaar | 34b6cb1 | 2008-09-20 14:27:03 +0000 | [diff] [blame] | 93 | |
| 94 | clean: |
| 95 | -$(DEL) *.out |
| 96 | -$(DEL) test.ok |
| 97 | -$(DEL) small.vim |
| 98 | -$(DEL) tiny.vim |
| 99 | -$(DEL) mbyte.vim |
Bram Moolenaar | 7e506b6 | 2010-01-19 15:55:06 +0100 | [diff] [blame] | 100 | -$(DEL) mzscheme.vim |
Bram Moolenaar | b35c338 | 2012-10-06 19:10:35 +0200 | [diff] [blame] | 101 | -$(DEL) lua.vim |
Bram Moolenaar | 34b6cb1 | 2008-09-20 14:27:03 +0000 | [diff] [blame] | 102 | -$(DEL) X* |
| 103 | -$(DEL) viminfo |
| 104 | |
| 105 | .in.out: |
| 106 | $(CP) $*.ok test.ok |
| 107 | $(VIMPROG) -u dos.vim -U NONE --noplugin -s dotest.in $*.in |
| 108 | diff test.out $*.ok |
| 109 | -$(DEL) $*.out |
| 110 | $(MV) test.out $*.out |
| 111 | -$(DEL) X* |
| 112 | -$(DEL) test.ok |
| 113 | -$(DEL) viminfo |