aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMichael Albinus2022-07-16 14:05:06 +0200
committerMichael Albinus2022-07-16 14:05:06 +0200
commita281abb0c3ff554ae3a76d1235c54bcdafec59a2 (patch)
treecbef850635dca80d4a636064da2cc357e3ad5bfd /test
parent630bbe39327ee289016145fe0c184310616b5ec8 (diff)
downloademacs-a281abb0c3ff554ae3a76d1235c54bcdafec59a2.tar.gz
emacs-a281abb0c3ff554ae3a76d1235c54bcdafec59a2.zip
Comment docstrings in tramp-test macros
* test/lisp/net/tramp-tests.el (tramp--test-deftest-with-stat) (tramp--test-deftest-with-perl, tramp--test-deftest-with-ls) (tramp--test-deftest-direct-async-process): Comment docstring, it doesn't work this way. Use `tramp-test-vec' if appropriate.
Diffstat (limited to 'test')
-rw-r--r--test/lisp/net/tramp-tests.el34
1 files changed, 12 insertions, 22 deletions
diff --git a/test/lisp/net/tramp-tests.el b/test/lisp/net/tramp-tests.el
index 6792a00bb76..2e2f9333ba9 100644
--- a/test/lisp/net/tramp-tests.el
+++ b/test/lisp/net/tramp-tests.el
@@ -3565,14 +3565,11 @@ This tests also `access-file', `file-readable-p',
3565 `(ert-deftest ,(intern (concat (symbol-name test) "-with-stat")) () 3565 `(ert-deftest ,(intern (concat (symbol-name test) "-with-stat")) ()
3566 ;; This is the docstring. However, it must be expanded to a 3566 ;; This is the docstring. However, it must be expanded to a
3567 ;; string inside the macro. No idea. 3567 ;; string inside the macro. No idea.
3568 (with-no-warnings 3568 ;; (concat (ert-test-documentation (get ',test 'ert--test))
3569 (concat (ert-test-documentation (ert-get-test ',test)) 3569 ;; "\nUse the \"stat\" command.")
3570 "\nUse the \"stat\" command."))
3571 :tags '(:expensive-test) 3570 :tags '(:expensive-test)
3572 (skip-unless (tramp--test-enabled)) 3571 (skip-unless (tramp--test-enabled))
3573 ;; We cannot use `tramp-test-vec', because this fails during compilation. 3572 (skip-unless (tramp-get-remote-stat tramp-test-vec))
3574 (with-parsed-tramp-file-name ert-remote-temporary-file-directory nil
3575 (skip-unless (tramp-get-remote-stat v)))
3576 (let ((default-directory ert-remote-temporary-file-directory) 3573 (let ((default-directory ert-remote-temporary-file-directory)
3577 (ert-test (ert-get-test ',test)) 3574 (ert-test (ert-get-test ',test))
3578 (tramp-connection-properties 3575 (tramp-connection-properties
@@ -3586,14 +3583,11 @@ This tests also `access-file', `file-readable-p',
3586 `(ert-deftest ,(intern (concat (symbol-name test) "-with-perl")) () 3583 `(ert-deftest ,(intern (concat (symbol-name test) "-with-perl")) ()
3587 ;; This is the docstring. However, it must be expanded to a 3584 ;; This is the docstring. However, it must be expanded to a
3588 ;; string inside the macro. No idea. 3585 ;; string inside the macro. No idea.
3589 (with-no-warnings 3586 ;; (concat (ert-test-documentation (get ',test 'ert--test))
3590 (concat (ert-test-documentation (ert-get-test ',test)) 3587 ;; "\nUse the \"perl\" command.")
3591 "\nUse the \"perl\" command."))
3592 :tags '(:expensive-test) 3588 :tags '(:expensive-test)
3593 (skip-unless (tramp--test-enabled)) 3589 (skip-unless (tramp--test-enabled))
3594 ;; We cannot use `tramp-test-vec', because this fails during compilation. 3590 (skip-unless (tramp-get-remote-perl tramp-test-vec))
3595 (with-parsed-tramp-file-name ert-remote-temporary-file-directory nil
3596 (skip-unless (tramp-get-remote-perl v)))
3597 (let ((default-directory ert-remote-temporary-file-directory) 3591 (let ((default-directory ert-remote-temporary-file-directory)
3598 (ert-test (ert-get-test ',test)) 3592 (ert-test (ert-get-test ',test))
3599 (tramp-connection-properties 3593 (tramp-connection-properties
@@ -3610,9 +3604,8 @@ This tests also `access-file', `file-readable-p',
3610 `(ert-deftest ,(intern (concat (symbol-name test) "-with-ls")) () 3604 `(ert-deftest ,(intern (concat (symbol-name test) "-with-ls")) ()
3611 ;; This is the docstring. However, it must be expanded to a 3605 ;; This is the docstring. However, it must be expanded to a
3612 ;; string inside the macro. No idea. 3606 ;; string inside the macro. No idea.
3613 (with-no-warnings 3607 ;; (concat (ert-test-documentation (get ',test 'ert--test))
3614 (concat (ert-test-documentation (ert-get-test ',test)) 3608 ;; "\nUse the \"ls\" command.")
3615 "\nUse the \"ls\" command."))
3616 :tags '(:expensive-test) 3609 :tags '(:expensive-test)
3617 (skip-unless (tramp--test-enabled)) 3610 (skip-unless (tramp--test-enabled))
3618 (let ((default-directory ert-remote-temporary-file-directory) 3611 (let ((default-directory ert-remote-temporary-file-directory)
@@ -4880,13 +4873,10 @@ If UNSTABLE is non-nil, the test is tagged as `:unstable'."
4880 `(ert-deftest ,(intern (concat (symbol-name test) "-direct-async")) () 4873 `(ert-deftest ,(intern (concat (symbol-name test) "-direct-async")) ()
4881 ;; This is the docstring. However, it must be expanded to a 4874 ;; This is the docstring. However, it must be expanded to a
4882 ;; string inside the macro. No idea. 4875 ;; string inside the macro. No idea.
4883 (with-no-warnings 4876 ;; (concat (ert-test-documentation (get ',test 'ert--test))
4884 (concat (ert-test-documentation (ert-get-test ',test)) 4877 ;; "\nUse direct async process.")
4885 "\nUse direct async process.")) 4878 :tags (append '(:expensive-test :tramp-asynchronous-processes)
4886 :tags 4879 (and ,unstable '(:unstable)))
4887 (with-no-warnings
4888 (append '(:expensive-test :tramp-asynchronous-processes)
4889 (and ,unstable '(:unstable))))
4890 (skip-unless (tramp--test-enabled)) 4880 (skip-unless (tramp--test-enabled))
4891 (let ((default-directory ert-remote-temporary-file-directory) 4881 (let ((default-directory ert-remote-temporary-file-directory)
4892 (ert-test (ert-get-test ',test)) 4882 (ert-test (ert-get-test ',test))