From patchwork Fri Sep 9 08:30:20 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xiao Yang X-Patchwork-Id: 9322685 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 450B760231 for ; Fri, 9 Sep 2016 08:33:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3803D29CED for ; Fri, 9 Sep 2016 08:33:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2CA8B29CEF; Fri, 9 Sep 2016 08:33:57 +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 B40ED29CED for ; Fri, 9 Sep 2016 08:33:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753140AbcIIId4 (ORCPT ); Fri, 9 Sep 2016 04:33:56 -0400 Received: from cn.fujitsu.com ([59.151.112.132]:56255 "EHLO heian.cn.fujitsu.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1752325AbcIIIdz (ORCPT ); Fri, 9 Sep 2016 04:33:55 -0400 X-IronPort-AV: E=Sophos;i="5.22,518,1449504000"; d="scan'208";a="10798691" Received: from unknown (HELO cn.fujitsu.com) ([10.167.33.5]) by heian.cn.fujitsu.com with ESMTP; 09 Sep 2016 16:33:53 +0800 Received: from G08CNEXCHPEKD03.g08.fujitsu.local (unknown [10.167.33.85]) by cn.fujitsu.com (Postfix) with ESMTP id 26AAE4042406; Fri, 9 Sep 2016 16:33:54 +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, 9 Sep 2016 16:33:53 +0800 From: Xiao Yang To: CC: , Xiao Yang Subject: [PATCH] xfs/263: skip test if Q_XGETQSTAT has been supported by kernel and xfsprogs Date: Fri, 9 Sep 2016 16:30:20 +0800 Message-ID: <1473409820-7390-1-git-send-email-yangx.jy@cn.fujitsu.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 X-Originating-IP: [10.167.220.69] X-yoursite-MailScanner-ID: 26AAE4042406.A62A1 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 Signed-off-by: Xiao Yang --- tests/xfs/263 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/xfs/263 b/tests/xfs/263 index 1dc47ae..01bbe3b 100755 --- a/tests/xfs/263 +++ b/tests/xfs/263 @@ -58,6 +58,10 @@ _require_xfs_quota _require_xfs_mkfs_crc _require_xfs_crc +#check if Q_XGETQSTAT has been supported by kernel and xfsprogs +grep -q 'Q_XGETQSTATV' /usr/include/linux/dqblk_xfs.h || _notrun "Q_XGETQSTAT hasn't been supported by kernel" +grep -q 'Q_XGETQSTATV' /usr/include/xfs/xqm.h || _notrun "Q_XGETQSTAT hasn't been supported by xfsprogs" + rm -f $seqres.full function option_string()