1 include $(top_srcdir)/common.mk
3 PHONY=check test all check-elget test-elget help
5 #: overall help on running the make targets
7 @echo "The main function of this Makefile is to facilitate running tests."
9 @echo "To run all of the tests, use targets \"test\", \"check\" or \"check-short\"."
14 @echo " make check-short"
16 @echo "The -short target uses a filter written in Ruby to remove extreanous output."
18 @echo "To run a specific test like test-srcbuf.el, change \".el\" to"
19 @echo "\".run\". For example:"
21 @echo " make test-srcbuf.run"
23 @echo "Tests can also be run via the Emacs el-get package and this loads dependent emacs "
24 @echo "package, like load-relative. To do this, use targets, \"check-elget\","
25 @echo "\"test-elget\", or \"check-short-elget\"."
27 @echo "To run a specific test like test-srcbuf.el via el-get change \".el\""
28 @echo "to \".elrun\" For example:"
30 @echo " make test-srcbuf.elrun"
32 #: same thing as "check"
35 test_files := $(wildcard test-*.el)
37 CHECK_FILES = $(notdir $(test_files:.el=.run))
38 EL_GET_CHECK_FILES = $(notdir $(test_files:.el=.elrun))
43 #: Run all tests via el-get
45 (cd $(top_srcdir)/test && $(EMACS) --batch --no-site-file --no-splash --load ./install-pkgs.el --load test-load.el)
46 # Leave out until we can get dependecies worked out
47 # #: Run all tests via el-get
48 #check-elget: $(EL_GET_CHECK_FILES)s
50 #: Run all tests with minimum verbosity
52 $(MAKE) check 2>&1 | ruby ../make-check-filter.rb
54 #: Run all tests with minimum verbosity via el-get
56 $(MAKE) check-elget 2>&1 | ruby ../make-check-filter.rb
59 (cd $(top_srcdir)/test && $(EMACS) --batch --no-site-file --no-splash --load $(@:.run=.el))
61 #: Run tests getting external Lisp dependencies
63 (cd $(top_srcdir)/test && $(EMACS) --batch --no-site-file --no-splash --load ./install-pkgs.el --load $(@:.elrun=.el))
65 # Whatever it is you want to do, it should be forwarded to the
66 # to top-level directories