all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Re: [elpa] externals/compat 9600545c54 6/6: Add test for temporary-file-directory
       [not found] ` <20230116115727.25BB4C04965@vcs2.savannah.gnu.org>
@ 2023-01-16 12:12   ` Michael Albinus
  2023-01-16 14:08     ` Daniel Mendler
  0 siblings, 1 reply; 3+ messages in thread
From: Michael Albinus @ 2023-01-16 12:12 UTC (permalink / raw)
  To: emacs-devel; +Cc: Daniel Mendler

ELPA Syncer <elpasync@gnu.org> writes:

Hi Daniel,

> +(ert-deftest temporary-file-directory ()
> +  (should-equal (temporary-file-directory) temporary-file-directory)
> +  (let ((default-directory "/mnt"))
> +    (should-equal (temporary-file-directory) default-directory))
> +  ;; TODO how can we test tramp?
> +  ;;(let ((default-directory "/sudo:/"))
> +  ;;  (should-equal (temporary-file-directory) temporary-file-directory))
> +  ;;(let ((default-directory "/ssh:does-not-exist:/"))
> +  ;;  (should-equal (temporary-file-directory) "/ssh:does-not-exist:/tmp/"))

See ert-remote-temporary-file-directory in ert-x.el.

Best regards, Michael.



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [elpa] externals/compat 9600545c54 6/6: Add test for temporary-file-directory
  2023-01-16 12:12   ` [elpa] externals/compat 9600545c54 6/6: Add test for temporary-file-directory Michael Albinus
@ 2023-01-16 14:08     ` Daniel Mendler
  2023-01-16 15:32       ` Michael Albinus
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel Mendler @ 2023-01-16 14:08 UTC (permalink / raw)
  To: Michael Albinus, emacs-devel

Hi Michael!

On 1/16/23 13:12, Michael Albinus wrote:
>> +(ert-deftest temporary-file-directory ()
>> +  (should-equal (temporary-file-directory) temporary-file-directory)
>> +  (let ((default-directory "/mnt"))
>> +    (should-equal (temporary-file-directory) default-directory))
>> +  ;; TODO how can we test tramp?
>> +  ;;(let ((default-directory "/sudo:/"))
>> +  ;;  (should-equal (temporary-file-directory) temporary-file-directory))
>> +  ;;(let ((default-directory "/ssh:does-not-exist:/"))
>> +  ;;  (should-equal (temporary-file-directory) "/ssh:does-not-exist:/tmp/"))
> 
> See ert-remote-temporary-file-directory in ert-x.el.
> 
> Best regards, Michael.

Thank you for the info. Btw, did you consider using the Compat library
in Tramp? A lot of the backported functionality in tramp-compat should
be already present in Compat.

Daniel



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [elpa] externals/compat 9600545c54 6/6: Add test for temporary-file-directory
  2023-01-16 14:08     ` Daniel Mendler
@ 2023-01-16 15:32       ` Michael Albinus
  0 siblings, 0 replies; 3+ messages in thread
From: Michael Albinus @ 2023-01-16 15:32 UTC (permalink / raw)
  To: Daniel Mendler; +Cc: emacs-devel

Daniel Mendler <mail@daniel-mendler.de> writes:

> Hi Michael!

Gi Daniel,

> Btw, did you consider using the Compat library
> in Tramp? A lot of the backported functionality in tramp-compat should
> be already present in Compat.

Tramp has several incarnations. Built-in Emacs core, GNU ELPA
package. Its major incarnation is the project home on Savannah, like
Emacs. See <https://savannah.gnu.org/projects/tramp>.

From there, regular Tramp releases are created and distributed. And
these releases don't use dependencies.

> Daniel

Best regards, Michael.



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-01-16 15:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <167387024599.18919.16349114791137926023@vcs2.savannah.gnu.org>
     [not found] ` <20230116115727.25BB4C04965@vcs2.savannah.gnu.org>
2023-01-16 12:12   ` [elpa] externals/compat 9600545c54 6/6: Add test for temporary-file-directory Michael Albinus
2023-01-16 14:08     ` Daniel Mendler
2023-01-16 15:32       ` Michael Albinus

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.