aboutsummaryrefslogtreecommitdiffstats
path: root/test/lisp/shadowfile-tests.el (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Use lexical-binding in most remaining testsStefan Kangas2020-05-011-10/+10
| | | | | | | | | | | | | | | | | | | | | | | | | * test/lisp/comint-tests.el: * test/lisp/custom-resources/custom--test-theme.el: * test/lisp/dabbrev-tests.el: * test/lisp/emulation/viper-tests.el: * test/lisp/erc/erc-track-tests.el: * test/lisp/gnus/gnus-tests.el: * test/lisp/imenu-tests.el: * test/lisp/info-xref-tests.el: * test/lisp/jit-lock-tests.el: * test/lisp/json-tests.el: * test/lisp/man-tests.el: * test/lisp/replace-tests.el: * test/lisp/shadowfile-tests.el: * test/lisp/subr-tests.el: * test/lisp/thingatpt-tests.el: * test/lisp/xml-tests.el: Use lexical-binding. * test/lisp/man-tests.el (man-tests-filter-strings): * test/lisp/shadowfile-tests.el (shadow-test00-clusters) (shadow-test01-sites, shadow-test06-literal-groups) (shadow-test07-regexp-groups, shadow-test09-shadow-copy-files): Silence byte-compiler.
* Minor cleanup in {autorevert,filenotify,shadowfile}-tests.elMichael Albinus2020-01-221-1/+0
| | | | | | | | * test/lisp/autorevert-tests.el (tramp-message-show-message): * test/lisp/shadowfile-tests.el (tramp-message-show-message): * test/lisp/filenotify-tests.el (tramp-message-show-message) Do Not set. (file-notify-test04-autorevert): Inhibit messages.
* Update copyright year to 2020Paul Eggert2020-01-011-1/+1
| | | | Run "TZ=UTC0 admin/update-copyright $(git ls-files)".
* Fix typo in last commitMichael Albinus2019-10-031-1/+1
|
* Further adaptions for shadowfile-tests.elMichael Albinus2019-10-031-10/+15
| | | | | | | * test/lisp/shadowfile-tests.el: Change some traces. (shadow-test-remote-temporary-file-directory): Adapt also remote home directory. (shadow--tests-cleanup): Cleanup Tramp.
* ; Add traces to shadowfile-tests.elMichael Albinus2019-09-261-0/+8
|
* ; Enable traces for shadowfile-tests on hydraMichael Albinus2019-09-231-1/+1
|
* ; Disable traces in shadowfile-testsMichael Albinus2019-09-161-1/+1
|
* Use also truname of temporary-file-directory in shadowfile-tests.elMichael Albinus2019-09-151-5/+6
| | | | | | | | * test/lisp/shadowfile-tests.el (top): Use truename of `temporary-file-directory' and `shadow-test-remote-temporary-file-directory'. (Bug#37202) (shadow-test08-shadow-todo, shadow-test09-shadow-copy-files): Do not bind `shadow-test-remote-temporary-file-directory'.
* Fix Bug#37202Michael Albinus2019-09-081-0/+4
| | | | | | * test/lisp/shadowfile-tests.el (shadow-test08-shadow-todo) (shadow-test09-shadow-copy-files): Use truename of `shadow-test-remote-temporary-file-directory'. (Bug#37202)
* Add traces in shadowfileMichael Albinus2019-09-071-24/+31
| | | | | | | * lisp/shadowfile.el (shadow-add-to-todo) (shadow-remove-from-todo, shadow-save-todo-file): * test/lisp/shadowfile-tests.el (shadow-test08-shadow-todo): Add traces.
* Further work on Bug#37202Michael Albinus2019-09-041-22/+41
| | | | | | | | | * test/lisp/shadowfile-tests.el (shadow-debug): Set to t. (shadow--tests-cleanup): Simplify. (shadow-test*): Call `shadow-initialize'. (shadow-test08-shadow-todo, shadow-test09-shadow-copy-files): In cleanup, kill buffers used for test. (top): Do not initialize.
* Fix Bug#37202Michael Albinus2019-09-031-96/+90
| | | | | | | | | | | * lisp/shadowfile.el (shadow-debug): New defvar. (shadow-read-files): Suppress error if there's no TODO file. * test/lisp/shadowfile-tests.el (shadow-debug): Set to nil. (shadow--tests-cleanup): New defun. Apply to all tests. (Bug#37202) (shadow-test06-literal-groups): Cleanup temp buffer. (shadow-test08-shadow-todo): Add debug messages. (top): Cleanup initially.
* Update copyright year to 2019Paul Eggert2019-01-011-1/+1
| | | | Run 'TZ=UTC0 admin/update-copyright $(git ls-files)'.
* Backport fix for Bug#32226Michael Albinus2018-08-121-16/+30
| | | | | | | | | | | * test/lisp/shadowfile-tests.el: Set Tramp variables for hydra. (shadow-test06-literal-groups, shadow-test07-regexp-groups) (shadow-test08-shadow-todo, shadow-test09-shadow-copy-files): Use `set-visited-file-name' instead of setting the value in `buffer-file-name' directly. (shadow-test08-shadow-todo, shadow-test09-shadow-copy-files): Test for writable temporary directory. Suppress errors in cleanup. (Bug#32226)
* File Shadowing is not available on MS WindowsMichael Albinus2018-07-251-1/+23
| | | | | | | | | | | | | * doc/emacs/files.texi (File Shadowing): File Shadowing is not available on MS Windows. * test/lisp/shadowfile-tests.el (shadow-test00-clusters) (shadow-test01-sites, shadow-test02-files) (shadow-test03-expand-cluster-in-file-name) (shadow-test04-contract-file-name, shadow-test05-file-match) (shadow-test06-literal-groups, shadow-test07-regexp-groups) (shadow-test08-shadow-todo, shadow-test09-shadow-copy-files): Skip under MS Windows.
* Fix Bug#32226Michael Albinus2018-07-211-0/+8
| | | | | | | | | * lisp/shadowfile.el (shadow-site-name, shadow-name-site): Use "[-.[:word:]]+" as hostname regexp. (Bug#32226) * test/lisp/shadowfile-tests.el (shadow-test06-literal-groups) (shadow-test07-regexp-groups, shadow-test08-shadow-todo) (shadow-test09-shadow-copy-files): Skip if needed.
* Adapt shadowfile.el for Tramp (Bug#4526, Bug#4846)Michael Albinus2018-07-181-0/+876
* etc/NEWS: Mention changes in shadowfile.el. * lisp/shadowfile.el (top): Require 'tramp instead of 'ange-ftp. (shadow-cluster): New defstruct. (shadow-make-cluster, shadow-cluster-name, shadow-cluster-primary) (shadow-cluster-regexp, shadow-get-user) (shadow-parse-fullname): Remove. (shadow-info-file, shadow-todo-file, shadow-system-name) (shadow-homedir, shadow-regexp-superquote, shadow-suffix) (shadow-set-cluster, shadow-get-cluster, shadow-site-name) (shadow-name-site, shadow-site-primary, shadow-site-cluster) (shadow-read-site, shadow-parse-name, shadow-make-fullname) (shadow-replace-name-component, shadow-local-file) (shadow-expand-cluster-in-file-name, shadow-contract-file-name) (shadow-same-site, shadow-file-match, shadow-define-cluster) (shadow-define-literal-group, shadow-define-regexp-group) (shadow-make-group, shadow-shadows-of-1, shadow-read-files) (shadow-write-info-file, shadow-write-todo-file) (shadow-initialize): Adapt variables and functions. * test/lisp/shadowfile-tests.el: New file.