From patchwork Thu Nov 1 18:11:16 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ben Dooks X-Patchwork-Id: 10664413 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id AF37417DF for ; Thu, 1 Nov 2018 18:11:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A2DF62C307 for ; Thu, 1 Nov 2018 18:11:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 965C92C327; Thu, 1 Nov 2018 18:11:28 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 33E0C2C324 for ; Thu, 1 Nov 2018 18:11:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727703AbeKBDPa (ORCPT ); Thu, 1 Nov 2018 23:15:30 -0400 Received: from imap1.codethink.co.uk ([176.9.8.82]:52037 "EHLO imap1.codethink.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727564AbeKBDPa (ORCPT ); Thu, 1 Nov 2018 23:15:30 -0400 Received: from [148.252.241.226] (helo=rainbowdash) by imap1.codethink.co.uk with esmtpsa (Exim 4.84_2 #1 (Debian)) id 1gIHRF-0006Nn-RG; Thu, 01 Nov 2018 18:11:25 +0000 Received: from ben by rainbowdash with local (Exim 4.91) (envelope-from ) id 1gIHRD-00012i-OF; Thu, 01 Nov 2018 18:11:23 +0000 From: Ben Dooks To: linux-sparse@vger.kernel.org Cc: Ben Dooks Subject: [PATCH 4/5] validation: add clean command Date: Thu, 1 Nov 2018 18:11:16 +0000 Message-Id: <20181101181117.3877-5-ben.dooks@codethink.co.uk> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181101181117.3877-1-ben.dooks@codethink.co.uk> References: <20181101181117.3877-1-ben.dooks@codethink.co.uk> MIME-Version: 1.0 Sender: linux-sparse-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sparse@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add command to clean the output files up post working. Signed-off-by: Ben Dooks --- validation/test-suite | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/validation/test-suite b/validation/test-suite index 5e10942..c5f726f 100755 --- a/validation/test-suite +++ b/validation/test-suite @@ -157,6 +157,7 @@ echo "Usage: $prog_name [command] [command arguments]" echo echo "commands:" echo " none runs the whole test suite" +echo " clean clean all output files" echo " single file runs the test in 'file'" echo " format file [name [cmd]] helps writing a new test case using cmd" echo @@ -372,6 +373,16 @@ arg_file() case "$1" in '') do_test_suite + ;; + clean) + rm *.output.diff + rm *.output.got + rm *.output.expected + rm *.error.diff + rm *.error.got + rm *.error.expected + + ;; single) arg_file "$2"