@@ -616,6 +616,27 @@ LINT_OPTIONS = -beprxzF
616616# PROFILE_LIBS = -pg
617617# PROFILE_LIBS = -pg -lc
618618
619+
620+ # TEST COVERAGE - Uncomment the two lines below the explanation to get code
621+ # coverage information. (provided by Yegappan Lakshmanan)
622+ # 1. make clean, run configure and build Vim as usual.
623+ # 2. Generate the baseline code coverage information:
624+ # $ lcov -c -i -b . -d objects -o objects/coverage_base.info
625+ # 3. Run "make test" to run the unit tests. The code coverage information will
626+ # be generated in the src/objects directory.
627+ # 4. Generate the code coverage information from the tests:
628+ # $ lcov -c -b . -d objects/ -o objects/coverage_test.info
629+ # 5. Combine the baseline and test code coverage data:
630+ # $ lcov -a objects/coverage_base.info -a objects/coverage_test.info -o objects/coverage_total.info
631+ # 6. Process the test coverage data and generate a report in html:
632+ # $ genhtml objects/coverage_total.info -o objects
633+ # 7. Open the objects/index.html file in a web browser to view the coverage
634+ # information.
635+ #
636+ # PROFILE_CFLAGS=-g -O0 -fprofile-arcs -ftest-coverage
637+ # LDFLAGS=--coverage
638+
639+
619640# Uncomment one of the next two lines to compile Vim with the
620641# address sanitizer or with the undefined sanitizer. Works with gcc and
621642# clang. May make Vim twice as slow. Errors reported on stderr.
@@ -1905,7 +1926,6 @@ test1 \
19051926 test_autocmd_option \
19061927 test_autoformat_join \
19071928 test_breakindent \
1908- test_cdo \
19091929 test_changelist \
19101930 test_charsearch \
19111931 test_close_count \
@@ -1948,13 +1968,17 @@ test1 \
19481968 cd testdir; rm -f
[email protected] ; $(MAKE) -f Makefile
[email protected] VIMPROG=../$(VIMTARGET) $(GUI_TESTARG) SCRIPTSOURCE=../$(SCRIPTSOURCE)
19491969
19501970test_assert \
1971+ test_cdo \
1972+ test_searchpos \
19511973 test_sort \
19521974 test_undolevels \
19531975 test_alot:
1954- cd testdir; rm -f
[email protected] ; $(MAKE) -f Makefile
[email protected] VIMPROG=../$(VIMTARGET) $(GUI_TESTARG) SCRIPTSOURCE=../$(SCRIPTSOURCE)
1976+ cd testdir; rm -f
[email protected] test.log messages; $(MAKE) -f Makefile
[email protected] VIMPROG=../$(VIMTARGET) $(GUI_TESTARG) SCRIPTSOURCE=../$(SCRIPTSOURCE)
1977+ cat testdir/messages
19551978
19561979newtests :
1957- cd testdir; rm -f $@ .res; $(MAKE ) -f Makefile newtests VIMPROG=../$(VIMTARGET ) $(GUI_TESTARG ) SCRIPTSOURCE=../$(SCRIPTSOURCE )
1980+ cd testdir; rm -f $@ .res test.log messages; $(MAKE ) -f Makefile newtests VIMPROG=../$(VIMTARGET ) $(GUI_TESTARG ) SCRIPTSOURCE=../$(SCRIPTSOURCE )
1981+ cat testdir/messages
19581982
19591983testclean :
19601984 cd testdir; $(MAKE ) -f Makefile clean
@@ -2674,7 +2698,7 @@ objects/if_lua.o: if_lua.c
26742698
26752699objects/if_mzsch.o : if_mzsch.c $(MZSCHEME_EXTRA )
26762700 $(CCC ) -o $@ $(MZSCHEME_CFLAGS_EXTRA ) if_mzsch.c
2677-
2701+
26782702mzscheme_base.c :
26792703 $(MZSCHEME_MZC ) --c-mods mzscheme_base.c ++lib scheme/base
26802704
0 commit comments