branch: scratch/editorconfig
commit 8db3266ae1b33d540fe5f5bc730a03ae5255b3ad
Author: Stefan Monnier <[email protected]>
Commit: Stefan Monnier <[email protected]>
Rename test files to `<foo>-tests.el`
This follows the convention used in Emacs's own test suite and works around
annoying circular `require`s when `ert-tests` happens to be in `load-path`.
Also adjust the Makefile not to get confused by generated files.
* Makefile (SRCS): Filter out ELPA-generated files.
---
Makefile | 2 +-
.../{editorconfig-core-handle.el => editorconfig-core-handle-tests.el} | 0
ert-tests/{editorconfig-core.el => editorconfig-core-tests.el} | 0
ert-tests/{editorconfig-fnmatch.el => editorconfig-fnmatch-tests.el} | 0
ert-tests/{editorconfig.el => editorconfig-tests.el} | 0
5 files changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 963f6de2ed..a4e5338c50 100644
--- a/Makefile
+++ b/Makefile
@@ -14,7 +14,7 @@ ERT_TESTS = $(wildcard $(PROJECT_ROOT_DIR)/ert-tests/*.el)
BATCHFLAGS = -batch -q --no-site-file -L $(PROJECT_ROOT_DIR)
MAIN_SRC = editorconfig.el
-SRCS = $(wildcard $(PROJECT_ROOT_DIR)/*.el)
+SRCS = $(filter-out %-autoloads.el %-pkg.el, $(wildcard
$(PROJECT_ROOT_DIR)/*.el))
OBJS = $(SRCS:.el=.elc)
.PHONY: check-unix check-dos \
diff --git a/ert-tests/editorconfig-core-handle.el
b/ert-tests/editorconfig-core-handle-tests.el
similarity index 100%
rename from ert-tests/editorconfig-core-handle.el
rename to ert-tests/editorconfig-core-handle-tests.el
diff --git a/ert-tests/editorconfig-core.el
b/ert-tests/editorconfig-core-tests.el
similarity index 100%
rename from ert-tests/editorconfig-core.el
rename to ert-tests/editorconfig-core-tests.el
diff --git a/ert-tests/editorconfig-fnmatch.el
b/ert-tests/editorconfig-fnmatch-tests.el
similarity index 100%
rename from ert-tests/editorconfig-fnmatch.el
rename to ert-tests/editorconfig-fnmatch-tests.el
diff --git a/ert-tests/editorconfig.el b/ert-tests/editorconfig-tests.el
similarity index 100%
rename from ert-tests/editorconfig.el
rename to ert-tests/editorconfig-tests.el