[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ssh-deploy f462007 105/133: More work on directory diff
From: |
Stefan Monnier |
Subject: |
[elpa] externals/ssh-deploy f462007 105/133: More work on directory difference unit test |
Date: |
Sat, 27 Mar 2021 14:48:53 -0400 (EDT) |
branch: externals/ssh-deploy
commit f46200705c06bc9e43cdce691c077fa75609805d
Author: Christian Johansson <christian@cvj.se>
Commit: Christian Johansson <christian@cvj.se>
More work on directory difference unit test
---
ssh-deploy-test.el | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/ssh-deploy-test.el b/ssh-deploy-test.el
index a1a8a49..2c15cef 100644
--- a/ssh-deploy-test.el
+++ b/ssh-deploy-test.el
@@ -406,10 +406,27 @@
;; Verify that both files have equal contents
(should (equal t (ediff-same-file-contents file-a-2 file-b-2)))
+ ;; Both files should equal
(should (equal
(ssh-deploy--diff-directories-data directory-a directory-b
ssh-deploy-exclude-list)
(list directory-a directory-b ssh-deploy-exclude-list (list
file-1-filename file-2-filename) nil nil (list file-1-filename file-2-filename)
nil)))
+ ;; Create file 1
+ (find-file file-b-1)
+ (insert file-a-1-contents)
+ (save-buffer) ;; NOTE Should trigger upload action
+ (when (> async 0)
+ (sleep-for 1))
+ (kill-buffer)
+
+ ;; Verify that both files have equal contents
+ (should (equal nil (ediff-same-file-contents file-a-1 file-b-1)))
+
+ ;; Both files should equal
+ (should (equal
+ (ssh-deploy--diff-directories-data directory-a directory-b
ssh-deploy-exclude-list)
+ (list directory-a directory-b ssh-deploy-exclude-list (list
file-1-filename file-2-filename) nil nil (list file-1-filename) nil (list
file-2-filename))))
+
;; Delete test files
(delete-file file-b-2)
(delete-file file-b-1)
@@ -438,6 +455,7 @@
(defun ssh-deploy-test ()
"Run test for plug-in."
(require 'ssh-deploy)
+
(let ((ssh-deploy-verbose 1)
(ssh-deploy-debug 1)
;; (debug-on-error t)
- [elpa] externals/ssh-deploy 85a7c37 080/133: Added unit tests for asynchronous operations, (continued)
- [elpa] externals/ssh-deploy 85a7c37 080/133: Added unit tests for asynchronous operations, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 6ddb12b 090/133: All unit tests for remote changes sync and async and compilation passing, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 8e2507b 085/133: Refactored remote changes function and made unit tests for it, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 8c26f61 091/133: Updated version and change-date, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 6d20dae 109/133: Fixed issue were async directory diff would lock main thread for resolving file links when using the handler, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 9c73fef 110/133: Added support for asynchronous file difference check, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 045e463 095/133: Trying emacs version manager in travis, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 438c1b4 107/133: Do not allow failures on emacs snapshot, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 24fec85 096/133: Added Travis build status to README, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 316395c 089/133: Updated version and date, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy f462007 105/133: More work on directory difference unit test,
Stefan Monnier <=
- [elpa] externals/ssh-deploy 2f6a36e 101/133: Improved instructions for hydra and use-package, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 567e1d5 120/133: Work on feature to automatically update revisions, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 2c43901 112/133: Using ssh-deploy--diff-files instead of directly ediff-same-file-contents, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy aa93c35 123/133: Concatenation of remote file now done properly for directory diff, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 009e9f8 113/133: Added mode-line status for checking file difference, Stefan Monnier, 2021/03/27
- [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