branch: elpa/emacsql
commit 7af8d9fb045b5fab7cb464d1a4948461b3a22966
Author: Jonas Bernoulli <[email protected]>
Commit: Jonas Bernoulli <[email protected]>
Rename tests directory to test
For consistency with other packages I maintain.
---
Makefile | 13 +++++++------
{tests => test}/.nosearch | 0
{tests => test}/emacsql-compiler-tests.el | 0
{tests => test}/emacsql-external-tests.el | 0
4 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/Makefile b/Makefile
index 5976e53933a..070a4c21fc1 100644
--- a/Makefile
+++ b/Makefile
@@ -12,8 +12,8 @@ ELS += $(PKG)-psql.el
ELS += $(PKG)-pg.el
ELCS = $(ELS:.el=.elc)
-TEST_ELS = tests/emacsql-compiler-tests.el
-TEST_ELS += tests/emacsql-external-tests.el
+TEST_ELS = test/emacsql-compiler-tests.el
+TEST_ELS += test/emacsql-external-tests.el
TEST_ELCS = $(TEST_ELS:.el=.elc)
DEPS = pg
@@ -22,7 +22,7 @@ DEPS += sqlite3
LOAD_PATH ?= $(addprefix -L ../,$(DEPS))
LOAD_PATH += -L .
-LOAD_PATH += -L ./tests
+LOAD_PATH += -L ./test
ifdef NIX_PATH
export SQLITE3_API_BUILD_COMMAND = nix-shell -p sqlite.dev --run "make all"
@@ -39,6 +39,8 @@ EMACS ?= emacs
EMACS_Q_ARG ?= -Q
EMACS_BATCH ?= $(EMACS) $(EMACS_Q_ARG) --batch $(EMACS_ARGS) $(LOAD_PATH)
+.PHONY: test stats
+
all: lisp
help:
@@ -84,10 +86,10 @@ $(PKG)-autoloads.el: $(ELS)
test: all $(TEST_ELCS)
@printf "Running compiler tests...\n"
@$(EMACS_BATCH) -L tests \
- -l tests/emacsql-compiler-tests.elc -f ert-run-tests-batch-and-exit
+ -l test/emacsql-compiler-tests.elc -f ert-run-tests-batch-and-exit
@printf "Running connector tests...\n"
@$(EMACS_BATCH) -L tests \
- -l tests/emacsql-external-tests.elc -f ert-run-tests-batch-and-exit
+ -l test/emacsql-external-tests.elc -f ert-run-tests-batch-and-exit
ifeq ($(CI), true)
override GITSTATS = ../_gitstats/gitstats
@@ -100,7 +102,6 @@ DOMAIN ?= magit.vc
CFRONT_DIST ?= E2LUHBKU1FBV02
S3_BUCKET ?= s3://$(DOMAIN)
-.PHONY: stats
stats:
@printf "Generating statistics\n"
@$(GITSTATS) $(GITSTATS_ARGS) . $(GITSTATS_DIR)
diff --git a/tests/.nosearch b/test/.nosearch
similarity index 100%
rename from tests/.nosearch
rename to test/.nosearch
diff --git a/tests/emacsql-compiler-tests.el b/test/emacsql-compiler-tests.el
similarity index 100%
rename from tests/emacsql-compiler-tests.el
rename to test/emacsql-compiler-tests.el
diff --git a/tests/emacsql-external-tests.el b/test/emacsql-external-tests.el
similarity index 100%
rename from tests/emacsql-external-tests.el
rename to test/emacsql-external-tests.el