From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21960 invoked by alias); 11 Jan 2012 16:51:56 -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: 30108 Received: (qmail 7728 invoked from network); 11 Jan 2012 16:51:55 -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=-1.6 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,RCVD_IN_DNSWL_LOW, T_DKIM_INVALID,T_TO_NO_BRKTS_FREEMAIL autolearn=no version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.213.43 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=SzCjG6UdJ3K+yHNOj8fcdQwndcPAGb//wJF4MzV69W4=; b=HWLzCGdB+SBLEAMlPRftEIkcypIux2qUkx/0i9x7dPZIR7RhO86TLmkvxTMDu/NnAu h/s+g14Dk2QNK0UGcnB9nyIF2DPp2r8pGEHpgzkl1gHIi1RcdxZlu0iEQWATIKLzyxHx kjH5u0tirVymRjGDmSajJPMUX7cUwXtrB4vFI= MIME-Version: 1.0 In-Reply-To: <20120109100215.17cf71d6@pwslap01u.europe.root.pri> References: <20111221113947.75942dd8@pwslap01u.europe.root.pri> <20120104173844.34681459@pws-pc.ntlworld.com> <20120109100215.17cf71d6@pwslap01u.europe.root.pri> Date: Wed, 11 Jan 2012 08:45:39 -0800 Message-ID: Subject: Re: Adding tests for zle? The missing X series tests From: Felix Rosencrantz To: zsh-workers@zsh.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Mon, Jan 9, 2012 at 2:02 AM, Peter Stephenson wrote: > 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. =A0The >> zletest file is based on comptest, and includes debugging code. =A0The >> test is flaky, so there might be some buffering issues, or I'm not >> properly reseting the state between tests. =A0(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=3DX check >> >> I would be interest in any feedback. =A0These 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(). =A0I 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 =A0 =A0 =A0 =A0 =A0 =A0Software Engineer > Tel: +44 (0)1223 692070 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Cambridge Sil= icon 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 a= nd Wales, registered number 4187346, registered office Churchill House, Cam= bridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom > More information can be found at www.csr.com. Follow CSR on Twitter at ht= tp://twitter.com/CSR_PLC and read our blog at www.csr.com/blog