Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.7 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DE409C2BA16 for ; Tue, 7 Apr 2020 07:18:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id AAFDD20747 for ; Tue, 7 Apr 2020 07:18:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727081AbgDGHSz (ORCPT ); Tue, 7 Apr 2020 03:18:55 -0400 Received: from mx2.suse.de ([195.135.220.15]:47096 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726591AbgDGHSy (ORCPT ); Tue, 7 Apr 2020 03:18:54 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 40EC5AC92 for ; Tue, 7 Apr 2020 07:18:53 +0000 (UTC) From: Qu Wenruo To: linux-btrfs@vger.kernel.org Subject: [PATCH v3 0/2] btrfs-progs: tests: Enahance INSTRUMENT coverage Date: Tue, 7 Apr 2020 15:18:43 +0800 Message-Id: <20200407071845.29428-1-wqu@suse.com> X-Mailer: git-send-email 2.26.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org This patchset will enhance INSTRUMENT coverage for all btrfs related commands. Since now INSTRUMENT would also cover a lot of btrfs inspect-dump comands, fix some test cases where INSTRUMENT output could easily pollute them. Now fsck/convert/misc/mkfs all pass with INSTRUMENT="valgrind --leak-check=full". Changelog: v2: - Pass INSTRUMENT as space split command - Unset previous cmmd_array in expand_command() Instead of unsetting it. - Use local variable @i in expand_command() To fix misc/004 - Add extra commands for INSTRUMENT coverage This incldues btrfstune, btrfs-corrupt-block, btrfs-image, btrfs-select-super, btrfs-find-root. - Fix test cases which uses run_check_stdout without filtering v3: - Adding proper filtering for run_check_stdout() callers Instead of removing run_check_stdout(), to keep the coverage the same. Qu Wenruo (2): btrfs-progs: tests: Filter output for run_check_stdout btrfs-progs: tests: Introduce expand_command() to inject aruguments more accurately tests/common | 189 +++++++++--------- tests/misc-tests/004-shrink-fs/test.sh | 11 +- .../009-subvolume-sync-must-wait/test.sh | 2 +- .../013-subvolume-sync-crash/test.sh | 2 +- .../024-inspect-internal-rootid/test.sh | 21 +- .../031-qgroup-parent-child-relation/test.sh | 4 +- 6 files changed, 120 insertions(+), 109 deletions(-) -- 2.26.0