Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1 | # |
Bram Moolenaar | 6839272 | 2010-07-30 22:04:17 +0200 | [diff] [blame] | 2 | # Makefile to run all tests for Vim, on Dos-like machines. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3 | # |
| 4 | # Requires a set of Unix tools: echo, diff, etc. |
| 5 | |
| 6 | VIMPROG = ..\\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 | |
| 16 | SCRIPTS16 = 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 \ |
Bram Moolenaar | a7fc010 | 2005-05-18 22:17:12 +0000 | [diff] [blame] | 20 | test48.out test51.out test53.out test54.out \ |
Bram Moolenaar | 0ce33f3 | 2005-12-23 22:16:03 +0000 | [diff] [blame] | 21 | test55.out test56.out test57.out test58.out test59.out \ |
Bram Moolenaar | 9c03978 | 2007-08-14 15:55:42 +0000 | [diff] [blame] | 22 | test60.out test61.out test62.out test63.out test64.out |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 23 | |
| 24 | SCRIPTS = 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 \ |
Bram Moolenaar | f11021b | 2009-11-17 16:57:14 +0000 | [diff] [blame] | 29 | test42.out test52.out test65.out test66.out test67.out \ |
Bram Moolenaar | 680eeca | 2010-10-20 17:44:42 +0200 | [diff] [blame] | 30 | test68.out test69.out test71.out test72.out test73.out \ |
Bram Moolenaar | 978287b | 2011-06-19 04:32:15 +0200 | [diff] [blame] | 31 | test74.out test75.out test76.out test77.out test78.out \ |
Bram Moolenaar | 913077c | 2012-03-28 19:59:04 +0200 | [diff] [blame^] | 32 | test79.out test80.out test81.out test82.out test83.out \ |
| 33 | test84.out |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 34 | |
Bram Moolenaar | 7e506b6 | 2010-01-19 15:55:06 +0100 | [diff] [blame] | 35 | SCRIPTS32 = test50.out test70.out |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 36 | |
| 37 | SCRIPTS_GUI = test16.out |
| 38 | |
| 39 | .SUFFIXES: .in .out |
| 40 | |
Bram Moolenaar | b78b0b0 | 2005-01-02 11:32:29 +0000 | [diff] [blame] | 41 | nongui: fixff $(SCRIPTS16) $(SCRIPTS) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 42 | echo ALL DONE |
| 43 | |
Bram Moolenaar | c01140a | 2006-03-24 22:21:52 +0000 | [diff] [blame] | 44 | small: |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 45 | echo ALL DONE |
| 46 | |
Bram Moolenaar | b78b0b0 | 2005-01-02 11:32:29 +0000 | [diff] [blame] | 47 | gui: fixff $(SCRIPTS16) $(SCRIPTS) $(SCRIPTS_GUI) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 48 | echo ALL DONE |
| 49 | |
Bram Moolenaar | b78b0b0 | 2005-01-02 11:32:29 +0000 | [diff] [blame] | 50 | win32: fixff $(SCRIPTS16) $(SCRIPTS) $(SCRIPTS32) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 51 | echo ALL DONE |
| 52 | |
Bram Moolenaar | b78b0b0 | 2005-01-02 11:32:29 +0000 | [diff] [blame] | 53 | fixff: |
| 54 | -$(VIMPROG) -u dos.vim --noplugin "+argdo set ff=dos|upd" +q *.in *.ok |
Bram Moolenaar | f4274fe | 2010-08-01 17:37:17 +0200 | [diff] [blame] | 55 | -$(VIMPROG) -u dos.vim --noplugin "+argdo set ff=unix|upd" +q dotest.in |
Bram Moolenaar | b78b0b0 | 2005-01-02 11:32:29 +0000 | [diff] [blame] | 56 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 57 | clean: |
| 58 | -del *.out |
Bram Moolenaar | 9c03978 | 2007-08-14 15:55:42 +0000 | [diff] [blame] | 59 | -if exist test.ok del test.ok |
| 60 | -if exist small.vim del small.vim |
| 61 | -if exist tiny.vim del tiny.vim |
| 62 | -if exist mbyte.vim del mbyte.vim |
Bram Moolenaar | 2498b3a | 2010-03-02 17:59:44 +0100 | [diff] [blame] | 63 | -if exist mzscheme.vim del mzscheme.vim |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 64 | -del X* |
Bram Moolenaar | 9c03978 | 2007-08-14 15:55:42 +0000 | [diff] [blame] | 65 | -if exist viminfo del viminfo |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 66 | |
| 67 | .in.out: |
| 68 | copy $*.ok test.ok |
| 69 | $(VIMPROG) -u dos.vim -U NONE --noplugin -s dotest.in $*.in |
| 70 | diff test.out $*.ok |
Bram Moolenaar | 9c03978 | 2007-08-14 15:55:42 +0000 | [diff] [blame] | 71 | -if exist $*.out del $*.out |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 72 | rename test.out $*.out |
| 73 | -del X* |
Bram Moolenaar | 3171026 | 2010-08-13 13:36:15 +0200 | [diff] [blame] | 74 | -del X*.* |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 75 | -del test.ok |
Bram Moolenaar | daf3b39 | 2010-08-13 19:13:18 +0200 | [diff] [blame] | 76 | -rmdir /s /q Xfind |
Bram Moolenaar | 9c03978 | 2007-08-14 15:55:42 +0000 | [diff] [blame] | 77 | -if exist viminfo del viminfo |