aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Gutov2015-03-10 02:39:01 +0200
committerDmitry Gutov2015-03-10 02:39:01 +0200
commitb20113f0f72a20a6c7eb8bfeef4d64633ed7a80c (patch)
tree3dc2ad411188a8877887c94a1ac1f7bb9fe9bfd9
parentcd0ad72129c319525b5f589d23b7908ed0726cea (diff)
downloademacs-b20113f0f72a20a6c7eb8bfeef4d64633ed7a80c.tar.gz
emacs-b20113f0f72a20a6c7eb8bfeef4d64633ed7a80c.zip
Automate 'make all' in test/indent
-rw-r--r--test/ChangeLog6
-rw-r--r--test/indent/Makefile7
2 files changed, 10 insertions, 3 deletions
diff --git a/test/ChangeLog b/test/ChangeLog
index 876b9462611..e51dddc05f1 100644
--- a/test/ChangeLog
+++ b/test/ChangeLog
@@ -1,3 +1,9 @@
12015-03-09 Dmitry Gutov <dgutov@yandex.ru>
2
3 * indent/Makefile: Call 'rm' with '-f'. Default EMACS to
4 '../../src/emacs'. Remove *.new in 'clean'. Set 'all' target to
5 run all examples.
6
12015-03-09 Nicolas Petton <nicolas@petton.fr> 72015-03-09 Nicolas Petton <nicolas@petton.fr>
2 8
3 * automated/seq-tests.el (test-seq-into): Add a test for seq-into. 9 * automated/seq-tests.el (test-seq-into): Add a test for seq-into.
diff --git a/test/indent/Makefile b/test/indent/Makefile
index 9e75f3dad57..83162681d72 100644
--- a/test/indent/Makefile
+++ b/test/indent/Makefile
@@ -1,14 +1,15 @@
1RM=rm 1RM=rm
2EMACS=emacs 2EMACS=../../src/emacs
3
4all: clean $(addsuffix .test,$(wildcard *.*))
3 5
4clean: 6clean:
5 -$(RM) *.test 7 -$(RM) -f *.new
6 8
7# TODO: 9# TODO:
8# - mark the places where the indentation is known to be incorrect, 10# - mark the places where the indentation is known to be incorrect,
9# and allow either ignoring those errors or not. 11# and allow either ignoring those errors or not.
10%.test: % 12%.test: %
11 -$(RM) $<.new
12 $(EMACS) --batch $< \ 13 $(EMACS) --batch $< \
13 --eval '(indent-region (point-min) (point-max) nil)' \ 14 --eval '(indent-region (point-min) (point-max) nil)' \
14 --eval '(write-region (point-min) (point-max) "$<.new")' 15 --eval '(write-region (point-min) (point-max) "$<.new")'