GNU bug report logs -
#26337
26.0.50; Command to run tests with latest source
Previous Next
Reported by: Tino Calancha <tino.calancha <at> gmail.com>
Date: Sun, 2 Apr 2017 05:29:01 UTC
Severity: wishlist
Found in version 26.0.50
Done: Tino Calancha <tino.calancha <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
Message #11 received at 26337 <at> debbugs.gnu.org (full text, mbox):
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.
This bug report was last modified 8 years and 102 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.