Skip to content

Commit 9c09ebd

Browse files
committed
Load cask files in make test
1 parent 0d2c807 commit 9c09ebd

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Makefile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,11 @@ dev:
5252
# command.
5353
test: clean all
5454
touch tests/project/1/.git
55-
$(EMACS) -Q -batch -l lisp/php-mode-autoloads.el \
56-
-l tests/php-mode-test.el -f ert-run-tests-batch-and-exit
55+
$(EMACS) -Q -batch -L lisp/ --eval \
56+
"(let ((default-directory (expand-file-name \".cask\" default-directory))) \
57+
(require 'package) \
58+
(normal-top-level-add-subdirs-to-load-path))" \
59+
-f package-initialize \
60+
-l tests/php-mode-test.el -f ert-run-tests-batch-and-exit
5761

5862
.PHONY: all authors autoloads clean test

0 commit comments

Comments
 (0)