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 \ |
Bram Moolenaar | f4e5e86 | 2013-02-13 15:44:26 +0100 | [diff] [blame] | 33 | test84.out test85.out test86.out test87.out test88.out \ |
Bram Moolenaar | e3e6e57 | 2013-04-12 13:45:02 +0200 | [diff] [blame] | 34 | test89.out test90.out test91.out test92.out test93.out \ |
Bram Moolenaar | fbc0d2e | 2013-05-19 19:40:29 +0200 | [diff] [blame] | 35 | test94.out test95.out |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 36 | |
Bram Moolenaar | 7e506b6 | 2010-01-19 15:55:06 +0100 | [diff] [blame] | 37 | SCRIPTS32 = test50.out test70.out |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 38 | |
| 39 | SCRIPTS_GUI = test16.out |
| 40 | |
| 41 | .SUFFIXES: .in .out |
| 42 | |
Bram Moolenaar | 6949eea | 2013-06-16 16:57:46 +0200 | [diff] [blame^] | 43 | nongui: fixff $(SCRIPTS16) $(SCRIPTS) report |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 44 | |
Bram Moolenaar | 6949eea | 2013-06-16 16:57:46 +0200 | [diff] [blame^] | 45 | small: report |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 46 | |
Bram Moolenaar | 6949eea | 2013-06-16 16:57:46 +0200 | [diff] [blame^] | 47 | gui: fixff $(SCRIPTS16) $(SCRIPTS) $(SCRIPTS_GUI) report |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 48 | |
Bram Moolenaar | 6949eea | 2013-06-16 16:57:46 +0200 | [diff] [blame^] | 49 | win32: fixff $(SCRIPTS16) $(SCRIPTS) $(SCRIPTS32) report |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 50 | |
Bram Moolenaar | b78b0b0 | 2005-01-02 11:32:29 +0000 | [diff] [blame] | 51 | fixff: |
| 52 | -$(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] | 53 | -$(VIMPROG) -u dos.vim --noplugin "+argdo set ff=unix|upd" +q \ |
| 54 | dotest.in test60.ok test71.ok test74.ok |
Bram Moolenaar | b78b0b0 | 2005-01-02 11:32:29 +0000 | [diff] [blame] | 55 | |
Bram Moolenaar | 6949eea | 2013-06-16 16:57:46 +0200 | [diff] [blame^] | 56 | report: |
| 57 | @echo "" |
| 58 | @echo Test results: |
| 59 | @IF EXIST test.log ( type test.log & echo TEST FAILURE & exit /b 1 ) \ |
| 60 | ELSE ( ECHO ALL DONE ) |
| 61 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 62 | clean: |
| 63 | -del *.out |
Bram Moolenaar | 9c03978 | 2007-08-14 15:55:42 +0000 | [diff] [blame] | 64 | -if exist test.ok del test.ok |
| 65 | -if exist small.vim del small.vim |
| 66 | -if exist tiny.vim del tiny.vim |
| 67 | -if exist mbyte.vim del mbyte.vim |
Bram Moolenaar | 2498b3a | 2010-03-02 17:59:44 +0100 | [diff] [blame] | 68 | -if exist mzscheme.vim del mzscheme.vim |
Bram Moolenaar | b35c338 | 2012-10-06 19:10:35 +0200 | [diff] [blame] | 69 | -if exist lua.vim del lua.vim |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 70 | -del X* |
Bram Moolenaar | 9c03978 | 2007-08-14 15:55:42 +0000 | [diff] [blame] | 71 | -if exist viminfo del viminfo |
Bram Moolenaar | 6949eea | 2013-06-16 16:57:46 +0200 | [diff] [blame^] | 72 | -del test.log |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 73 | |
| 74 | .in.out: |
| 75 | copy $*.ok test.ok |
| 76 | $(VIMPROG) -u dos.vim -U NONE --noplugin -s dotest.in $*.in |
Bram Moolenaar | 6949eea | 2013-06-16 16:57:46 +0200 | [diff] [blame^] | 77 | @diff test.out $*.ok & if errorlevel 1 (echo $* FAILED >> test.log ) \ |
| 78 | else ( del /F $*.out & rename test.out $*.out ) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 79 | -del X* |
Bram Moolenaar | 3171026 | 2010-08-13 13:36:15 +0200 | [diff] [blame] | 80 | -del X*.* |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 81 | -del test.ok |
Bram Moolenaar | 1135475 | 2013-06-09 17:52:46 +0200 | [diff] [blame] | 82 | -rd /s /q Xfind |
Bram Moolenaar | 9c03978 | 2007-08-14 15:55:42 +0000 | [diff] [blame] | 83 | -if exist viminfo del viminfo |
Bram Moolenaar | 6949eea | 2013-06-16 16:57:46 +0200 | [diff] [blame^] | 84 | |
| 85 | nolog: |
| 86 | -del test.log |