From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Leake Newsgroups: gmane.emacs.devel Subject: Re: package and testing rant (was Re: package.el, auto-installation, and auto-removal) Date: Wed, 12 Nov 2014 07:05:40 -0600 Message-ID: <85vbmklgbf.fsf@stephe-leake.org> References: <87a943umku.fsf@lifelogs.com> <87ppcvm7fj.fsf@newcastle.ac.uk> <87vbmndk46.fsf@lifelogs.com> <87wq72ls2h.fsf@ferrier.me.uk> <87k332lnn3.fsf_-_@ferrier.me.uk> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1415797573 7150 80.91.229.3 (12 Nov 2014 13:06:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 12 Nov 2014 13:06:13 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 12 14:06:07 2014 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 1XoXcZ-0001is-Kf for ged-emacs-devel@m.gmane.org; Wed, 12 Nov 2014 14:06:03 +0100 Original-Received: from localhost ([::1]:54562 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XoXcY-0001Pw-M5 for ged-emacs-devel@m.gmane.org; Wed, 12 Nov 2014 08:06:02 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46461) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XoXcP-0001Pk-09 for emacs-devel@gnu.org; Wed, 12 Nov 2014 08:05:59 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XoXcJ-0002Yr-0H for emacs-devel@gnu.org; Wed, 12 Nov 2014 08:05:52 -0500 Original-Received: from dnvrco-outbound-snat.email.rr.com ([107.14.73.225]:30365 helo=dnvrco-oedge-vip.email.rr.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XoXcI-0002Yc-RO for emacs-devel@gnu.org; Wed, 12 Nov 2014 08:05:46 -0500 Original-Received: from [70.94.38.149] ([70.94.38.149:51895] helo=TAKVER) by dnvrco-oedge01 (envelope-from ) (ecelerity 3.5.0.35861 r(Momo-dev:tip)) with ESMTP id 74/B6-27687-72B53645; Wed, 12 Nov 2014 13:05:43 +0000 In-Reply-To: (Stefan Monnier's message of "Mon, 10 Nov 2014 18:24:21 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.94 (windows-nt) X-RR-Connecting-IP: 107.14.64.118:25 X-Authority-Analysis: v=2.1 cv=aIF+qNNm c=1 sm=1 tr=0 a=AppmJ/7ZOOFWL/q6u6u93g==:117 a=AppmJ/7ZOOFWL/q6u6u93g==:17 a=ayC55rCoAAAA:8 a=fNEgcOh0sVsA:10 a=9i_RQKNPAAAA:8 a=oFkDKi4wlrGvmv5hNiAA:9 X-Cloudmark-Score: 0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 107.14.73.225 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:176804 Archived-At: Stefan Monnier writes: > The way to "test" for elpa.git is "cd .../elpa; make" which should > create the *-autoloads.el and *-pkg.el and *.elc files in the "same" way > as what will happen on the user's machine. This is not a good test. For example, if the developer forgets to add a file to elpa.git, this test will pass, but a true install will fail (happened to me recently). I use these make targets to build a package-archive that package.el can use and install from it: build-elpa : force rm -rf ../../elpa/archive-tmp mkdir -p ../../elpa/archive-tmp/packages cp -a ../../elpa/packages/ada-mode ../../elpa/archive-tmp/packages cp -a ../../elpa/packages/ada-ref-man ../../elpa/archive-tmp/packages cp -a ../../elpa/packages/wisi ../../elpa/archive-tmp/packages make -C ../../elpa/ process-archive install-elpa : emacs -Q --eval '(progn (load-file "install-elpa.el")(kill-emacs))' That is a test of the complete process, assuming there are no steps on the GNU ELPA server that are not in the elpa.git makefile. -- -- Stephe