aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Albinus2018-07-25 17:34:55 +0200
committerMichael Albinus2018-07-25 17:34:55 +0200
commit2585fcb1d722c08d9e4e49b424be03bab288faa0 (patch)
tree0ef7c3423bf7013bef06275a6d812f4114923aff
parent39da592da8f87e0dd488aa093e3e0dfff16cab19 (diff)
downloademacs-2585fcb1d722c08d9e4e49b424be03bab288faa0.tar.gz
emacs-2585fcb1d722c08d9e4e49b424be03bab288faa0.zip
File Shadowing is not available on MS Windows
* 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.
-rw-r--r--doc/emacs/files.texi2
-rw-r--r--test/lisp/shadowfile-tests.el24
2 files changed, 25 insertions, 1 deletions
diff --git a/doc/emacs/files.texi b/doc/emacs/files.texi
index a13a2c5bb0c..e950767c384 100644
--- a/doc/emacs/files.texi
+++ b/doc/emacs/files.texi
@@ -875,6 +875,8 @@ You can answer ``no'' to bypass copying of this file, this time. If
875you want to cancel the shadowing permanently for a certain file, use 875you want to cancel the shadowing permanently for a certain file, use
876@w{@kbd{M-x shadow-cancel}} to eliminate or change the shadow file group. 876@w{@kbd{M-x shadow-cancel}} to eliminate or change the shadow file group.
877 877
878File Shadowing is not available on MS Windows.
879
878@node Time Stamps 880@node Time Stamps
879@subsection Updating Time Stamps Automatically 881@subsection Updating Time Stamps Automatically
880@cindex time stamps 882@cindex time stamps
diff --git a/test/lisp/shadowfile-tests.el b/test/lisp/shadowfile-tests.el
index 200fb4c58c6..f7b14250d7d 100644
--- a/test/lisp/shadowfile-tests.el
+++ b/test/lisp/shadowfile-tests.el
@@ -15,10 +15,22 @@
15;; General Public License for more details. 15;; General Public License for more details.
16;; 16;;
17;; You should have received a copy of the GNU General Public License 17;; You should have received a copy of the GNU General Public License
18;; along with this program. If not, see `http://www.gnu.org/licenses/'. 18;; along with this program. If not, see `https://www.gnu.org/licenses/'.
19 19
20;;; Commentary: 20;;; Commentary:
21 21
22;; Some of the tests require access to a remote host files. Since
23;; this could be problematic, a mock-up connection method "mock" is
24;; used. Emulating a remote connection, it simply calls "sh -i".
25;; Tramp's file name handlers still run, so this test is sufficient
26;; except for connection establishing.
27
28;; If you want to test a real Tramp connection, set
29;; $REMOTE_TEMPORARY_FILE_DIRECTORY to a suitable value in order to
30;; overwrite the default value. If you want to skip tests accessing a
31;; remote host, set this environment variable to "/dev/null" or
32;; whatever is appropriate on your system.
33
22;; A whole test run can be performed calling the command `shadowfile-test-all'. 34;; A whole test run can be performed calling the command `shadowfile-test-all'.
23 35
24;;; Code: 36;;; Code:
@@ -64,6 +76,7 @@
64Per definition, all files are identical on the different hosts of 76Per definition, all files are identical on the different hosts of
65a cluster (or site). This is not tested here; it must be 77a cluster (or site). This is not tested here; it must be
66guaranteed by the originator of a cluster definition." 78guaranteed by the originator of a cluster definition."
79 (skip-unless (not (memq system-type '(windows-nt ms-dos))))
67 (skip-unless (file-remote-p shadow-test-remote-temporary-file-directory)) 80 (skip-unless (file-remote-p shadow-test-remote-temporary-file-directory))
68 81
69 (let ((text-quoting-style 'grave) ;; We inspect the *Messages* buffer! 82 (let ((text-quoting-style 'grave) ;; We inspect the *Messages* buffer!
@@ -187,6 +200,7 @@ guaranteed by the originator of a cluster definition."
187Per definition, all files are identical on the different hosts of 200Per definition, all files are identical on the different hosts of
188a cluster (or site). This is not tested here; it must be 201a cluster (or site). This is not tested here; it must be
189guaranteed by the originator of a cluster definition." 202guaranteed by the originator of a cluster definition."
203 (skip-unless (not (memq system-type '(windows-nt ms-dos))))
190 (skip-unless (file-remote-p shadow-test-remote-temporary-file-directory)) 204 (skip-unless (file-remote-p shadow-test-remote-temporary-file-directory))
191 205
192 (let ((shadow-info-file shadow-test-info-file) 206 (let ((shadow-info-file shadow-test-info-file)
@@ -293,6 +307,7 @@ guaranteed by the originator of a cluster definition."
293 307
294(ert-deftest shadow-test02-files () 308(ert-deftest shadow-test02-files ()
295 "Check file manipulation functions." 309 "Check file manipulation functions."
310 (skip-unless (not (memq system-type '(windows-nt ms-dos))))
296 (skip-unless (file-remote-p shadow-test-remote-temporary-file-directory)) 311 (skip-unless (file-remote-p shadow-test-remote-temporary-file-directory))
297 312
298 (let ((shadow-info-file shadow-test-info-file) 313 (let ((shadow-info-file shadow-test-info-file)
@@ -368,6 +383,7 @@ guaranteed by the originator of a cluster definition."
368 383
369(ert-deftest shadow-test03-expand-cluster-in-file-name () 384(ert-deftest shadow-test03-expand-cluster-in-file-name ()
370 "Check canonical file name of a cluster or site." 385 "Check canonical file name of a cluster or site."
386 (skip-unless (not (memq system-type '(windows-nt ms-dos))))
371 (skip-unless (file-remote-p shadow-test-remote-temporary-file-directory)) 387 (skip-unless (file-remote-p shadow-test-remote-temporary-file-directory))
372 388
373 (let ((shadow-info-file shadow-test-info-file) 389 (let ((shadow-info-file shadow-test-info-file)
@@ -438,6 +454,7 @@ guaranteed by the originator of a cluster definition."
438 454
439(ert-deftest shadow-test04-contract-file-name () 455(ert-deftest shadow-test04-contract-file-name ()
440 "Check canonical file name of a cluster or site." 456 "Check canonical file name of a cluster or site."
457 (skip-unless (not (memq system-type '(windows-nt ms-dos))))
441 (skip-unless (file-remote-p shadow-test-remote-temporary-file-directory)) 458 (skip-unless (file-remote-p shadow-test-remote-temporary-file-directory))
442 459
443 (let ((shadow-info-file shadow-test-info-file) 460 (let ((shadow-info-file shadow-test-info-file)
@@ -498,6 +515,7 @@ guaranteed by the originator of a cluster definition."
498 515
499(ert-deftest shadow-test05-file-match () 516(ert-deftest shadow-test05-file-match ()
500 "Check `shadow-same-site' and `shadow-file-match'." 517 "Check `shadow-same-site' and `shadow-file-match'."
518 (skip-unless (not (memq system-type '(windows-nt ms-dos))))
501 (skip-unless (file-remote-p shadow-test-remote-temporary-file-directory)) 519 (skip-unless (file-remote-p shadow-test-remote-temporary-file-directory))
502 520
503 (let ((shadow-info-file shadow-test-info-file) 521 (let ((shadow-info-file shadow-test-info-file)
@@ -556,6 +574,7 @@ guaranteed by the originator of a cluster definition."
556 574
557(ert-deftest shadow-test06-literal-groups () 575(ert-deftest shadow-test06-literal-groups ()
558 "Check literal group definitions." 576 "Check literal group definitions."
577 (skip-unless (not (memq system-type '(windows-nt ms-dos))))
559 (skip-unless (file-remote-p shadow-test-remote-temporary-file-directory)) 578 (skip-unless (file-remote-p shadow-test-remote-temporary-file-directory))
560 579
561 (let ((shadow-info-file shadow-test-info-file) 580 (let ((shadow-info-file shadow-test-info-file)
@@ -620,6 +639,7 @@ guaranteed by the originator of a cluster definition."
620 639
621(ert-deftest shadow-test07-regexp-groups () 640(ert-deftest shadow-test07-regexp-groups ()
622 "Check regexp group definitions." 641 "Check regexp group definitions."
642 (skip-unless (not (memq system-type '(windows-nt ms-dos))))
623 (skip-unless (file-remote-p shadow-test-remote-temporary-file-directory)) 643 (skip-unless (file-remote-p shadow-test-remote-temporary-file-directory))
624 644
625 (let ((shadow-info-file shadow-test-info-file) 645 (let ((shadow-info-file shadow-test-info-file)
@@ -686,6 +706,7 @@ guaranteed by the originator of a cluster definition."
686 706
687(ert-deftest shadow-test08-shadow-todo () 707(ert-deftest shadow-test08-shadow-todo ()
688 "Check that needed shadows are added to todo." 708 "Check that needed shadows are added to todo."
709 (skip-unless (not (memq system-type '(windows-nt ms-dos))))
689 (skip-unless (file-remote-p shadow-test-remote-temporary-file-directory)) 710 (skip-unless (file-remote-p shadow-test-remote-temporary-file-directory))
690 711
691 (let ((backup-inhibited t) 712 (let ((backup-inhibited t)
@@ -786,6 +807,7 @@ guaranteed by the originator of a cluster definition."
786 807
787(ert-deftest shadow-test09-shadow-copy-files () 808(ert-deftest shadow-test09-shadow-copy-files ()
788 "Check that needed shadow files are copied." 809 "Check that needed shadow files are copied."
810 (skip-unless (not (memq system-type '(windows-nt ms-dos))))
789 (skip-unless (file-remote-p shadow-test-remote-temporary-file-directory)) 811 (skip-unless (file-remote-p shadow-test-remote-temporary-file-directory))
790 812
791 (let ((backup-inhibited t) 813 (let ((backup-inhibited t)