From patchwork Sat Feb 13 17:40:59 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Theodore Ts'o X-Patchwork-Id: 8300421 Return-Path: X-Original-To: patchwork-fstests@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id A06DCC02AA for ; Sat, 13 Feb 2016 17:41:31 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A7FDB20437 for ; Sat, 13 Feb 2016 17:41:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3C43D2044B for ; Sat, 13 Feb 2016 17:41:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750879AbcBMRlX (ORCPT ); Sat, 13 Feb 2016 12:41:23 -0500 Received: from imap.thunk.org ([74.207.234.97]:34534 "EHLO imap.thunk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750898AbcBMRlP (ORCPT ); Sat, 13 Feb 2016 12:41:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=thunk.org; s=ef5046eb; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From; bh=BInoQdISzw4uSyzeU1pCowWBS1nJrj1FIVSj++5xKDU=; b=teP4iT5xK565ubzi3wiU7uS6P3AzqeIs4v9I9J0Y9U3CC5jJPmiY1GAhYiKDs3ufYaxWjKkYxud7yuEgzga55lEOba3RzrZ86CX1d28qpTLO/kRvp1W8l+Zn75N0h4B1/hTwZDvxZfAbN4QrqrX1a5y1zsIRngsHJY9toZsKCvc=; Received: from root (helo=closure.thunk.org) by imap.thunk.org with local-esmtp (Exim 4.84) (envelope-from ) id 1aUeC2-0004cX-EK; Sat, 13 Feb 2016 17:41:14 +0000 Received: by closure.thunk.org (Postfix, from userid 15806) id D655682E090; Sat, 13 Feb 2016 12:41:12 -0500 (EST) From: Theodore Ts'o To: fstests@vger.kernel.org Cc: hughd@google.com, Theodore Ts'o Subject: [PATCH 06/16] generic: add _require_odirect to generic/113 and generic/214 Date: Sat, 13 Feb 2016 12:40:59 -0500 Message-Id: <1455385269-26319-7-git-send-email-tytso@mit.edu> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1455385269-26319-1-git-send-email-tytso@mit.edu> References: <1455385269-26319-1-git-send-email-tytso@mit.edu> X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: tytso@thunk.org X-SA-Exim-Scanned: No (on imap.thunk.org); SAEximRunCond expanded to false Sender: fstests-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=unavailable 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 generic/113 and generic/214 both use O_DIRECT at some stage in their tests, so check O_DIRECT support before running them. Signed-off-by: Hugh Dickins Signed-off-by: Theodore Ts'o Reviewed-by: Christoph Hellwig --- tests/generic/113 | 1 + tests/generic/214 | 1 + 2 files changed, 2 insertions(+) diff --git a/tests/generic/113 b/tests/generic/113 index 7208fa2..54d6191 100755 --- a/tests/generic/113 +++ b/tests/generic/113 @@ -77,6 +77,7 @@ _do_test() _supported_fs generic _supported_os Linux _require_test +_require_odirect [ -x $here/ltp/aio-stress ] || _notrun "aio-stress not built for this platform" diff --git a/tests/generic/214 b/tests/generic/214 index dff267e..7838047 100755 --- a/tests/generic/214 +++ b/tests/generic/214 @@ -55,6 +55,7 @@ rm -f $seqres.full rm -f $TEST_DIR/ouch* _require_xfs_io_command "falloc" +_require_odirect # Ok, off we go.