Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1 | # |
| 2 | # Makefile to run al tests for Vim |
| 3 | # |
| 4 | |
| 5 | VIMPROG = ../vim |
| 6 | |
| 7 | SCRIPTS = test1.out test2.out test3.out test4.out test5.out test6.out \ |
| 8 | test7.out test8.out test9.out test10.out test11.out \ |
| 9 | test12.out test13.out test14.out test15.out test17.out \ |
| 10 | test18.out test19.out test20.out test21.out test22.out \ |
| 11 | test23.out test24.out test25.out test26.out test27.out \ |
| 12 | test28.out test29.out test30.out test31.out test32.out \ |
| 13 | test33.out test34.out test35.out test36.out test37.out \ |
| 14 | test38.out test39.out test40.out test41.out test42.out \ |
| 15 | test43.out test44.out test45.out test46.out test47.out \ |
Bram Moolenaar | b5bf5b8 | 2004-12-24 14:35:23 +0000 | [diff] [blame] | 16 | test48.out test49.out test51.out test52.out test53.out \ |
| 17 | test54.out |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 18 | |
| 19 | SCRIPTS_GUI = test16.out |
| 20 | |
| 21 | .SUFFIXES: .in .out |
| 22 | |
| 23 | nongui: nolog $(SCRIPTS) |
| 24 | @echo |
| 25 | @cat test.log |
| 26 | @echo ALL DONE |
| 27 | |
| 28 | gui: nolog $(SCRIPTS) $(SCRIPTS_GUI) |
| 29 | @echo |
| 30 | @cat test.log |
| 31 | @echo ALL DONE |
| 32 | |
| 33 | $(SCRIPTS) $(SCRIPTS_GUI): $(VIMPROG) |
| 34 | |
| 35 | clean: |
Bram Moolenaar | 89cb5e0 | 2004-07-19 20:55:54 +0000 | [diff] [blame] | 36 | -rm -rf *.out *.failed *.rej *.orig test.log tiny.vim small.vim mbyte.vim test.ok X* viminfo |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 37 | |
| 38 | test1.out: test1.in |
| 39 | -rm -f $*.failed tiny.vim small.vim mbyte.vim test.ok X* viminfo |
| 40 | $(VIMPROG) -u unix.vim -U NONE --noplugin -s dotest.in $*.in |
| 41 | @/bin/sh -c "if diff test.out $*.ok; \ |
| 42 | then mv -f test.out $*.out; \ |
| 43 | else echo; \ |
| 44 | echo test1 FAILED - Something basic is wrong; \ |
| 45 | echo; exit 1; fi" |
| 46 | -rm -rf X* viminfo |
| 47 | |
| 48 | .in.out: |
| 49 | -rm -f $*.failed test.ok X* |
| 50 | cp $*.ok test.ok |
Bram Moolenaar | 47136d7 | 2004-10-12 20:02:24 +0000 | [diff] [blame] | 51 | # Sleep a moment to avoid that the xterm title is messed up |
| 52 | @-sleep .2 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 53 | $(VIMPROG) -u unix.vim -U NONE --noplugin -s dotest.in $*.in |
| 54 | @/bin/sh -c "if diff test.out $*.ok; \ |
| 55 | then mv -f test.out $*.out; \ |
| 56 | else echo $* FAILED >>test.log; mv -f test.out $*.failed; \ |
| 57 | fi" |
| 58 | -rm -rf X* test.ok viminfo |
| 59 | |
| 60 | nolog: |
| 61 | -echo Test results: >test.log |