(defun shadow-site-name (site)
"Return name if SITE has the form \"/name:\", otherwise SITE."
- (if (string-match "\\`/\\(\\w+\\):\\'" site)
+ (if (string-match "\\`/\\([-.[:word:]]+\\):\\'" site)
(match-string 1 site) site))
(defun shadow-name-site (name)
"Return \"/name:\" if NAME has word syntax, otherwise NAME."
- (if (string-match "\\`\\w+\\'" name)
+ (if (string-match "\\`[-.[:word:]]+\\'" name)
(format "/%s:"name) name))
(defun shadow-site-primary (site)
(ert-deftest shadow-test06-literal-groups ()
"Check literal group definitions."
+ (skip-unless (file-remote-p shadow-test-remote-temporary-file-directory))
+
(let ((shadow-info-file shadow-test-info-file)
(shadow-todo-file shadow-test-todo-file)
shadow-clusters shadow-literal-groups
(ert-deftest shadow-test07-regexp-groups ()
"Check regexp group definitions."
+ (skip-unless (file-remote-p shadow-test-remote-temporary-file-directory))
+
(let ((shadow-info-file shadow-test-info-file)
(shadow-todo-file shadow-test-todo-file)
shadow-clusters shadow-regexp-groups
(ert-deftest shadow-test08-shadow-todo ()
"Check that needed shadows are added to todo."
+ (skip-unless (file-remote-p shadow-test-remote-temporary-file-directory))
+
(let ((backup-inhibited t)
(shadow-info-file shadow-test-info-file)
(shadow-todo-file shadow-test-todo-file)
(ert-deftest shadow-test09-shadow-copy-files ()
"Check that needed shadow files are copied."
+ (skip-unless (file-remote-p shadow-test-remote-temporary-file-directory))
+
(let ((backup-inhibited t)
(shadow-info-file shadow-test-info-file)
(shadow-todo-file shadow-test-todo-file)