[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/objed 1054cd8 03/21: Compile tests like elpa does, and
From: |
Clemens Radermacher |
Subject: |
[elpa] externals/objed 1054cd8 03/21: Compile tests like elpa does, and fix the compile errors in tests |
Date: |
Sun, 17 Mar 2019 15:00:16 -0400 (EDT) |
branch: externals/objed
commit 1054cd893a4c2c6cc93ab6f37aedce014634fa05
Author: Clemens Radermacher <address@hidden>
Commit: Clemens Radermacher <address@hidden>
Compile tests like elpa does, and fix the compile errors in tests
---
Makefile | 2 ++
test/make-compile.el | 6 +++++-
test/make-lint.el | 12 ++++++------
3 files changed, 13 insertions(+), 7 deletions(-)
diff --git a/Makefile b/Makefile
index 605ca19..2bb0651 100644
--- a/Makefile
+++ b/Makefile
@@ -15,5 +15,7 @@ test: compile lint
clean:
rm -f *.elc
+ rm -f test/*.elc
+
.PHONY: update lint compile test clean
diff --git a/test/make-compile.el b/test/make-compile.el
index e7bff0f..72dc831 100644
--- a/test/make-compile.el
+++ b/test/make-compile.el
@@ -4,8 +4,12 @@
(setq byte-compile-error-on-warn t)
(setq byte-compile--use-old-handlers nil)
-
;; compile *.el files
(dolist (file (file-expand-wildcards "*.el"))
(unless (byte-compile-file file)
(kill-emacs 1)))
+
+(let ((default-directory (expand-file-name "test" default-directory)))
+ (dolist (file (file-expand-wildcards "*.el"))
+ (unless (byte-compile-file file)
+ (kill-emacs 1))))
diff --git a/test/make-lint.el b/test/make-lint.el
index b2b362e..d645db8 100644
--- a/test/make-lint.el
+++ b/test/make-lint.el
@@ -18,16 +18,16 @@
;; package lint
+(declare-function address@hidden "ext:package-lint")
+(declare-function package-lint--test-keyseq "ext:package-lint")
+(declare-function package-lint--check-eval-after-load "ext:package-lint")
+(declare-function package-lint-buffer "ext:package-lint")
(when (require 'package-lint nil t)
(define-advice package-lint--get-package-prefix (:override () objed)
"Use objed as prefix for all files."
"objed")
- (define-advice package-lint--check-eval-after-load
- (:override () ignore)
- nil)
- (define-advice package-lint--test-keyseq
- (:override (_) ignore)
- nil)
+ (fset #'package-lint--test-keyseq #'ignore)
+ (fset #'package-lint--check-eval-after-load #'ignore)
(let ((success t))
(dolist (file (file-expand-wildcards "*.el"))
(with-temp-buffer
- [elpa] externals/objed 9689c72 17/21: Reinit after raise, (continued)
- [elpa] externals/objed 9689c72 17/21: Reinit after raise, Clemens Radermacher, 2019/03/17
- [elpa] externals/objed 85941b8 16/21: Add objed-execute command, Clemens Radermacher, 2019/03/17
- [elpa] externals/objed 4bb1b90 12/21: Add url object, Clemens Radermacher, 2019/03/17
- [elpa] externals/objed 7627082 13/21: Don't ignore search errors, error with not other object found msg., Clemens Radermacher, 2019/03/17
- [elpa] externals/objed 998563a 06/21: Remove redundant :group declarations, Clemens Radermacher, 2019/03/17
- [elpa] externals/objed e9bf605 07/21: Refactor objec-replace, Clemens Radermacher, 2019/03/17
- [elpa] externals/objed 85019a8 14/21: Add raise command, Clemens Radermacher, 2019/03/17
- [elpa] externals/objed c9b7c2a 05/21: Fix var not defined for edit-indirect, Clemens Radermacher, 2019/03/17
- [elpa] externals/objed 2274a94 02/21: Add package-lint to linting tests, and fix its errors/warnings, Clemens Radermacher, 2019/03/17
- [elpa] externals/objed 6ea0268 01/21: Buffer switch: Keep objed--object if possible, and update highlight, Clemens Radermacher, 2019/03/17
- [elpa] externals/objed 1054cd8 03/21: Compile tests like elpa does, and fix the compile errors in tests,
Clemens Radermacher <=
- [elpa] externals/objed f5cc1ce 15/21: Remove binding for disfunct objed repeat, Clemens Radermacher, 2019/03/17
- [elpa] externals/objed bb5d097 11/21: Improve file object, Clemens Radermacher, 2019/03/17
- [elpa] externals/objed 96d5bc9 10/21: Add mail object, Clemens Radermacher, 2019/03/17
- [elpa] externals/objed cc6c36f 08/21: Derive package name from current dir, Clemens Radermacher, 2019/03/17
- [elpa] externals/objed be0cd7c 09/21: Fix identifier immediate jumping if used as last command, Clemens Radermacher, 2019/03/17
- [elpa] externals/objed 5a52e13 04/21: Remove load message, Clemens Radermacher, 2019/03/17