diff options
| author | Michael Albinus | 2018-08-08 14:59:56 +0200 |
|---|---|---|
| committer | Michael Albinus | 2018-08-08 14:59:56 +0200 |
| commit | 31929031e38fae9ebaf221e4df27d2138b869e06 (patch) | |
| tree | 7299da5bec28e79037da44128799dd74e7106b21 | |
| parent | 3eac378c966cd5c7fa9c62f2abcb8a9744dea69b (diff) | |
| download | emacs-31929031e38fae9ebaf221e4df27d2138b869e06.tar.gz emacs-31929031e38fae9ebaf221e4df27d2138b869e06.zip | |
Tag expensive tests in tramp-archive.el (Bug#30807)
* test/lisp/net/tramp-archive-tests.el (tramp-archive-test44-auto-load)
(tramp-archive-test44-delay-load): Rename.
(tramp-archive-test07-file-exists-p)
(tramp-archive-test08-file-local-copy)
(tramp-archive-test09-insert-file-contents)
(tramp-archive-test11-copy-file)
(tramp-archive-test15-copy-directory)
(tramp-archive-test16-directory-files)
(tramp-archive-test17-insert-directory)
(tramp-archive-test18-file-attributes)
(tramp-archive-test19-directory-files-and-attributes)
(tramp-archive-test20-file-modes)
(tramp-archive-test21-file-links)
(tramp-archive-test26-file-name-completion)
(tramp-archive-test44-auto-load)
(tramp-archive-test44-delay-load): Tag them as :expensive-test,
because they run longer than 10 seconds. (Bug#30807)
| -rw-r--r-- | test/lisp/net/tramp-archive-tests.el | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/test/lisp/net/tramp-archive-tests.el b/test/lisp/net/tramp-archive-tests.el index 0a8716be0d7..e7597864c6e 100644 --- a/test/lisp/net/tramp-archive-tests.el +++ b/test/lisp/net/tramp-archive-tests.el | |||
| @@ -311,6 +311,7 @@ This checks also `file-name-as-directory', `file-name-directory', | |||
| 311 | 311 | ||
| 312 | (ert-deftest tramp-archive-test07-file-exists-p () | 312 | (ert-deftest tramp-archive-test07-file-exists-p () |
| 313 | "Check `file-exist-p', `write-region' and `delete-file'." | 313 | "Check `file-exist-p', `write-region' and `delete-file'." |
| 314 | :tags '(:expensive-test) | ||
| 314 | (skip-unless tramp-archive-enabled) | 315 | (skip-unless tramp-archive-enabled) |
| 315 | 316 | ||
| 316 | (unwind-protect | 317 | (unwind-protect |
| @@ -333,6 +334,7 @@ This checks also `file-name-as-directory', `file-name-directory', | |||
| 333 | 334 | ||
| 334 | (ert-deftest tramp-archive-test08-file-local-copy () | 335 | (ert-deftest tramp-archive-test08-file-local-copy () |
| 335 | "Check `file-local-copy'." | 336 | "Check `file-local-copy'." |
| 337 | :tags '(:expensive-test) | ||
| 336 | (skip-unless tramp-archive-enabled) | 338 | (skip-unless tramp-archive-enabled) |
| 337 | 339 | ||
| 338 | (let (tmp-name) | 340 | (let (tmp-name) |
| @@ -359,6 +361,7 @@ This checks also `file-name-as-directory', `file-name-directory', | |||
| 359 | 361 | ||
| 360 | (ert-deftest tramp-archive-test09-insert-file-contents () | 362 | (ert-deftest tramp-archive-test09-insert-file-contents () |
| 361 | "Check `insert-file-contents'." | 363 | "Check `insert-file-contents'." |
| 364 | :tags '(:expensive-test) | ||
| 362 | (skip-unless tramp-archive-enabled) | 365 | (skip-unless tramp-archive-enabled) |
| 363 | 366 | ||
| 364 | (let ((tmp-name (expand-file-name "bar/bar" tramp-archive-test-archive))) | 367 | (let ((tmp-name (expand-file-name "bar/bar" tramp-archive-test-archive))) |
| @@ -385,6 +388,7 @@ This checks also `file-name-as-directory', `file-name-directory', | |||
| 385 | 388 | ||
| 386 | (ert-deftest tramp-archive-test11-copy-file () | 389 | (ert-deftest tramp-archive-test11-copy-file () |
| 387 | "Check `copy-file'." | 390 | "Check `copy-file'." |
| 391 | :tags '(:expensive-test) | ||
| 388 | (skip-unless tramp-archive-enabled) | 392 | (skip-unless tramp-archive-enabled) |
| 389 | 393 | ||
| 390 | ;; Copy simple file. | 394 | ;; Copy simple file. |
| @@ -450,6 +454,7 @@ This checks also `file-name-as-directory', `file-name-directory', | |||
| 450 | 454 | ||
| 451 | (ert-deftest tramp-archive-test15-copy-directory () | 455 | (ert-deftest tramp-archive-test15-copy-directory () |
| 452 | "Check `copy-directory'." | 456 | "Check `copy-directory'." |
| 457 | :tags '(:expensive-test) | ||
| 453 | (skip-unless tramp-archive-enabled) | 458 | (skip-unless tramp-archive-enabled) |
| 454 | 459 | ||
| 455 | (let* ((tmp-name1 (expand-file-name "bar" tramp-archive-test-archive)) | 460 | (let* ((tmp-name1 (expand-file-name "bar" tramp-archive-test-archive)) |
| @@ -504,6 +509,7 @@ This checks also `file-name-as-directory', `file-name-directory', | |||
| 504 | 509 | ||
| 505 | (ert-deftest tramp-archive-test16-directory-files () | 510 | (ert-deftest tramp-archive-test16-directory-files () |
| 506 | "Check `directory-files'." | 511 | "Check `directory-files'." |
| 512 | :tags '(:expensive-test) | ||
| 507 | (skip-unless tramp-archive-enabled) | 513 | (skip-unless tramp-archive-enabled) |
| 508 | 514 | ||
| 509 | (let ((tmp-name tramp-archive-test-archive) | 515 | (let ((tmp-name tramp-archive-test-archive) |
| @@ -527,6 +533,7 @@ This checks also `file-name-as-directory', `file-name-directory', | |||
| 527 | 533 | ||
| 528 | (ert-deftest tramp-archive-test17-insert-directory () | 534 | (ert-deftest tramp-archive-test17-insert-directory () |
| 529 | "Check `insert-directory'." | 535 | "Check `insert-directory'." |
| 536 | :tags '(:expensive-test) | ||
| 530 | (skip-unless tramp-archive-enabled) | 537 | (skip-unless tramp-archive-enabled) |
| 531 | 538 | ||
| 532 | (let (;; We test for the summary line. Keyword "total" could be localized. | 539 | (let (;; We test for the summary line. Keyword "total" could be localized. |
| @@ -569,6 +576,7 @@ This checks also `file-name-as-directory', `file-name-directory', | |||
| 569 | (ert-deftest tramp-archive-test18-file-attributes () | 576 | (ert-deftest tramp-archive-test18-file-attributes () |
| 570 | "Check `file-attributes'. | 577 | "Check `file-attributes'. |
| 571 | This tests also `file-readable-p' and `file-regular-p'." | 578 | This tests also `file-readable-p' and `file-regular-p'." |
| 579 | :tags '(:expensive-test) | ||
| 572 | (skip-unless tramp-archive-enabled) | 580 | (skip-unless tramp-archive-enabled) |
| 573 | 581 | ||
| 574 | (let ((tmp-name1 (expand-file-name "foo.txt" tramp-archive-test-archive)) | 582 | (let ((tmp-name1 (expand-file-name "foo.txt" tramp-archive-test-archive)) |
| @@ -619,6 +627,7 @@ This tests also `file-readable-p' and `file-regular-p'." | |||
| 619 | 627 | ||
| 620 | (ert-deftest tramp-archive-test19-directory-files-and-attributes () | 628 | (ert-deftest tramp-archive-test19-directory-files-and-attributes () |
| 621 | "Check `directory-files-and-attributes'." | 629 | "Check `directory-files-and-attributes'." |
| 630 | :tags '(:expensive-test) | ||
| 622 | (skip-unless tramp-archive-enabled) | 631 | (skip-unless tramp-archive-enabled) |
| 623 | 632 | ||
| 624 | (let ((tmp-name (expand-file-name "bar" tramp-archive-test-archive)) | 633 | (let ((tmp-name (expand-file-name "bar" tramp-archive-test-archive)) |
| @@ -644,6 +653,7 @@ This tests also `file-readable-p' and `file-regular-p'." | |||
| 644 | (ert-deftest tramp-archive-test20-file-modes () | 653 | (ert-deftest tramp-archive-test20-file-modes () |
| 645 | "Check `file-modes'. | 654 | "Check `file-modes'. |
| 646 | This tests also `file-executable-p', `file-writable-p' and `set-file-modes'." | 655 | This tests also `file-executable-p', `file-writable-p' and `set-file-modes'." |
| 656 | :tags '(:expensive-test) | ||
| 647 | (skip-unless tramp-archive-enabled) | 657 | (skip-unless tramp-archive-enabled) |
| 648 | 658 | ||
| 649 | (let ((tmp-name1 (expand-file-name "foo.txt" tramp-archive-test-archive)) | 659 | (let ((tmp-name1 (expand-file-name "foo.txt" tramp-archive-test-archive)) |
| @@ -673,6 +683,7 @@ This tests also `file-executable-p', `file-writable-p' and `set-file-modes'." | |||
| 673 | 683 | ||
| 674 | (ert-deftest tramp-archive-test21-file-links () | 684 | (ert-deftest tramp-archive-test21-file-links () |
| 675 | "Check `file-symlink-p' and `file-truename'" | 685 | "Check `file-symlink-p' and `file-truename'" |
| 686 | :tags '(:expensive-test) | ||
| 676 | (skip-unless tramp-archive-enabled) | 687 | (skip-unless tramp-archive-enabled) |
| 677 | 688 | ||
| 678 | ;; We must use `file-truename' for the file archive, because it | 689 | ;; We must use `file-truename' for the file archive, because it |
| @@ -711,6 +722,7 @@ This tests also `file-executable-p', `file-writable-p' and `set-file-modes'." | |||
| 711 | 722 | ||
| 712 | (ert-deftest tramp-archive-test26-file-name-completion () | 723 | (ert-deftest tramp-archive-test26-file-name-completion () |
| 713 | "Check `file-name-completion' and `file-name-all-completions'." | 724 | "Check `file-name-completion' and `file-name-all-completions'." |
| 725 | :tags '(:expensive-test) | ||
| 714 | (skip-unless tramp-archive-enabled) | 726 | (skip-unless tramp-archive-enabled) |
| 715 | 727 | ||
| 716 | (let ((tmp-name tramp-archive-test-archive)) | 728 | (let ((tmp-name tramp-archive-test-archive)) |
| @@ -802,8 +814,9 @@ This tests also `file-executable-p', `file-writable-p' and `set-file-modes'." | |||
| 802 | (zerop (nth 1 fsi)) | 814 | (zerop (nth 1 fsi)) |
| 803 | (zerop (nth 2 fsi)))))) | 815 | (zerop (nth 2 fsi)))))) |
| 804 | 816 | ||
| 805 | (ert-deftest tramp-archive-test43-auto-load () | 817 | (ert-deftest tramp-archive-test44-auto-load () |
| 806 | "Check that `tramp-archive' autoloads properly." | 818 | "Check that `tramp-archive' autoloads properly." |
| 819 | :tags '(:expensive-test) | ||
| 807 | (skip-unless tramp-archive-enabled) | 820 | (skip-unless tramp-archive-enabled) |
| 808 | ;; Autoloading tramp-archive works since Emacs 27.1. | 821 | ;; Autoloading tramp-archive works since Emacs 27.1. |
| 809 | (skip-unless (tramp-archive--test-emacs27-p)) | 822 | (skip-unless (tramp-archive--test-emacs27-p)) |
| @@ -832,8 +845,9 @@ This tests also `file-executable-p', `file-writable-p' and `set-file-modes'." | |||
| 832 | (mapconcat 'shell-quote-argument load-path " -L ") | 845 | (mapconcat 'shell-quote-argument load-path " -L ") |
| 833 | (shell-quote-argument (format code file))))))))) | 846 | (shell-quote-argument (format code file))))))))) |
| 834 | 847 | ||
| 835 | (ert-deftest tramp-archive-test43-delay-load () | 848 | (ert-deftest tramp-archive-test44-delay-load () |
| 836 | "Check that `tramp-archive' is loaded lazily, only when needed." | 849 | "Check that `tramp-archive' is loaded lazily, only when needed." |
| 850 | :tags '(:expensive-test) | ||
| 837 | (skip-unless tramp-archive-enabled) | 851 | (skip-unless tramp-archive-enabled) |
| 838 | ;; Autoloading tramp-archive works since Emacs 27.1. | 852 | ;; Autoloading tramp-archive works since Emacs 27.1. |
| 839 | (skip-unless (tramp-archive--test-emacs27-p)) | 853 | (skip-unless (tramp-archive--test-emacs27-p)) |