From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Tino Calancha Newsgroups: gmane.emacs.bugs Subject: bug#26337: 26.0.50; Command to run tests with latest source Date: Mon, 3 Apr 2017 12:41:00 +0900 (JST) Message-ID: References: <87vaqnnzth.fsf@calancha-pc> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII X-Trace: blaine.gmane.org 1491190940 407 195.159.176.226 (3 Apr 2017 03:42:20 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 3 Apr 2017 03:42:20 +0000 (UTC) User-Agent: Alpine 2.20 (DEB 67 2015-01-07) Cc: 26337@debbugs.gnu.org, Tino Calancha To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Apr 03 05:42:14 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cussZ-0007C9-Ii for geb-bug-gnu-emacs@m.gmane.org; Mon, 03 Apr 2017 05:42:07 +0200 Original-Received: from localhost ([::1]:57320 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cussd-0005eQ-TE for geb-bug-gnu-emacs@m.gmane.org; Sun, 02 Apr 2017 23:42:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60357) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cussX-0005e7-PU for bug-gnu-emacs@gnu.org; Sun, 02 Apr 2017 23:42:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cussU-0003Ff-Ib for bug-gnu-emacs@gnu.org; Sun, 02 Apr 2017 23:42:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:59828) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cussU-0003FG-EV for bug-gnu-emacs@gnu.org; Sun, 02 Apr 2017 23:42:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cussU-0000fc-5k for bug-gnu-emacs@gnu.org; Sun, 02 Apr 2017 23:42:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Tino Calancha Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 03 Apr 2017 03:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 26337 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 26337-submit@debbugs.gnu.org id=B26337.14911908732522 (code B ref 26337); Mon, 03 Apr 2017 03:42:02 +0000 Original-Received: (at 26337) by debbugs.gnu.org; 3 Apr 2017 03:41:13 +0000 Original-Received: from localhost ([127.0.0.1]:58027 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cusrg-0000ec-5K for submit@debbugs.gnu.org; Sun, 02 Apr 2017 23:41:13 -0400 Original-Received: from mail-pg0-f44.google.com ([74.125.83.44]:33821) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cusre-0000eO-8G for 26337@debbugs.gnu.org; Sun, 02 Apr 2017 23:41:10 -0400 Original-Received: by mail-pg0-f44.google.com with SMTP id 21so107127236pgg.1 for <26337@debbugs.gnu.org>; Sun, 02 Apr 2017 20:41:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=jIyXLbVOgLLwW3lMIgGKR9EDGAOj1DjMd3yxzx2igSg=; b=p7SF4EirpUamR87tDAiA+5PNDvuClTCAGfkIU1xl32DOceeisQinuoEYmnY7cFSmj1 ZNAXDBsmWjfjSC2/9sUqw4WbFEQnDxB2C66/lY6ZLZuFWNb7M/gnbP6GV9id4DSq7WtY 39iofzqQejOws4VRDCSvz5QLbiUs4wPQaY7XDClZcBxOGNKKuDyfi54DFpQqinYDUH2J oMixO0lkkXtnMH1vTxFI1U9LjRr7+urY+UoajT2a4STwWXDlTdQH2b/GVPm0yduMyhly DLq04Gte/YGk394nB4NmjCMZoLowdJjy2qYD5dM/FQaIyTLwasTL62vTURUcYu2WZeGP mCvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=jIyXLbVOgLLwW3lMIgGKR9EDGAOj1DjMd3yxzx2igSg=; b=F9GHe+rod6brxP6jn0tTTIPTxIemHkrVwDHZS3JoP8sXf8dp5vQAa5//77RfGVvTPK SbpVF3dlVIQJwPUF710aRfQaJioiA5xPOW73QtpIEw005PMX0qroQkQqKA1PhWFs3c0u uKKcJpZA8drpZZQ8QbUsscGcNbgjICkwYy/HBfoXuy/bFYMzUxGBwZ2Hj/eVxVTnIHLl UT4eofo56s24NhgB/pOHy7D6wdCfK5P4rxMt3AqYW7gyugdWl33iWok/bWRcABEx8oA0 OjpzxWQQVssc4K/RQplhDy77g7InLLrwJuoGLJD55r+u5rs7sk0lbKqmD6cuMGhTqEjf bXSQ== X-Gm-Message-State: AFeK/H1u9mFQJ+choYt2RalTm4pSXT5ogF7UBktTlUH+4XHAF7dfrd8juRo5UHb/5yhOyw== X-Received: by 10.99.94.66 with SMTP id s63mr13799232pgb.34.1491190864409; Sun, 02 Apr 2017 20:41:04 -0700 (PDT) Original-Received: from calancha-pc (234.204.100.220.dy.bbexcite.jp. [220.100.204.234]) by smtp.gmail.com with ESMTPSA id w64sm845420pfa.23.2017.04.02.20.41.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 02 Apr 2017 20:41:03 -0700 (PDT) X-Google-Original-From: Tino Calancha X-X-Sender: calancha@calancha-pc In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:131236 Archived-At: On Sun, 2 Apr 2017, Glenn Morris wrote: > Tino Calancha wrote: > >> I often while debugging follow this workflow: >> >> 1) Make some changes in one branch. >> 2) Compile Emacs. >> 3) Run one test file with: >> M-& emacs -batch -l ert -l ? -f ert-run-tests-batch-and-exit RET > The test file names are completable using whatever your shell uses for > file name completion (eg alt-/ in bash). In emacs-25 they are completable > with bash TAB completion (from bash Makefile completion), which was nicer. > > So personally I'm not sure I see the need to add an autoloaded ert > command to do this. The autocomplete is not the main point of this addition. The point is let you run a test file (not necessarily from the official test suite), in batch using the latest compiled source with easy. > I use make for step 3. It seems natural after using it in step 2. Eg > > cd test > make lisp/vc/ediff-ptch-tests.log > > (till yesterday, it used to work without ".log" as well - see emacs-devel) You are right, that sounds pretty good. Note, it doesn't work if the test you want to run it doesn't exit in the current branch or it's not as you expect.. I use to write the test file in /tmp. Then i can run the test after compile the sources for whatever branch. For example, last week i copied test/lisp/emacs-lisp/cl-lib-tests.el from commit 1f5b4ed628 into /tmp. Then, i checkout several earlier commits to see when cl-lib-symbol-macrolet test fail. It started failing with 0d112c00ba, but in that commit all tests in /lisp/emacs-lisp/cl-lib-tests.el pass because 'cl-lib-symbol-macrolet' test was added later. In that branch i must run the file copied in /tmp. In that case is handy to use the porposed command. You can think of it as a manual bisect, but it's not exactly that. Suppose now you are in a branch fixing this issue. You change things, compile and then you run the test in /tmp, which contains the 'cl-lib-symbol-macrolet' test.