From: Felix Rosencrantz <f.rosencrantz@gmail.com>
To: zsh-workers@zsh.org
Subject: Re: Adding tests for zle? The missing X series tests
Date: Wed, 11 Jan 2012 08:45:39 -0800 [thread overview]
Message-ID: <CANGpWcc35VL9RbjZPfQTui36N-wCs2xx-z8C8QPtCxGPC56VsQ@mail.gmail.com> (raw)
In-Reply-To: <20120109100215.17cf71d6@pwslap01u.europe.root.pri>
On Mon, Jan 9, 2012 at 2:02 AM, Peter Stephenson
<Peter.Stephenson@csr.com> wrote:
> On Sun, 8 Jan 2012 16:20:20 -0800
> Felix Rosencrantz <f.rosencrantz@gmail.com> wrote:
>> I've attached draft versions of the incremental search tests, based on
>> the suggestions of Bart and Peter. I just added on Peter's latest
>> change, previously I was using a hard coded escape sequence. The
>> zletest file is based on comptest, and includes debugging code. The
>> test is flaky, so there might be some buffering issues, or I'm not
>> properly reseting the state between tests. (Or just confused on what
>> to expect...)
>>
>> If you are interested in seeing what it does, you can add these under
>> the Test directory and run: make TESTNUM=X check
>>
>> I would be interest in any feedback. These are still draft condition,
>> but might be of interest to anyone following this thread.
>
> Thanks, I haven't looked at these yet but it occurred to me that even
> with the ability to look at termcap sequences we're still restricted by
> what capabilities the current terminal type offers, so the result will
> vary according to the TERM variable --- I haven't defined a way of
> intercepting tccan(). I suppose for full control that needs a zle -T
> function too (it just needs to test the return value).
The completion tests set TERM to vt100, as does the zle test script I sent.
Not sure if the completion tests rely on that. The zle draft test
sent, does rely on Vt100 to scrape off the control sequences.
-FR.
>
> --
> Peter Stephenson <pws@csr.com> Software Engineer
> Tel: +44 (0)1223 692070 Cambridge Silicon Radio Limited
> Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, UK
>
>
> Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom
> More information can be found at www.csr.com. Follow CSR on Twitter at http://twitter.com/CSR_PLC and read our blog at www.csr.com/blog
next prev parent reply other threads:[~2012-01-11 16:51 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-20 16:20 Felix Rosencrantz
2011-12-21 11:39 ` Peter Stephenson
2012-01-04 17:38 ` Peter Stephenson
2012-01-09 0:20 ` Felix Rosencrantz
2012-01-09 10:02 ` Peter Stephenson
2012-01-11 16:45 ` Felix Rosencrantz [this message]
2012-01-29 18:49 ` Peter Stephenson
2011-12-21 16:48 ` Bart Schaefer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CANGpWcc35VL9RbjZPfQTui36N-wCs2xx-z8C8QPtCxGPC56VsQ@mail.gmail.com \
--to=f.rosencrantz@gmail.com \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).