From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 109121 invoked by alias); 25 Apr 2018 13:13:16 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 109101 invoked by uid 89); 25 Apr 2018 13:13:15 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mx2.suse.de Received: from mx2.suse.de (HELO mx2.suse.de) (195.135.220.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 25 Apr 2018 13:13:13 +0000 Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id C28A3AC71; Wed, 25 Apr 2018 13:13:11 +0000 (UTC) Subject: Re: RFC: bash completion To: David Malcolm , GCC Development References: <3c2e7f32-438a-57a3-96a8-3e9d3fc7f605@suse.cz> <1524587261.5688.193.camel@redhat.com> From: =?UTF-8?Q?Martin_Li=c5=a1ka?= Message-ID: <733e6e6d-b11f-148b-d60c-3c37a8e368f7@suse.cz> Date: Wed, 25 Apr 2018 13:53:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <1524587261.5688.193.camel@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2018-04/txt/msg00161.txt.bz2 On 04/24/2018 06:27 PM, David Malcolm wrote: > The patch doesn't have tests. There would need to be some way to > achieve test coverage for the completion code (especially as we start > to tackle the more interesting cases). I wonder what the best way to > do that is; perhaps a combination of selftest and DejaGnu? (e.g. what > about arch-specific completions? what about the interaction with bash? > etc) Maybe there's some hint how to test that: https://brbsix.github.io/2015/11/29/accessing-tab-completion-programmatically-in-bash/ Martin