From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Fabian Ezequiel Gallina Newsgroups: gmane.emacs.devel Subject: ert tests and dependencies. Date: Wed, 20 Feb 2013 18:09:15 -0300 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1361394570 6144 80.91.229.3 (20 Feb 2013 21:09:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 20 Feb 2013 21:09:30 +0000 (UTC) To: Emacs-Devel devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Feb 20 22:09:52 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1U8GvF-0001XH-Sh for ged-emacs-devel@m.gmane.org; Wed, 20 Feb 2013 22:09:49 +0100 Original-Received: from localhost ([::1]:60463 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U8Guv-0003to-HI for ged-emacs-devel@m.gmane.org; Wed, 20 Feb 2013 16:09:29 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:39408) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U8Guq-0003lw-Fs for emacs-devel@gnu.org; Wed, 20 Feb 2013 16:09:27 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U8Guj-0005Jv-II for emacs-devel@gnu.org; Wed, 20 Feb 2013 16:09:24 -0500 Original-Received: from mail-ee0-f44.google.com ([74.125.83.44]:59516) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U8Guj-0005Ih-B7 for emacs-devel@gnu.org; Wed, 20 Feb 2013 16:09:17 -0500 Original-Received: by mail-ee0-f44.google.com with SMTP id l10so4342588eei.3 for ; Wed, 20 Feb 2013 13:09:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=SMJkrCJtHm5uivzTLhX9ZW7cEvzC9Lx9+IL9qehqqU0=; b=M7OCTEbZN0O38xr04mtjQmq4jET4ZZflk+xDCJgDXxaJFzKBuOjSH6s6QI+iyLDi6N 5w9nr31mFmwtJGgpseBla7s9KIzs062Zci1HPOV1FFTyTlvBnMeX+tDBgRfLN//aRLF4 bf5JoAYOSkD2WeaKuQWydbmTNKLMzuYt9df5UhOJvZ+zcOFzjzNUANwAmm10dS1o1iyj aTQFN4+YITo8OPdZEGI2rftGKebsVkEQGFNiCGIxKzGQFop+/9h+5kh23dl6senPAW52 hs5VnKfoCUVoBZDcr240J2BBy55Z+G9OgxVKPexpWBI+RJgi4hfIdX1eAWJKVyBnBHNd 7Ypg== X-Received: by 10.14.219.7 with SMTP id l7mr49187879eep.12.1361394555463; Wed, 20 Feb 2013 13:09:15 -0800 (PST) Original-Received: by 10.14.121.141 with HTTP; Wed, 20 Feb 2013 13:09:15 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 74.125.83.44 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:157218 Archived-At: 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, --=20 Fabi=E1n E. Gallina http://www.from-the-cloud.com