]> code.delx.au - gnu-emacs-elpa/blob - packages/realgud/test/Makefile.am
Add 'packages/realgud/' from commit 'd811316e6a0f4eeee8a1347f504c196c86baa2cb'
[gnu-emacs-elpa] / packages / realgud / test / Makefile.am
1 include $(top_srcdir)/common.mk
2
3 PHONY=check test all check-elget test-elget help
4 EXTRA_DIST += gcd.py gcd.rb gdb
5
6 #: overall help on running the make targets
7 help:
8 @echo "The main function of this Makefile is to facilitate running tests."
9 @echo
10 @echo "To run all of the tests, use targets \"test\", \"check\" or \"check-short\"."
11 @echo "For example:"
12 @echo
13 @echo " make check"
14 @echo "or:"
15 @echo " make check-short"
16 @echo
17 @echo "The -short target uses a filter written in Ruby to remove extreanous output."
18 @echo
19 @echo "To run a specific test like test-srcbuf.el, change \".el\" to"
20 @echo "\".run\". For example:"
21 @echo
22 @echo " make test-srcbuf.run"
23 @echo
24 @echo "Tests can also be run via the Emacs el-get package and this loads dependent emacs "
25 @echo "package, like load-relative. To do this, use targets, \"check-elget\","
26 @echo "\"test-elget\", or \"check-short-elget\"."
27 @echo
28 @echo "To run a specific test like test-srcbuf.el via el-get change \".el\""
29 @echo "to \".elrun\" For example:"
30 @echo
31 @echo " make test-srcbuf.elrun"
32
33
34 #: same thing as "check"
35 test: check
36
37 #: same thing as "check-elget"
38 test-elget: check-elget
39
40 test_files := $(wildcard test-*.el)
41
42 CHECK_FILES = $(notdir $(test_files:.el=.run))
43 EL_GET_CHECK_FILES = $(notdir $(test_files:.el=.elrun))
44
45 #: Run all tests
46 check: $(CHECK_FILES)
47
48 #: Run all tests via el-get
49 check-elget: $(EL_GET_CHECK_FILES)
50
51 #: Run all tests with minimum verbosity
52 check-short:
53 $(MAKE) check 2>&1 | ruby ../make-check-filter.rb
54
55 #: Run all tests with minimum verbosity via el-get
56 check-short-elget:
57 $(MAKE) check-elget 2>&1 | ruby ../make-check-filter.rb
58
59 test-%.run:
60 (cd $(top_srcdir)/test && $(EMACS) --batch --no-site-file --no-splash --load $(@:.run=.el))
61
62 #: Run tests using el-get to specify external Lisp dependencies
63 test-%.elrun:
64 (cd $(top_srcdir)/test && $(EMACS) --batch --no-site-file --no-splash --load ../el-get-install.el --load $(@:.elrun=.el))
65
66 # Whatever it is you want to do, it should be forwarded to the
67 # to top-level directories
68 # %:
69 # $(MAKE) -C .. $@