all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* ert tests and dependencies.
@ 2013-02-20 21:09 Fabian Ezequiel Gallina
  2013-02-20 21:22 ` Glenn Morris
  0 siblings, 1 reply; 3+ messages in thread
From: Fabian Ezequiel Gallina @ 2013-02-20 21:09 UTC (permalink / raw)
  To: Emacs-Devel devel

I'm planning to add tests for the python.el shell integration, but for
these to run successfully a python executable must exist in the
system.

So the question is, what's the preferred way to define these kind of
tests that depend on other executables than Emacs?

I'm thinking on something like this:

(ert-deftest python-shell-test ()
  (if (not (executable-find "python"))
      (message "skipping python-shell-test...")
    (should ...))

But perhaps this has been discussed or there's a standard way already.



Regards,
-- 
Fabián E. Gallina
http://www.from-the-cloud.com



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

end of thread, other threads:[~2013-02-20 22:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-20 21:09 ert tests and dependencies Fabian Ezequiel Gallina
2013-02-20 21:22 ` Glenn Morris
2013-02-20 22:37   ` Fabian Ezequiel Gallina

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.