]> code.delx.au - gnu-emacs-elpa/blob - packages/loc-changes/test/Makefile.am
Add 'packages/realgud/' from commit 'd811316e6a0f4eeee8a1347f504c196c86baa2cb'
[gnu-emacs-elpa] / packages / loc-changes / test / Makefile.am
1 include $(top_srcdir)/common.mk
2
3 PHONY=check test all
4 EXTRA_DIST=sample.txt
5
6 all:
7
8 #: same thing as "check"
9 test: check
10
11 #: same thing as "check-elget"
12 test-elget: check-elget
13
14 test_files := $(wildcard test-*.el)
15
16 CHECK_FILES = $(notdir $(test_files:.el=.run))
17 EL_GET_CHECK_FILES = $(notdir $(test_files:.el=.elrun))
18
19 #: Run all tests
20 check: $(CHECK_FILES)
21
22 #: Run all tests via el-get
23 check-elget: $(EL_GET_CHECK_FILES)
24
25 #: Run all tests with minimum verbosity
26 check-short:
27 $(MAKE) check 2>&1 | ruby ../make-check-filter.rb
28
29 #: Run all tests with minimum verbosity via el-get
30 check-short-elget:
31 $(MAKE) check-elget 2>&1 | ruby ../make-check-filter.rb
32
33 test-%.run:
34 (cd $(top_srcdir)/test && $(EMACS) --batch --no-site-file --no-splash --load $(@:.run=.el))
35
36 #: Run tests using el-get to specify external Lisp dependencies
37 test-%.elrun:
38 (cd $(top_srcdir)/test && $(EMACS) --batch --no-site-file --no-splash --load ../el-get-install.el --load $(@:.elrun=.el))
39
40 # Whatever it is you want to do, it should be forwarded to the
41 # to top-level directories
42 # %:
43 # $(MAKE) -C .. $@