comparison src/Makefile @ 10958:e5896de85dcf v8.0.0368

patch 8.0.0368: not all options are tested with a range of values commit https://github.com/vim/vim/commit/2f5463df014a406a2b780068e341ef30a99c9b98 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Feb 25 20:40:46 2017 +0100 patch 8.0.0368: not all options are tested with a range of values Problem: Not all options are tested with a range of values. Solution: Generate a test script from the source code.
author Christian Brabandt <cb@256bit.org>
date Sat, 25 Feb 2017 20:45:04 +0100
parents 2297aae8e127
children 441ca654f65c
comparison
equal deleted inserted replaced
10957:08a5e8f52a7a 10958:e5896de85dcf
2023 # If everything is alright, the final message will be "ALL DONE". If not you 2023 # If everything is alright, the final message will be "ALL DONE". If not you
2024 # get "TEST FAILURE". 2024 # get "TEST FAILURE".
2025 # 2025 #
2026 scripttests: 2026 scripttests:
2027 $(MAKE) -f Makefile $(VIMTARGET) 2027 $(MAKE) -f Makefile $(VIMTARGET)
2028 $(MAKE) -f Makefile testdir/opt_test.vim
2028 if test -n "$(MAKEMO)" -a -f $(PODIR)/Makefile; then \ 2029 if test -n "$(MAKEMO)" -a -f $(PODIR)/Makefile; then \
2029 cd $(PODIR); $(MAKE) -f Makefile check VIM=../$(VIMTARGET); \ 2030 cd $(PODIR); $(MAKE) -f Makefile check VIM=../$(VIMTARGET); \
2030 fi 2031 fi
2031 -if test $(VIMTARGET) != vim -a ! -r vim; then \ 2032 -if test $(VIMTARGET) != vim -a ! -r vim; then \
2032 ln -s $(VIMTARGET) vim; \ 2033 ln -s $(VIMTARGET) vim; \
2033 fi 2034 fi
2034 cd testdir; $(MAKE) -f Makefile $(GUI_TESTTARGET) VIMPROG=../$(VIMTARGET) $(GUI_TESTARG) SCRIPTSOURCE=../$(SCRIPTSOURCE) 2035 cd testdir; $(MAKE) -f Makefile $(GUI_TESTTARGET) VIMPROG=../$(VIMTARGET) $(GUI_TESTARG) SCRIPTSOURCE=../$(SCRIPTSOURCE)
2035 2036
2037 testdir/opt_test.vim: option.c gen_opt_test.vim
2038 ./$(VIMTARGET) -u gen_opt_test.vim --noplugin --not-a-term
2036 2039
2037 # Run the tests with the GUI. Assumes vim/gvim was already built 2040 # Run the tests with the GUI. Assumes vim/gvim was already built
2038 testgui: 2041 testgui:
2039 cd testdir; $(MAKE) -f Makefile $(GUI_TESTTARGET) VIMPROG=../$(VIMTARGET) GUI_FLAG=-g $(GUI_TESTARG) SCRIPTSOURCE=../$(SCRIPTSOURCE) 2042 cd testdir; $(MAKE) -f Makefile $(GUI_TESTTARGET) VIMPROG=../$(VIMTARGET) GUI_FLAG=-g $(GUI_TESTARG) SCRIPTSOURCE=../$(SCRIPTSOURCE)
2040 2043
2751 # We support common typing mistakes for Juergen! :-) 2754 # We support common typing mistakes for Juergen! :-)
2752 clean celan: testclean 2755 clean celan: testclean
2753 -rm -f *.o objects/* core $(VIMTARGET).core $(VIMTARGET) vim xxd/*.o 2756 -rm -f *.o objects/* core $(VIMTARGET).core $(VIMTARGET) vim xxd/*.o
2754 -rm -f $(TOOLS) auto/osdef.h auto/pathdef.c auto/if_perl.c auto/gui_gtk_gresources.c auto/gui_gtk_gresources.h 2757 -rm -f $(TOOLS) auto/osdef.h auto/pathdef.c auto/if_perl.c auto/gui_gtk_gresources.c auto/gui_gtk_gresources.h
2755 -rm -f conftest* *~ auto/link.sed 2758 -rm -f conftest* *~ auto/link.sed
2759 -rm -f testdir/opt_test.vim
2756 -rm -f $(UNITTEST_TARGETS) 2760 -rm -f $(UNITTEST_TARGETS)
2757 -rm -f runtime pixmaps 2761 -rm -f runtime pixmaps
2758 -rm -rf $(APPDIR) 2762 -rm -rf $(APPDIR)
2759 -rm -rf mzscheme_base.c 2763 -rm -rf mzscheme_base.c
2760 if test -d $(PODIR); then \ 2764 if test -d $(PODIR); then \
2765 # features. 2769 # features.
2766 SHADOWDIR = shadow 2770 SHADOWDIR = shadow
2767 2771
2768 shadow: runtime pixmaps 2772 shadow: runtime pixmaps
2769 mkdir $(SHADOWDIR) 2773 mkdir $(SHADOWDIR)
2770 cd $(SHADOWDIR); ln -s ../*.[chm] ../*.in ../*.sh ../*.xs ../*.xbm ../gui_gtk_res.xml ../toolcheck ../proto ../vimtutor ../gvimtutor ../mkinstalldirs . 2774 cd $(SHADOWDIR); ln -s ../*.[chm] ../*.in ../*.vim ../*.sh ../*.xs ../*.xbm ../gui_gtk_res.xml ../toolcheck ../proto ../vimtutor ../gvimtutor ../mkinstalldirs .
2771 mkdir $(SHADOWDIR)/auto 2775 mkdir $(SHADOWDIR)/auto
2772 cd $(SHADOWDIR)/auto; ln -s ../../auto/configure . 2776 cd $(SHADOWDIR)/auto; ln -s ../../auto/configure .
2773 mkdir $(SHADOWDIR)/po 2777 mkdir $(SHADOWDIR)/po
2774 cd $(SHADOWDIR)/po; ln -s ../../po/*.po ../../po/*.mak ../../po/*.vim ../../po/Makefile . 2778 cd $(SHADOWDIR)/po; ln -s ../../po/*.po ../../po/*.mak ../../po/*.vim ../../po/Makefile .
2775 cd $(SHADOWDIR); rm -f auto/link.sed 2779 cd $(SHADOWDIR); rm -f auto/link.sed