From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10000 invoked by alias); 26 Dec 2013 00:13:15 -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: 32183 Received: (qmail 7595 invoked from network); 26 Dec 2013 00:13:08 -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.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 From: Bart Schaefer Message-id: <131225161321.ZM25094@torch.brasslantern.com> Date: Wed, 25 Dec 2013 16:13:21 -0800 X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-workers@zsh.org Subject: Recent patches, plus tests MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Since a couple of important problems have been reported since the 5.0.4 release, I'm going to go ahead and commit my last few patches so they can go into 5.0.5 whenever PWS gets back to it. Here's a patch to add command-position completion tests. If we ever add tests of specific completion functions the path assignment may need to change or move, as it is this seems the best way to guarantee a unique match for the prefix string. diff --git a/Test/Y01completion.ztst b/Test/Y01completion.ztst index 1d21c2a..906a634 100644 --- a/Test/Y01completion.ztst +++ b/Test/Y01completion.ztst @@ -45,7 +45,7 @@ >line: {: ~user1}{} comptest $'echo ;:\C-b\C-b\t' -0:tilde +0:directories and files before separator >line: {echo }{;:} >DESCRIPTION:{file} >DI:{dir1} @@ -53,6 +53,26 @@ >FI:{file1} >FI:{file2} +# Depends on path assignment in comptestinit + comptest $'zt\t' +0:command +>line: {ztst.zsh }{} + + comptest $':;zt\t' +0:command after separator +>line: {:;ztst.zsh }{} +F:regression test workers/32182 + + comptest $'for f in 1; do < x\C-b\C-b\t' +0:redirection after "for ...; do" +>line: {for f in 1; do <}{ x} +>DESCRIPTION:{file} +>DI:{dir1} +>DI:{dir2} +>FI:{file1} +>FI:{file2} +F:regression test workers/31611 + %clean zmodload -ui zsh/zpty diff --git a/Test/comptest b/Test/comptest index 10814d6..4fd9b27 100644 --- a/Test/comptest +++ b/Test/comptest @@ -30,6 +30,7 @@ comptestinit () { "export LC_ALL=C" \ "emulate -R zsh" \ "export ZDOTDIR=$ZTST_testdir" \ +"path=( $ZTST_srcdir:A )" \ "module_path=( $module_path )" \ "fpath=( $fpath )" \ "bindkey -$comptest_keymap" \