From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tom Tromey Newsgroups: gmane.emacs.devel Subject: Re: library dependencies and unit/integration testing Date: Mon, 01 Mar 2010 10:59:47 -0700 Message-ID: References: <87pr3oosk6.fsf@lifelogs.com> Reply-To: Tom Tromey NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1267466419 14760 80.91.229.12 (1 Mar 2010 18:00:19 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 1 Mar 2010 18:00:19 +0000 (UTC) Cc: emacs-devel@gnu.org To: Ted Zlatanov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 01 19:00:14 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Nm9uW-0007Kw-Fd for ged-emacs-devel@m.gmane.org; Mon, 01 Mar 2010 19:00:04 +0100 Original-Received: from localhost ([127.0.0.1]:60721 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nm9uV-000260-UY for ged-emacs-devel@m.gmane.org; Mon, 01 Mar 2010 13:00:03 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nm9uP-00022q-Pl for emacs-devel@gnu.org; Mon, 01 Mar 2010 12:59:57 -0500 Original-Received: from [140.186.70.92] (port=48129 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nm9uO-00020O-MK for emacs-devel@gnu.org; Mon, 01 Mar 2010 12:59:57 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nm9uN-00010W-Du for emacs-devel@gnu.org; Mon, 01 Mar 2010 12:59:56 -0500 Original-Received: from mx1.redhat.com ([209.132.183.28]:49306) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nm9uN-00010J-6w for emacs-devel@gnu.org; Mon, 01 Mar 2010 12:59:55 -0500 Original-Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o21Hxpcd008285 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 1 Mar 2010 12:59:51 -0500 Original-Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o21Hxp2s013873; Mon, 1 Mar 2010 12:59:51 -0500 Original-Received: from opsy.redhat.com (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id o21HxmlG012333; Mon, 1 Mar 2010 12:59:48 -0500 Original-Received: by opsy.redhat.com (Postfix, from userid 500) id CCA41378267; Mon, 1 Mar 2010 10:59:47 -0700 (MST) X-Attribution: Tom In-Reply-To: <87pr3oosk6.fsf@lifelogs.com> (Ted Zlatanov's message of "Mon, 01 Mar 2010 11:33:29 -0600") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:121504 Archived-At: >>>>> "Ted" == Ted Zlatanov writes: Ted> What capabilities does Emacs offer for tracking library dependencies Ted> beyond 'require and `load-history'? I think versions (as stated by the Ted> Version header) are not tracked and that's a basic requirement. Then, Ted> how would a library state it depends on "foo v.1 or later and bar v.2 Ted> exactly"? Emacs doesn't provide much. package.el defines an extension to the header comments for tracking dependencies. It looks like (example from ruby-compilation): ;;; Package-Requires: ((ruby-mode "1.0") (inf-ruby "2.0")) This just means that this package requires ruby-mode >= 1.0 and inf-ruby >= 2.0. I only allowed >= requires to keep package.el simple, and because I don't think there is any real need for anything more complicated. Ted> In order to ensure these dependencies are tracked correctly, is there a Ted> *standard* way in Emacs to test if a library loads and runs some basic Ted> unit and integration tests correctly? No. For package.el it would be a bad idea to load all packages. This is slow, and loading a package can have undesirable side effects. Tom