From patchwork Fri May 27 06:33:12 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xiao Yang X-Patchwork-Id: 9137787 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id DC8AB6075C for ; Fri, 27 May 2016 07:18:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CF98C27CCD for ; Fri, 27 May 2016 07:18:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C466F27D10; Fri, 27 May 2016 07:18:41 +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=-6.9 required=2.0 tests=BAYES_00,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 5D9A627CCD for ; Fri, 27 May 2016 07:18:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754808AbcE0HSk (ORCPT ); Fri, 27 May 2016 03:18:40 -0400 Received: from cn.fujitsu.com ([59.151.112.132]:29656 "EHLO heian.cn.fujitsu.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1754581AbcE0HSk (ORCPT ); Fri, 27 May 2016 03:18:40 -0400 X-IronPort-AV: E=Sophos;i="5.22,518,1449504000"; d="scan'208";a="6966969" Received: from unknown (HELO cn.fujitsu.com) ([10.167.33.5]) by heian.cn.fujitsu.com with ESMTP; 27 May 2016 15:18:35 +0800 Received: from G08CNEXCHPEKD03.g08.fujitsu.local (unknown [10.167.33.85]) by cn.fujitsu.com (Postfix) with ESMTP id EB4FC489F99C; Fri, 27 May 2016 15:18:34 +0800 (CST) Received: from localhost.localdomain (10.167.220.69) by G08CNEXCHPEKD03.g08.fujitsu.local (10.167.33.89) with Microsoft SMTP Server (TLS) id 14.3.279.2; Fri, 27 May 2016 15:18:34 +0800 From: Xiao Yang To: CC: , Xiao Yang Subject: [PATCH] xfs/122: add check number of structure Date: Fri, 27 May 2016 14:33:12 +0800 Message-ID: <1464330792-24031-1-git-send-email-yangx.jy@cn.fujitsu.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <20160526163249.GA4595@birch.djwong.org> References: <20160526163249.GA4595@birch.djwong.org> MIME-Version: 1.0 X-Originating-IP: [10.167.220.69] X-yoursite-MailScanner-ID: EB4FC489F99C.ACA1C X-yoursite-MailScanner: Found to be clean X-yoursite-MailScanner-From: yangx.jy@cn.fujitsu.com Sender: fstests-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP I think the number of structure is always changing based on different xfsporg-dev version. If some expected structure is missing in current environment, we won't check structure size and offset and set the result to notrun. Signed-off-by: Xiao Yang --- tests/xfs/122 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/xfs/122 b/tests/xfs/122 index 845cdd2..64f4a1b 100755 --- a/tests/xfs/122 +++ b/tests/xfs/122 @@ -239,6 +239,11 @@ if [ $XFSPROGS_VERSION -lt 30000 ]; then echo 'sizeof( xfs_dsb_t ) = 208' >>$progout; fi +actual_num=`cat $progout | wc -l` +if [ $actual_num -lt 148 ]; then + _notrun "Some structure is missing in current envirment" +fi + LC_COLLATE=POSIX sort $progout status=0