* emacs test suite?
@ 2003-01-16 21:19 Robert Anderson
2003-01-16 23:28 ` Thien-Thi Nguyen
2003-01-18 0:48 ` Richard Stallman
0 siblings, 2 replies; 8+ messages in thread
From: Robert Anderson @ 2003-01-16 21:19 UTC (permalink / raw)
When I help identify and fix bugs, I like to be able to provide a
"push-button" test case that demonstrates the problem, and
prevents regression once the problem has been fixed.
When I run "make check" for GNU emacs, it tells me there are no
tests for emacs yet.
Have there been any initiatives to develop a testing system for
emacs?
Bob
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: emacs test suite?
2003-01-16 21:19 emacs test suite? Robert Anderson
@ 2003-01-16 23:28 ` Thien-Thi Nguyen
2003-01-17 2:17 ` Robert W Anderson
2003-01-18 0:48 ` Richard Stallman
1 sibling, 1 reply; 8+ messages in thread
From: Thien-Thi Nguyen @ 2003-01-16 23:28 UTC (permalink / raw)
Cc: emacs-devel
"Robert Anderson" <RWA@sbcglobal.net> writes:
When I help identify and fix bugs, I like to be able to provide a
"push-button" test case that demonstrates the problem, and
prevents regression once the problem has been fixed.
this approach is also useful for new code.
When I run "make check" for GNU emacs, it tells me there are no
tests for emacs yet.
Have there been any initiatives to develop a testing system for
emacs?
that's what the ftp site is for, no? (half-smiley.)
i'm in favor of such a system. for current-column munging (in the presence of
variable-width fonts), i have a local testing setup but it is not generalized.
this could be because testing interactive programs typically requires a driver
program external to the one under test, and that starts stepping into debugger
territory (where programmers' disparate debugging styles is nonregularizable).
however, having said that, perhaps someone could build a system on top of
screen(1), for text mode; and something analogous, for X.
thi
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: emacs test suite?
2003-01-16 23:28 ` Thien-Thi Nguyen
@ 2003-01-17 2:17 ` Robert W Anderson
0 siblings, 0 replies; 8+ messages in thread
From: Robert W Anderson @ 2003-01-17 2:17 UTC (permalink / raw)
Cc: emacs-devel
Thien-Thi Nguyen wrote:
>"Robert Anderson" <RWA@sbcglobal.net> writes:
>
> When I help identify and fix bugs, I like to be able to provide a
> "push-button" test case that demonstrates the problem, and
> prevents regression once the problem has been fixed.
>
>this approach is also useful for new code.
>
> When I run "make check" for GNU emacs, it tells me there are no
> tests for emacs yet.
>
> Have there been any initiatives to develop a testing system for
> emacs?
>
>that's what the ftp site is for, no? (half-smiley.)
>
That went over my head. What ftp site?
Bob
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: emacs test suite?
2003-01-16 21:19 emacs test suite? Robert Anderson
2003-01-16 23:28 ` Thien-Thi Nguyen
@ 2003-01-18 0:48 ` Richard Stallman
1 sibling, 0 replies; 8+ messages in thread
From: Richard Stallman @ 2003-01-18 0:48 UTC (permalink / raw)
Cc: emacs-devel
When I run "make check" for GNU emacs, it tells me there are no
tests for emacs yet.
Have there been any initiatives to develop a testing system for
emacs?
I don't remember any. Anyway, nobody has been looking at it recently.
Many, perhaps most, Emacs bug reports involve interactive input or
incorrect display or both. It's hard to make test cases for such
problems. Given this, is a testing system still useful?
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: emacs test suite?
@ 2003-01-17 0:25 Robert Anderson
2003-01-17 6:43 ` Thien-Thi Nguyen
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Robert Anderson @ 2003-01-17 0:25 UTC (permalink / raw)
Cc: emacs-devel
--- Original Message ---
From: Thien-Thi Nguyen <ttn@glug.org>
To: "Robert Anderson" <RWA@sbcglobal.net>
CC: emacs-devel@gnu.org
Subject: Re: emacs test suite?
>"Robert Anderson" <RWA@sbcglobal.net> writes:
>
> When I help identify and fix bugs, I like to be able to provide a
> "push-button" test case that demonstrates the problem, and
> prevents regression once the problem has been fixed.
>
>this approach is also useful for new code.
>
> When I run "make check" for GNU emacs, it tells me there are no
> tests for emacs yet.
>
> Have there been any initiatives to develop a testing system for
> emacs?
>
>that's what the ftp site is for, no? (half-smiley.)
>
>i'm in favor of such a system. for current-column munging (in
the presence of
>variable-width fonts), i have a local testing setup but it is
not generalized.
>this could be because testing interactive programs typically
requires a driver
>program external to the one under test, and that starts stepping
into debugger
>territory (where programmers' disparate debugging styles is
nonregularizable).
>
>however, having said that, perhaps someone could build a system
on top of
>screen(1), for text mode; and something analogous, for X.
>
>thi
[sorry for the screwed up quoting, my mailer is horrible.]
It depends on what you are trying to test, I suppose. I think
there is a broad class of "textual transformation" tests that
would be trivial to implement as batch jobs called from a simple
script harness.
In fact, I've made a very simple sketch of how such a thing would
work, which verifies the cc-mode filling bug in CVS HEAD (and
also demonstrates that it works "as expected" for 21.1.1 and 20.7.1.)
There is a driver script which runs GNU find on a subtree looking
for programs which have the name, by convention, "run-test".
Each command "run-test" accepts an argument "--description" which
is spits out a one-line description to be displayed while the
test is running, as well as an option to specify a full path to
the emacs binary to test. Each program "run-test" returns 0 for
pass and non-zero for fail.
I suspect from perusing the mailing list that this sort of thing
might be valuable, if people would use it.
Bob
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: emacs test suite?
2003-01-17 0:25 Robert Anderson
@ 2003-01-17 6:43 ` Thien-Thi Nguyen
2003-01-19 1:35 ` Richard Stallman
2003-01-19 1:36 ` Richard Stallman
2 siblings, 0 replies; 8+ messages in thread
From: Thien-Thi Nguyen @ 2003-01-17 6:43 UTC (permalink / raw)
Cc: emacs-devel
From: "Robert Anderson" <RWA@sbcglobal.net>
Date: Thu, 16 Jan 2003 19:25:07 -0500
I suspect from perusing the mailing list that this sort of thing
might be valuable, if people would use it.
value arises from the meeting of the eye and the train-track. the
tree-walk you describe sounds agreeable, so ... did i miss a link to
posted code? see also "ttn-do cron-walk":
http://www.glug.org/people/ttn/software/ttn-do/dist/
how do people feel about using scheme scripts for emacs development?
thi
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: emacs test suite?
2003-01-17 0:25 Robert Anderson
2003-01-17 6:43 ` Thien-Thi Nguyen
@ 2003-01-19 1:35 ` Richard Stallman
2003-01-19 1:36 ` Richard Stallman
2 siblings, 0 replies; 8+ messages in thread
From: Richard Stallman @ 2003-01-19 1:35 UTC (permalink / raw)
Cc: ttn
In fact, I've made a very simple sketch of how such a thing would
work, which verifies the cc-mode filling bug in CVS HEAD (and
also demonstrates that it works "as expected" for 21.1.1 and 20.7.1.)
If you can find a useful subset of bugs that you can test in this way,
it seems worth pursuing.
I am concerned, though, about the time it might take to enter bugs in
the tests. I can barely find time to fix some bugs--I certainly
cannot write tests for them too. And I would hate to see the scarce
time of people like Kim Storm and Stefan Monnier diverted into writing
tests instead of fixing bugs and adding features.
If we can find volunteers who like writing tests, then we could build
up a set of tests.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: emacs test suite?
2003-01-17 0:25 Robert Anderson
2003-01-17 6:43 ` Thien-Thi Nguyen
2003-01-19 1:35 ` Richard Stallman
@ 2003-01-19 1:36 ` Richard Stallman
2 siblings, 0 replies; 8+ messages in thread
From: Richard Stallman @ 2003-01-19 1:36 UTC (permalink / raw)
Cc: ttn
>however, having said that, perhaps someone could build a system
on top of
>screen(1), for text mode; and something analogous, for X.
That is a bizarre idea, but it might work.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2003-01-19 1:36 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-16 21:19 emacs test suite? Robert Anderson
2003-01-16 23:28 ` Thien-Thi Nguyen
2003-01-17 2:17 ` Robert W Anderson
2003-01-18 0:48 ` Richard Stallman
-- strict thread matches above, loose matches on Subject: below --
2003-01-17 0:25 Robert Anderson
2003-01-17 6:43 ` Thien-Thi Nguyen
2003-01-19 1:35 ` Richard Stallman
2003-01-19 1:36 ` Richard Stallman
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.