1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-04-25 07:40:40 -07:00
emacs/test/lisp/net
Michael Albinus 684950eb94 Make call of remote `id' more performant in Tramp
* lisp/net/tramp-adb.el (tramp-adb-handle-file-exists-p): New defun.
(tramp-adb-file-name-handler-alist): Use it.
(tramp-adb-handle-file-executable-p)
(tramp-adb-handle-file-readable-p)
(tramp-adb-handle-file-writable-p)
(tramp-adb-handle-get-remote-uid)
(tramp-adb-handle-get-remote-gid)
(tramp-adb-handle-get-remote-groups): Use caches consequently.

* lisp/net/tramp-sh.el (tramp-perl-id, tramp-python-id): New defconsts.
(tramp-sh-handle-get-remote-uid, tramp-sh-handle-get-remote-gid)
(tramp-sh-handle-get-remote-groups): Use caches consequently.
(tramp-sh-handle-file-writable-p): Use `file-writable-p'.
(tramp-expand-script): Handle also "python" expansion.
(tramp-get-remote-id): Do not set connection property anymore,
this is done differently now.
(tramp-get-remote-uid-with-id, tramp-get-remote-uid-with-perl)
(tramp-get-remote-uid-with-python, tramp-get-remote-gid-with-id)
(tramp-get-remote-gid-with-perl)
(tramp-get-remote-gid-with-python): Remove.

* lisp/net/tramp-sudoedit.el (tramp-sudoedit-handle-file-executable-p)
(tramp-sudoedit-handle-file-exists-p)
(tramp-sudoedit-handle-file-readable-p)
(tramp-sudoedit-handle-file-writable-p):
(tramp-sudoedit-handle-get-remote-uid)
(tramp-sudoedit-handle-get-remote-gid)
(tramp-sudoedit-handle-get-remote-groups): Use caches consequently.

* lisp/net/tramp.el (tramp-check-cached-permissions):
Call `tramp-get-remote-groups' only if needed.
(tramp-get-remote-groups): Do not return default value.
(tramp-read-id-output): New defun.

* test/lisp/net/tramp-tests.el (tramp--test-deftest-with-perl):
Suppress also remote `id'.
2022-09-08 10:36:08 +02:00
..
dbus-resources
mailcap-resources Add some more mailcap tests. 2022-01-16 00:21:17 +01:00
network-stream-resources
ntlm-resources
puny-resources Add textsec-domain-suspicious-p 2022-01-18 11:53:09 +01:00
shr-resources
tramp-archive-resources
tramp-resources Add Tramp test 2022-05-05 09:54:31 +02:00
browse-url-tests.el Drop support for the dead third-party w3 package 2022-07-09 17:27:49 +02:00
dbus-tests.el
dig-tests.el
gnutls-tests.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
hmac-md5-tests.el
mailcap-tests.el Add tests for ‘mailcap-add-mailcap-entry’ 2022-09-02 12:09:59 +02:00
network-stream-tests.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
newsticker-tests.el
nsm-tests.el
ntlm-tests.el Remove the ELPA dependencies from test/Makefile.in 2022-02-22 03:18:13 +01:00
puny-tests.el Add textsec-domain-suspicious-p 2022-01-18 11:53:09 +01:00
rcirc-tests.el
rfc2104-tests.el
sasl-cram-tests.el
sasl-scram-rfc-tests.el
sasl-tests.el
secrets-tests.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
shr-tests.el Fix srcset parsing in shr 2022-07-23 07:43:45 +02:00
socks-tests.el
tramp-archive-tests.el Use secondary groups when checking permissions in Tramp (Bug#57044) 2022-09-06 12:33:19 +02:00
tramp-tests.el Make call of remote `id' more performant in Tramp 2022-09-08 10:36:08 +02:00
webjump-tests.el