Mercurial > vim
comparison src/testdir/Makefile @ 9137:8b2d6447fb6a v7.4.1852
commit https://github.com/vim/vim/commit/af6c12c27bcb553b2fb2c8a9dcfde626fb3670fe
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat May 28 13:40:10 2016 +0200
patch 7.4.1852
Problem: Unix: Cannot run all tests with the GUI.
Solution: Add the "testgui" target.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 28 May 2016 13:45:06 +0200 |
parents | 1b6a589a0efc |
children | 219dbe63ad2a |
comparison
equal
deleted
inserted
replaced
9136:cbb3ab11ff10 | 9137:8b2d6447fb6a |
---|---|
10 | 10 |
11 # Uncomment this line to use valgrind for memory leaks and extra warnings. | 11 # Uncomment this line to use valgrind for memory leaks and extra warnings. |
12 # The output goes into a file "valgrind.testN" | 12 # The output goes into a file "valgrind.testN" |
13 # Vim should be compiled with EXITFREE to avoid false warnings. | 13 # Vim should be compiled with EXITFREE to avoid false warnings. |
14 # This will make testing about 10 times as slow. | 14 # This will make testing about 10 times as slow. |
15 # VALGRIND = valgrind --tool=memcheck --leak-check=yes --num-callers=15 --log-file=valgrind.$* | 15 # VALGRIND = valgrind --tool=memcheck --leak-check=yes --num-callers=25 --log-file=valgrind.$* |
16 | 16 |
17 default: nongui | 17 default: nongui |
18 | 18 |
19 # The list of tests is common to all systems. | 19 # The list of tests is common to all systems. |
20 # This defines NEW_TESTS, SCRIPTS_ALL, SCRIPTS_MORE* and SCRIPTS_GUI. | 20 # This defines NEW_TESTS, SCRIPTS_ALL, SCRIPTS_MORE* and SCRIPTS_GUI. |
50 # Must run test1 first to create small.vim. | 50 # Must run test1 first to create small.vim. |
51 $(SCRIPTS) $(SCRIPTS_GUI) $(NEW_TESTS): $(SCRIPTS_FIRST) | 51 $(SCRIPTS) $(SCRIPTS_GUI) $(NEW_TESTS): $(SCRIPTS_FIRST) |
52 | 52 |
53 RM_ON_RUN = test.out X* viminfo | 53 RM_ON_RUN = test.out X* viminfo |
54 RM_ON_START = tiny.vim small.vim mbyte.vim mzscheme.vim lua.vim test.ok benchmark.out | 54 RM_ON_START = tiny.vim small.vim mbyte.vim mzscheme.vim lua.vim test.ok benchmark.out |
55 RUN_VIM = VIMRUNTIME=$(SCRIPTSOURCE); export VIMRUNTIME; $(VALGRIND) $(VIMPROG) -f -u unix.vim $(NO_PLUGIN) -s dotest.in | 55 RUN_VIM = VIMRUNTIME=$(SCRIPTSOURCE); export VIMRUNTIME; $(VALGRIND) $(VIMPROG) -f $(GUI_FLAG) -u unix.vim $(NO_PLUGIN) -s dotest.in |
56 | 56 |
57 clean: | 57 clean: |
58 -rm -rf *.out *.failed *.res *.rej *.orig test.log messages $(RM_ON_RUN) $(RM_ON_START) valgrind.* | 58 -rm -rf *.out *.failed *.res *.rej *.orig test.log messages $(RM_ON_RUN) $(RM_ON_START) valgrind.* |
59 | 59 |
60 test1.out: test1.in | 60 test1.out: test1.in |
116 | 116 |
117 | 117 |
118 # New style of tests uses Vim script with assert calls. These are easier | 118 # New style of tests uses Vim script with assert calls. These are easier |
119 # to write and a lot easier to read and debug. | 119 # to write and a lot easier to read and debug. |
120 # Limitation: Only works with the +eval feature. | 120 # Limitation: Only works with the +eval feature. |
121 RUN_VIMTEST = VIMRUNTIME=$(SCRIPTSOURCE); export VIMRUNTIME; $(VALGRIND) $(VIMPROG) -f -u unix.vim $(NO_PLUGIN) | 121 RUN_VIMTEST = VIMRUNTIME=$(SCRIPTSOURCE); export VIMRUNTIME; $(VALGRIND) $(VIMPROG) -f $(GUI_FLAG) -u unix.vim $(NO_PLUGIN) |
122 | 122 |
123 newtests: newtestssilent | 123 newtests: newtestssilent |
124 @/bin/sh -c "if test -f messages && grep -q 'FAILED' messages; then cat messages && cat test.log; fi" | 124 @/bin/sh -c "if test -f messages && grep -q 'FAILED' messages; then cat messages && cat test.log; fi" |
125 | 125 |
126 newtestssilent: $(NEW_TESTS) | 126 newtestssilent: $(NEW_TESTS) |