Mercurial > vim
comparison src/Makefile @ 13636:fbf8c75c118d v8.0.1690
patch 8.0.1690: not easy to run one test with gvim instead of vim
commit https://github.com/vim/vim/commit/8dd1761e69d70bb4b5848dc4c213792d9121787a
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Apr 10 19:24:04 2018 +0200
patch 8.0.1690: not easy to run one test with gvim instead of vim
Problem: Not easy to run one test with gvim instead of vim.
Solution: Add VIMTESTTARGET in Makefile.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 10 Apr 2018 19:30:08 +0200 |
parents | 2678e38e1de6 |
children | bc28260e2a2e |
comparison
equal
deleted
inserted
replaced
13635:e1b8f629e765 | 13636:fbf8c75c118d |
---|---|
2086 cd testdir; $(MAKE) -f Makefile benchmark VIMPROG=../$(VIMTARGET) SCRIPTSOURCE=../$(SCRIPTSOURCE) | 2086 cd testdir; $(MAKE) -f Makefile benchmark VIMPROG=../$(VIMTARGET) SCRIPTSOURCE=../$(SCRIPTSOURCE) |
2087 | 2087 |
2088 unittesttargets: | 2088 unittesttargets: |
2089 $(MAKE) -f Makefile $(UNITTEST_TARGETS) | 2089 $(MAKE) -f Makefile $(UNITTEST_TARGETS) |
2090 | 2090 |
2091 # Swap these lines to run individual tests with gvim instead of vim. | |
2092 VIMTESTTARGET = $(VIMTARGET) | |
2093 # VIMTESTTARGET = $(GVIMTARGET) | |
2094 | |
2091 # Execute the unittests one by one. | 2095 # Execute the unittests one by one. |
2092 unittest unittests: $(RUN_UNITTESTS) | 2096 unittest unittests: $(RUN_UNITTESTS) |
2093 | 2097 |
2094 run_json_test: $(JSON_TEST_TARGET) | 2098 run_json_test: $(JSON_TEST_TARGET) |
2095 $(VALGRIND) ./$(JSON_TEST_TARGET) || exit 1; echo $* passed; | 2099 $(VALGRIND) ./$(JSON_TEST_TARGET) || exit 1; echo $* passed; |
2113 test52 test59 \ | 2117 test52 test59 \ |
2114 test64 test69 \ | 2118 test64 test69 \ |
2115 test70 test72 \ | 2119 test70 test72 \ |
2116 test85 test86 test87 test88 \ | 2120 test85 test86 test87 test88 \ |
2117 test94 test95 test99 test108: | 2121 test94 test95 test99 test108: |
2118 cd testdir; rm -f $@.out; $(MAKE) -f Makefile $@.out VIMPROG=../$(VIMTARGET) $(GUI_TESTARG) SCRIPTSOURCE=../$(SCRIPTSOURCE) | 2122 cd testdir; rm -f $@.out; $(MAKE) -f Makefile $@.out VIMPROG=../$(VIMTESTTARGET) $(GUI_TESTARG) SCRIPTSOURCE=../$(SCRIPTSOURCE) |
2119 | 2123 |
2120 # Run individual NEW style test. | 2124 # Run individual NEW style test. |
2121 # These do not depend on the executable, compile it when needed. | 2125 # These do not depend on the executable, compile it when needed. |
2122 test_arglist \ | 2126 test_arglist \ |
2123 test_arabic \ | 2127 test_arabic \ |
2310 test_writefile \ | 2314 test_writefile \ |
2311 test_xxd \ | 2315 test_xxd \ |
2312 test_alot_latin \ | 2316 test_alot_latin \ |
2313 test_alot_utf8 \ | 2317 test_alot_utf8 \ |
2314 test_alot: | 2318 test_alot: |
2315 cd testdir; rm -f $@.res test.log messages; $(MAKE) -f Makefile $@.res VIMPROG=../$(VIMTARGET) $(GUI_TESTARG) SCRIPTSOURCE=../$(SCRIPTSOURCE) | 2319 cd testdir; rm -f $@.res test.log messages; $(MAKE) -f Makefile $@.res VIMPROG=../$(VIMTESTTARGET) $(GUI_TESTARG) SCRIPTSOURCE=../$(SCRIPTSOURCE) |
2316 @if test -f testdir/test.log; then \ | 2320 @if test -f testdir/test.log; then \ |
2317 cat testdir/test.log; \ | 2321 cat testdir/test.log; \ |
2318 fi | 2322 fi |
2319 cat testdir/messages | 2323 cat testdir/messages |
2320 | 2324 |
2321 newtests: | 2325 newtests: |
2322 cd testdir; rm -f $@.res test.log messages; $(MAKE) -f Makefile newtestssilent VIMPROG=../$(VIMTARGET) $(GUI_TESTARG) SCRIPTSOURCE=../$(SCRIPTSOURCE) | 2326 cd testdir; rm -f $@.res test.log messages; $(MAKE) -f Makefile newtestssilent VIMPROG=../$(VIMTESTTARGET) $(GUI_TESTARG) SCRIPTSOURCE=../$(SCRIPTSOURCE) |
2323 @if test -f testdir/test.log; then \ | 2327 @if test -f testdir/test.log; then \ |
2324 cat testdir/test.log; \ | 2328 cat testdir/test.log; \ |
2325 fi | 2329 fi |
2326 cat testdir/messages | 2330 cat testdir/messages |
2327 | 2331 |