unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Tests and python scripts
@ 2015-04-10 12:13 Artur Malabarba
  2015-04-10 12:26 ` Michael Albinus
  0 siblings, 1 reply; 2+ messages in thread
From: Artur Malabarba @ 2015-04-10 12:13 UTC (permalink / raw)
  To: emacs-devel

In order to test package.el async function's I need to access an
actual webserver (as opposed to a regular directory).

For that purpose, I've written a test that uses a python2 script to
locally serve a directory.
It works fine on my computer, but, before pushing, I'd like to check
what's the correct protocol for running scripts in the tests?

1. Can I simply do (start-process "server" nil "python2" script-file)?
I imagine hydra will have python available, but is that the right
executable name?
2. Does this external dependency need to mentioned anywhere? Or do I
just check `executable-find' as part of the test?
3. Any other considerations?


Cheers
Artur



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

* Re: Tests and python scripts
  2015-04-10 12:13 Tests and python scripts Artur Malabarba
@ 2015-04-10 12:26 ` Michael Albinus
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Albinus @ 2015-04-10 12:26 UTC (permalink / raw)
  To: Artur Malabarba; +Cc: emacs-devel

Artur Malabarba <bruce.connor.am@gmail.com> writes:

> 2. Does this external dependency need to mentioned anywhere? Or do I
> just check `executable-find' as part of the test?

(skip-unless (executable-find "python2")) seems to be proper. ert
reports in case.

> Cheers
> Artur

Best regards, Michael.



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

end of thread, other threads:[~2015-04-10 12:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-10 12:13 Tests and python scripts Artur Malabarba
2015-04-10 12:26 ` Michael Albinus

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).