aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJonas Bernoulli <jonas@bernoul.li>2023-03-13 18:49:40 +0100
committerJonas Bernoulli <jonas@bernoul.li>2023-03-13 18:49:40 +0100
commit9b6ae49dd160fee91a158629ffba62ab25c48665 (patch)
tree1bdcc6f3b1a53286d10ef8214f6c8570edd1e898 /test
parent26a705fffe4c6297cdbd546f2ece942d8b5d8535 (diff)
test: Compile magit-tests.el
Diffstat (limited to 'test')
-rw-r--r--test/Makefile11
-rw-r--r--test/magit-tests.el2
2 files changed, 12 insertions, 1 deletions
diff --git a/test/Makefile b/test/Makefile
index c921c55..439eef0 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -12,3 +12,14 @@ test-interactive:
@$(EMACS) -Q $(LOAD_PATH) --eval "(progn\
(load-file \"$(TOP)test/magit-tests.el\")\
(ert t))"
+
+lisp: magit-tests.elc
+
+%.elc: %.el
+ @printf "Compiling $<\n"
+ @$(BATCH) --eval "(progn\
+ (when (file-exists-p \"$@\")\
+ (delete-file \"$@\"))\
+ (setq with-editor-emacsclient-executable nil)\
+ $$suppress_warnings)" \
+ -f batch-byte-compile $<
diff --git a/test/magit-tests.el b/test/magit-tests.el
index 4a6fbec..7def6ab 100644
--- a/test/magit-tests.el
+++ b/test/magit-tests.el
@@ -278,7 +278,7 @@
(let ((magit-process-find-password-functions
(list (lambda (host) (when (string= host "www.host.com") "mypasswd")))))
(cl-letf (((symbol-function 'process-send-string)
- (lambda (process string) string)))
+ (lambda (_process string) string)))
(should (string-equal (magit-process-password-prompt
nil "Password for 'www.host.com':")
"mypasswd\n")))))