summaryrefslogtreecommitdiff
path: root/test/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'test/Makefile')
-rw-r--r--test/Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/Makefile b/test/Makefile
new file mode 100644
index 0000000..25c4cdc
--- /dev/null
+++ b/test/Makefile
@@ -0,0 +1,15 @@
+-include ../config.mk
+include ../default.mk
+
+LOAD_PATH += -L $(TOP)test
+
+test: lisp
+ @printf " Testing...\n"
+ @$(EMACS) -Q --batch $(EMACS_ARGS) $(LOAD_PATH) \
+ -l ert -l $(PKG)-test -f ert-run-tests-batch-and-exit
+
+lisp: ../lisp/$(PKG).elc $(PKG)-test.elc
+
+clean:
+ @printf " Cleaning test/*...\n"
+ @rm -rf $(PKG)-test.elc