Skip to content

Commit ae439f4

Browse files
committed
Make "make test" work without depending on eask.
1 parent 2215140 commit ae439f4

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

csharp-mode-tests.el

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,22 @@
2323
(require 'csharp-mode)
2424
(require 'package)
2525

26+
;; development only packages, not declared as a package-dependency
27+
;; FIXME: loading a .el file from `load-path' should not change user's settings
28+
;; like that. It can happen without the user explicitly requesting it!
29+
(package-initialize)
30+
(add-to-list 'package-archives '("melpa" . "https://stable.melpa.org/packages/"))
31+
32+
;; required to resolve SEQ (or anything on elpa) on Emacs25.
33+
(setq package-check-signature nil)
34+
35+
;; assess depends on dash 2.12.1, which is no longer available
36+
;; installing dash, resolves 2.13.0, and fixes this broken dependency.
37+
(dolist (p '(dash assess))
38+
(when (not (package-installed-p p))
39+
(package-refresh-contents)
40+
(package-install p)))
41+
2642
;;; test-helper functions
2743

2844
(defmacro assess-face-in-text= (testee &rest assessments)

makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ build: package
1313

1414
test:
1515
@echo "Testing..."
16-
$(EASK) install --dev
17-
$(EASK) test ert csharp-mode-tests.el
16+
$(EMACS) -Q -batch -L . -l csharp-mode-tests.el -f ert-run-tests-batch-and-exit
1817

1918
clean:
2019
$(EASK) clean-elc

0 commit comments

Comments
 (0)