unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Fabian Ezequiel Gallina <galli.87@gmail.com>
To: Emacs-Devel devel <emacs-devel@gnu.org>
Subject: ert tests and dependencies.
Date: Wed, 20 Feb 2013 18:09:15 -0300	[thread overview]
Message-ID: <CABq4mQtY+7VSfzwNtEimqs_9ddoSVYMW2+BPQnr23DDE6Ro0-Q@mail.gmail.com> (raw)

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



             reply	other threads:[~2013-02-20 21:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-20 21:09 Fabian Ezequiel Gallina [this message]
2013-02-20 21:22 ` ert tests and dependencies Glenn Morris
2013-02-20 22:37   ` Fabian Ezequiel Gallina

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CABq4mQtY+7VSfzwNtEimqs_9ddoSVYMW2+BPQnr23DDE6Ro0-Q@mail.gmail.com \
    --to=galli.87@gmail.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).