From 70a1fb52cc05d89bdd8a28fd9d2fcd5be5b1b99e Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 3 Feb 2017 19:17:09 -0500 Subject: [PATCH] Add unit-test framework & stubs --- Makefile | 5 ++++- test/core/package-management.el | 0 test/{basic-test.el => test-basic.el} | 0 test/test-helper.el | 6 ------ 4 files changed, 4 insertions(+), 7 deletions(-) create mode 100644 test/core/package-management.el rename test/{basic-test.el => test-basic.el} (100%) delete mode 100644 test/test-helper.el diff --git a/Makefile b/Makefile index 0028dcc04..3edcc5d80 100644 --- a/Makefile +++ b/Makefile @@ -27,7 +27,10 @@ clean-elc: @rm -fv init.elc @find {core,modules} -type f -iname '*.elc' -exec rm \-fv {} \; +test: + @$(EMACS) --batch -l test/init.el -f 'doom!run-tests' + init.el: @[ -f init.el ] || $(error No init.el file, please create one or copy init.example.el) -.PHONY: all +.PHONY: all test diff --git a/test/core/package-management.el b/test/core/package-management.el new file mode 100644 index 000000000..e69de29bb diff --git a/test/basic-test.el b/test/test-basic.el similarity index 100% rename from test/basic-test.el rename to test/test-basic.el diff --git a/test/test-helper.el b/test/test-helper.el deleted file mode 100644 index dabc85ec0..000000000 --- a/test/test-helper.el +++ /dev/null @@ -1,6 +0,0 @@ -;;; test-helper.el - -(require 'ert) - -(provide 'test-helper) -;;; test-helper.el ends here