[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/forth-mode 9f885433e1 048/153: Use ERT for some light test
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/forth-mode 9f885433e1 048/153: Use ERT for some light testing as part of build. |
Date: |
Sat, 29 Jan 2022 08:02:15 -0500 (EST) |
branch: elpa/forth-mode
commit 9f885433e1927d8b4e64188fef4d178d04fb7ab2
Author: Lars Brinkhoff <lars@nocrew.org>
Commit: Lars Brinkhoff <lars@nocrew.org>
Use ERT for some light testing as part of build.
---
build.el | 19 +++++++++++++++++--
1 file changed, 17 insertions(+), 2 deletions(-)
diff --git a/build.el b/build.el
index 58fda880f7..ca2fded45e 100644
--- a/build.el
+++ b/build.el
@@ -1,7 +1,22 @@
(princ (emacs-version))
+
(let ((generated-autoload-file (concat default-directory "autoloads.el")))
(update-directory-autoloads "."))
(load-file "autoloads.el")
(add-to-list 'load-path ".")
-(let ((result (byte-recompile-directory "." 0)))
- (kill-emacs (if (string-match "failed" result) 1 0)))
+
+(require 'ert)
+(ert-deftest compile-package ()
+ "Compile package."
+ (should-not (string-match "failed" (byte-recompile-directory "." 0))))
+
+(ert-deftest load-forth-mode ()
+ "Load forth-mode."
+ (should (require 'forth-mode))
+ (should (featurep 'forth-mode))
+ (with-temp-buffer
+ (forth-mode)
+ (should (eq major-mode 'forth-mode))
+ (kill-buffer)))
+
+(ert-run-tests-batch-and-exit)
- [nongnu] elpa/forth-mode 6fac263222 068/153: Automatic build with Wercker., (continued)
- [nongnu] elpa/forth-mode 6fac263222 068/153: Automatic build with Wercker., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 9cf3d777ec 064/153: Fix for C-c C-s forth-see., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode d90c4a46e0 118/153: Use funny characters (→, ¹ and ²) to mark positions in test strings., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode c99ed046df 074/153: Remove debug message., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 64209f501c 108/153: Merge pull request #35 from ellerh/forward-sexp-tests, ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode e6ee5ddf99 069/153: Handle ( ...) comments with syntax-propertize-function, ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode e966275c2e 100/153: Add tests for indentation, ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode dc3f7fabed 131/153: Use -y with apt-get., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode f531a1bcd7 096/153: Print test name in ERT shim., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 38d5152011 153/153: Version 0.2., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 9f885433e1 048/153: Use ERT for some light testing as part of build.,
ELPA Syncer <=
- [nongnu] elpa/forth-mode b9586a57a5 147/153: Add menu, ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode fdc218c6f2 052/153: Don't get Makefile variable EMACS from environment; it may be set to 't'., ELPA Syncer, 2022/01/29