From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17454 invoked by alias); 9 Jan 2012 10:02:37 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 30104 Received: (qmail 25000 invoked from network); 9 Jan 2012 10:02:25 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS autolearn=ham version=3.3.2 Received-SPF: none (ns1.primenet.com.au: domain at csr.com does not designate permitted sender hosts) Date: Mon, 9 Jan 2012 10:02:15 +0000 From: Peter Stephenson To: Subject: Re: Adding tests for zle? The missing X series tests Message-ID: <20120109100215.17cf71d6@pwslap01u.europe.root.pri> In-Reply-To: References: <20111221113947.75942dd8@pwslap01u.europe.root.pri> <20120104173844.34681459@pws-pc.ntlworld.com> Organization: Cambridge Silicon Radio X-Mailer: Claws Mail 3.7.9 (GTK+ 2.22.0; i386-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.101.10.170] X-Scanned-By: MailControl 7.6.5 (www.mailcontrol.com) on 10.71.0.133 On Sun, 8 Jan 2012 16:20:20 -0800 Felix Rosencrantz 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). -- Peter Stephenson 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