1 include $(top_srcdir)/common.mk
3 PHONY=check test all check-elget test-elget help
7 #: same thing as "check"
10 #: overall help on running the make targets
12 @echo "The main function of this Makefile is to facilitate running tests."
14 @echo "To run all of the tests, use targets \"test\", \"check\" or \"check-short\"."
19 @echo " make check-short"
21 @echo "The -short target uses a filter written in Ruby to remove extreanous output."
23 @echo "To run a specific test like test-srcbuf.el, change \".el\" to"
24 @echo "\".run\". For example:"
26 @echo " make test-srcbuf.run"
28 @echo "Tests can also be run via the Emacs el-get package and this loads dependent emacs "
29 @echo "package, like load-relative. To do this, use targets, \"check-elget\","
30 @echo "\"test-elget\", or \"check-short-elget\"."
32 @echo "To run a specific test like test-srcbuf.el via el-get change \".el\""
33 @echo "to \".elrun\" For example:"
35 @echo " make test-srcbuf.elrun"
39 #: same thing as "check-elget"
40 test-elget: check-elget
42 test_files := $(wildcard test-*.el)
44 CHECK_FILES = $(notdir $(test_files:.el=.run))
45 EL_GET_CHECK_FILES = $(notdir $(test_files:.el=.elrun))
50 #: Run all tests via el-get
52 (cd $(top_srcdir)/test && $(EMACS) --batch --no-site-file --no-splash --load ./install-pkgs.el --load test-basic.el)
54 #: Run all tests with minimum verbosity
56 $(MAKE) check 2>&1 | ruby ../make-check-filter.rb
58 #: Run all tests with minimum verbosity via el-get
60 $(MAKE) check-elget 2>&1 | ruby ./make-check-filter.rb
63 (cd $(top_srcdir)/test && $(EMACS) --batch --no-site-file --no-splash --load $(@:.run=.el))
65 #: Run tests using el-get to specify external Lisp dependencies
67 (cd $(top_srcdir)/test && $(EMACS) --batch --no-site-file --no-splash --load ../el-get-install.el --load $(@:.elrun=.el))
69 # Whatever it is you want to do, it should be forwarded to the
70 # to top-level directories