[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/git-commit 9b6ae49dd1 11/11: test: Compile magit-tests.el
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/git-commit 9b6ae49dd1 11/11: test: Compile magit-tests.el |
Date: |
Mon, 13 Mar 2023 14:00:25 -0400 (EDT) |
branch: elpa/git-commit
commit 9b6ae49dd160fee91a158629ffba62ab25c48665
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>
test: Compile magit-tests.el
---
Makefile | 3 ++-
test/Makefile | 11 +++++++++++
test/magit-tests.el | 2 +-
3 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
index 537c54ac57..4dfe6cc34b 100644
--- a/Makefile
+++ b/Makefile
@@ -72,6 +72,7 @@ help:
lisp:
@$(MAKE) -C lisp lisp
+ @$(MAKE) -C test lisp
docs:
@$(MAKE) -C docs all
@@ -127,7 +128,7 @@ clean: clean-lisp clean-docs clean-archives
@printf "Cleaning...\n"
@$(RM) *.elc $(ELGS) # temporary cleanup kludge
@$(RM) docs/*.texi~ docs/*.info-1 docs/*.info-2
- @$(RM) magit-pkg.el t/magit-tests.elc
+ @$(RM) magit-pkg.el test/magit-tests.elc
clean-lisp:
@$(MAKE) -C lisp clean
diff --git a/test/Makefile b/test/Makefile
index c921c557fe..439eef051d 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 4a6fbec86c..7def6abe37 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")))))
- [nongnu] elpa/git-commit updated (dec25b407b -> 9b6ae49dd1), ELPA Syncer, 2023/03/13
- [nongnu] elpa/git-commit 2bc6aaf527 02/11: Avoid using called-interactively-p, ELPA Syncer, 2023/03/13
- [nongnu] elpa/git-commit 6b4f7f5811 05/11: Remove magit-section-when, obsolete since v2.90.0, ELPA Syncer, 2023/03/13
- [nongnu] elpa/git-commit df2f6e3f5d 01/11: magit-xref-setup: Limit number of items, ELPA Syncer, 2023/03/13
- [nongnu] elpa/git-commit 5b31ec985f 03/11: Cleanup whitespace, ELPA Syncer, 2023/03/13
- [nongnu] elpa/git-commit a8c92cc35d 06/11: Remove face aliases, obsolete since v2.12.0 and v3.0.0, ELPA Syncer, 2023/03/13
- [nongnu] elpa/git-commit ed8067830f 07/11: Remove variables and functions obsolete since v3.3.0, ELPA Syncer, 2023/03/13
- [nongnu] elpa/git-commit 02f4d3366e 08/11: Remove kludge for unmaintained third-party packages, ELPA Syncer, 2023/03/13
- [nongnu] elpa/git-commit 9b6ae49dd1 11/11: test: Compile magit-tests.el,
ELPA Syncer <=
- [nongnu] elpa/git-commit 9e888be5ac 09/11: Remove magit-obsolete.el, ELPA Syncer, 2023/03/13
- [nongnu] elpa/git-commit 26a705fffe 10/11: test: Stop using removed magit-status-internal alias, ELPA Syncer, 2023/03/13
- [nongnu] elpa/git-commit bc18ba942f 04/11: Remove git-commit-fill-column, obsolete since v2.11.0, ELPA Syncer, 2023/03/13