From patchwork Thu Dec 25 01:32:13 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Qu Wenruo X-Patchwork-Id: 5540771 Return-Path: X-Original-To: patchwork-linux-btrfs@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id A2278BEEA8 for ; Thu, 25 Dec 2014 01:34:25 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C853C201C7 for ; Thu, 25 Dec 2014 01:34:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B1698201DD for ; Thu, 25 Dec 2014 01:34:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752071AbaLYBeS (ORCPT ); Wed, 24 Dec 2014 20:34:18 -0500 Received: from cn.fujitsu.com ([59.151.112.132]:28622 "EHLO heian.cn.fujitsu.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1751780AbaLYBeQ (ORCPT ); Wed, 24 Dec 2014 20:34:16 -0500 X-IronPort-AV: E=Sophos;i="5.04,848,1406563200"; d="scan'208";a="47022179" Received: from unknown (HELO edo.cn.fujitsu.com) ([10.167.33.5]) by heian.cn.fujitsu.com with ESMTP; 25 Dec 2014 09:30:52 +0800 Received: from G08CNEXCHPEKD02.g08.fujitsu.local (localhost.localdomain [127.0.0.1]) by edo.cn.fujitsu.com (8.14.3/8.13.1) with ESMTP id sBP1XkkR020164 for ; Thu, 25 Dec 2014 09:33:46 +0800 Received: from localhost.localdomain (10.167.226.33) by G08CNEXCHPEKD02.g08.fujitsu.local (10.167.33.89) with Microsoft SMTP Server (TLS) id 14.3.181.6; Thu, 25 Dec 2014 09:34:13 +0800 From: Qu Wenruo To: Subject: [PATCH 3/5] btrfs-progs: Move bad root items test cases to its corresponding dir Date: Thu, 25 Dec 2014 09:32:13 +0800 Message-ID: <1419471135-10878-4-git-send-email-quwenruo@cn.fujitsu.com> X-Mailer: git-send-email 2.2.1 In-Reply-To: <1419471135-10878-1-git-send-email-quwenruo@cn.fujitsu.com> References: <1419471135-10878-1-git-send-email-quwenruo@cn.fujitsu.com> MIME-Version: 1.0 X-Originating-IP: [10.167.226.33] Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Now 006-bad-root-items has two cases, one for default case, and one for skinny metadata case. Signed-off-by: Qu Wenruo --- .../default_case.tar.xz} | Bin .../skinny_case.tar.xz} | Bin tests/fsck-tests/006-bad-root-items/test.sh | 15 +++++++++++++++ 3 files changed, 15 insertions(+) rename tests/fsck-tests/{006-bad_root_items_fs.tar.xz => 006-bad-root-items/default_case.tar.xz} (100%) rename tests/fsck-tests/{007-bad_root_items_fs_skinny.tar.xz => 006-bad-root-items/skinny_case.tar.xz} (100%) create mode 100755 tests/fsck-tests/006-bad-root-items/test.sh diff --git a/tests/fsck-tests/006-bad_root_items_fs.tar.xz b/tests/fsck-tests/006-bad-root-items/default_case.tar.xz similarity index 100% rename from tests/fsck-tests/006-bad_root_items_fs.tar.xz rename to tests/fsck-tests/006-bad-root-items/default_case.tar.xz diff --git a/tests/fsck-tests/007-bad_root_items_fs_skinny.tar.xz b/tests/fsck-tests/006-bad-root-items/skinny_case.tar.xz similarity index 100% rename from tests/fsck-tests/007-bad_root_items_fs_skinny.tar.xz rename to tests/fsck-tests/006-bad-root-items/skinny_case.tar.xz diff --git a/tests/fsck-tests/006-bad-root-items/test.sh b/tests/fsck-tests/006-bad-root-items/test.sh new file mode 100755 index 0000000..2c0e1c6 --- /dev/null +++ b/tests/fsck-tests/006-bad-root-items/test.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +source $top/tests/common + +echo "extracting image default_case.tar.xz" >> $RESULT +tar xJf default_case.tar.xz || \ + _fail "failed to extract default_case.tar.xz" +check_image test.img + +echo "extracting image skinny_case.tar.xz" >> $RESULT +tar xJf skinny_case.tar.xz || \ + _fail "failed to extract skinny_case.tar.xz" +check_image test.img + +rm test.img