[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ssh-deploy 54f664b 081/133: Added unit tests for async.
From: |
Stefan Monnier |
Subject: |
[elpa] externals/ssh-deploy 54f664b 081/133: Added unit tests for async.el if it's loaded |
Date: |
Sat, 27 Mar 2021 14:48:48 -0400 (EDT) |
branch: externals/ssh-deploy
commit 54f664b0180c8d72662b64ac66688d278d5d3600
Author: Christian Johansson <christian@cvj.se>
Commit: Christian Johansson <christian@cvj.se>
Added unit tests for async.el if it's loaded
---
ssh-deploy-test.el | 22 +++++++++++++++++-----
1 file changed, 17 insertions(+), 5 deletions(-)
diff --git a/ssh-deploy-test.el b/ssh-deploy-test.el
index fd9537d..be2923d 100644
--- a/ssh-deploy-test.el
+++ b/ssh-deploy-test.el
@@ -46,7 +46,7 @@
(autoload 'ssh-deploy-upload-handler "ssh-deploy")
(defun ssh-deploy-test--download (async async-with-threads)
- "Test downloads asynchronously if ASYNC is above zero, with threads if
ASYNC-WITH-THREADS is above zero"
+ "Test downloads asynchronously if ASYNC is above zero, with threads if
ASYNC-WITH-THREADS is above zero."
(let ((directory-a (expand-file-name "test-a/"))
(directory-b (expand-file-name "test-b/")))
@@ -181,7 +181,7 @@
(delete-directory directory-b t)))
(defun ssh-deploy-test--upload (async async-with-threads)
- "Test uploads asynchronously if ASYNC is above zero, with threads if
ASYNC-WITH-THREADS is above zero"
+ "Test uploads asynchronously if ASYNC is above zero, with threads if
ASYNC-WITH-THREADS is above zero."
(let ((directory-a (expand-file-name "test-a/"))
(directory-b (expand-file-name "test-b/")))
@@ -272,14 +272,26 @@
(defun ssh-deploy-test ()
"Run test for plug-in."
+ (if (fboundp 'async-start)
+ (message "Running tests for async.el as well since it's loaded'")
+ (message "Skipping tests for async.el since it's not loaded"))
(ssh-deploy-test--get-revision-path)
(ssh-deploy-test--file-is-in-path)
(ssh-deploy-test--is-not-empty-string)
- (ssh-deploy-test--upload 0 1)
+
+ (ssh-deploy-test--upload 0 0)
+ (when (fboundp 'async-start)
+ (ssh-deploy-test--upload 1 0))
(ssh-deploy-test--upload 1 1)
- (ssh-deploy-test--download 0 1)
+
+ (ssh-deploy-test--download 0 0)
+ (when (fboundp 'async-start)
+ (ssh-deploy-test--download 1 0))
(ssh-deploy-test--download 1 1)
- (ssh-deploy-test--rename-and-delete 0 1)
+
+ (ssh-deploy-test--rename-and-delete 0 0)
+ (when (fboundp 'async-start)
+ (ssh-deploy-test--rename-and-delete 1 0))
(ssh-deploy-test--rename-and-delete 1 1))
(ssh-deploy-test)
- [elpa] externals/ssh-deploy 016444c 122/133: Fixed bug with directory difference from deployment root or piped remote files, (continued)
- [elpa] externals/ssh-deploy 016444c 122/133: Fixed bug with directory difference from deployment root or piped remote files, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy f910a4d 115/133: Passing verbose flag to remote changes handler, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy d924c73 124/133: Merge pull request #60 from ShuguangSun/master, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy a6629c1 130/133: Update ssh-deploy.el, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 1bb2f82 129/133: Added support for forced uploads on explicit save actions, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy cc91b56 132/133: Updated README and version, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy e73907d 063/133: Changed test command, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 4c3eee5 059/133: Fixed issue were checking verbose variable was expecting boolean instead of integer, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy a57ae0c 061/133: Updated use-package example to work with byte-compiled code, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 77f0a1d 070/133: Byte-compilation working for unit test without warning, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 54f664b 081/133: Added unit tests for async.el if it's loaded,
Stefan Monnier <=
- [elpa] externals/ssh-deploy e4d1403 086/133: Added async.el autoload for new change detection and pushed version, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 65d58c3 106/133: Added unit test for directory difference, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 7ad73a4 103/133: Unit test for directory difference passing, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 8f358b1 102/133: Started on unit test for directory differences, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy e2db9c7 117/133: Fixed unit test for directory differences where directories are symbolic, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy ded455b 126/133: More idiomatic code for status updates, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy e10221e 127/133: Using (string-prefix-p) instead of (string-match) for checking if path is in root, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy fce4ea3 133/133: Merge remote-tracking branch 'upstream/ssh-deploy/main' into externals/ssh-deploy, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 5b263c1 045/133: Some changes from ELPA merged, Stefan Monnier, 2021/03/27