Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: atf for libcurses



On Thu 04 Nov 2010 at 17:56:43 +0200, Antti Kantee wrote:
> Ok, sounds easy enough.  IIRC someone noticed that nvi developed a
> regression where it left the cursor at the wrong place and wanted to
> write a test for it.  So in your scheme it would be a matter of sending
> the right commands to vi with "input" and figuring out what the expected
> output is.

One problem with curses and curses-using programs is that their real
output isn't a stream of characters, or a stream of commands, but the
appearance of the screen afterward.

There are in general multiple character or command sequences that
generate the same output. To verify curses at this sort of abstraction
level, one needs a terminal emulator of sorts, and check the resulting
"appearance".

-Olaf.
-- 
___ Olaf 'Rhialto' Seibert  -- There's no point being grown-up if you 
\X/ rhialto/at/xs4all.nl    -- can't be childish sometimes. -The 4th Doctor
X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


Home | Main Index | Thread Index | Old Index