diff options
author | Dan Gudmundsson <[email protected]> | 2017-12-20 10:33:56 +0100 |
---|---|---|
committer | Dan Gudmundsson <[email protected]> | 2018-03-01 13:37:13 +0100 |
commit | aa9054e0ea48a127f2aeafcdce1df4d1aec09574 (patch) | |
tree | 7950c22586d9539ac9451a88f49b00139fe9a457 /lib/tools/emacs/Makefile | |
parent | 31782c3accacafb20bc7efd46004921aea8f9f22 (diff) | |
download | otp-aa9054e0ea48a127f2aeafcdce1df4d1aec09574.tar.gz otp-aa9054e0ea48a127f2aeafcdce1df4d1aec09574.tar.bz2 otp-aa9054e0ea48a127f2aeafcdce1df4d1aec09574.zip |
Add emacs indention testcase
Split the manual testcase and run them in daily tests instead.
Easy to run directly as well:
(cd ../test; cerl -eval "emacs_SUITE:indent([])")
Diffstat (limited to 'lib/tools/emacs/Makefile')
-rw-r--r-- | lib/tools/emacs/Makefile | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/lib/tools/emacs/Makefile b/lib/tools/emacs/Makefile index 35c93ba4ed..ea4d6cb723 100644 --- a/lib/tools/emacs/Makefile +++ b/lib/tools/emacs/Makefile @@ -54,8 +54,6 @@ EL_FILES = $(EMACS_FILES:%=%.el) ELC_FILES = $(EMACS_FILES:%=%.elc) -TEST_FILES = test.erl.indented test.erl.orig - # ---------------------------------------------------- # Targets # ---------------------------------------------------- @@ -75,7 +73,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk release_spec: opt $(INSTALL_DIR) "$(RELSYSDIR)/emacs" - $(INSTALL_DATA) $(EL_FILES) $(README_FILES) $(TEST_FILES) \ + $(INSTALL_DATA) $(EL_FILES) $(README_FILES) \ "$(RELSYSDIR)/emacs" ifeq ($(DOCTYPE),pdf) @@ -89,19 +87,3 @@ release_docs_spec: docs $(INSTALL_DATA) $(MAN_FILES) "$(RELEASE_PATH)/man/man3" endif endif - -EMACS ?= emacs - -test_indentation: - @rm -f test.erl - @rm -f test_indent.el - @echo '(load "erlang-start")' >> test_indent.el - @echo '(find-file "test.erl.orig")' >> test_indent.el - @echo "(require 'cl) ; required with Emacs < 23 for ignore-errors" >> test_indent.el - @echo '(erlang-mode)' >> test_indent.el - @echo '(toggle-debug-on-error)' >> test_indent.el - @echo '(erlang-indent-current-buffer)' >> test_indent.el - @echo '(write-file "test.erl")' >> test_indent.el - $(EMACS) --batch -Q -L . -l test_indent.el - diff -u test.erl.indented test.erl - @echo "No differences between expected and actual indentation" |