Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1 | # |
| 2 | # Makefile to run al tests for Vim, on Dos-like machines. |
| 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 | bf96fb4 | 2007-07-26 21:11:52 +0000 | [diff] [blame] | 22 | test60.out test61.out test62.out test63.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 | 0ce33f3 | 2005-12-23 22:16:03 +0000 | [diff] [blame] | 29 | test42.out test52.out |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 30 | |
| 31 | SCRIPTS32 = test50.out |
| 32 | |
| 33 | SCRIPTS_GUI = test16.out |
| 34 | |
| 35 | .SUFFIXES: .in .out |
| 36 | |
Bram Moolenaar | b78b0b0 | 2005-01-02 11:32:29 +0000 | [diff] [blame] | 37 | nongui: fixff $(SCRIPTS16) $(SCRIPTS) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 38 | echo ALL DONE |
| 39 | |
Bram Moolenaar | c01140a | 2006-03-24 22:21:52 +0000 | [diff] [blame] | 40 | small: |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 41 | echo ALL DONE |
| 42 | |
Bram Moolenaar | b78b0b0 | 2005-01-02 11:32:29 +0000 | [diff] [blame] | 43 | gui: fixff $(SCRIPTS16) $(SCRIPTS) $(SCRIPTS_GUI) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 44 | echo ALL DONE |
| 45 | |
Bram Moolenaar | b78b0b0 | 2005-01-02 11:32:29 +0000 | [diff] [blame] | 46 | win32: fixff $(SCRIPTS16) $(SCRIPTS) $(SCRIPTS32) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 47 | echo ALL DONE |
| 48 | |
Bram Moolenaar | b78b0b0 | 2005-01-02 11:32:29 +0000 | [diff] [blame] | 49 | fixff: |
| 50 | -$(VIMPROG) -u dos.vim --noplugin "+argdo set ff=dos|upd" +q *.in *.ok |
| 51 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 52 | clean: |
| 53 | -del *.out |
| 54 | -del test.ok |
| 55 | -del small.vim |
| 56 | -del tiny.vim |
| 57 | -del mbyte.vim |
| 58 | -del X* |
| 59 | -del viminfo |
| 60 | |
| 61 | .in.out: |
| 62 | copy $*.ok test.ok |
| 63 | $(VIMPROG) -u dos.vim -U NONE --noplugin -s dotest.in $*.in |
| 64 | diff test.out $*.ok |
| 65 | -del $*.out |
| 66 | rename test.out $*.out |
| 67 | -del X* |
| 68 | -del test.ok |
| 69 | -del viminfo |