From patchwork Wed Jan 13 17:08:13 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 59670 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp3456227lbb; Wed, 13 Jan 2016 08:10:32 -0800 (PST) X-Received: by 10.55.81.2 with SMTP id f2mr57748621qkb.87.1452701432126; Wed, 13 Jan 2016 08:10:32 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id c63si1954336qgd.93.2016.01.13.08.10.31; Wed, 13 Jan 2016 08:10:32 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dkim=neutral (body hash did not verify) header.i=@linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 960876177A; Wed, 13 Jan 2016 16:10:31 +0000 (UTC) Authentication-Results: lists.linaro.org; dkim=fail reason="verification failed; unprotected key" header.d=linaro.org header.i=@linaro.org header.b=ICMQFPMf; dkim-adsp=none (unprotected policy); dkim-atps=neutral X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 30BC26177D; Wed, 13 Jan 2016 16:09:45 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 3BF7161775; Wed, 13 Jan 2016 16:09:39 +0000 (UTC) Received: from mail-lf0-f50.google.com (mail-lf0-f50.google.com [209.85.215.50]) by lists.linaro.org (Postfix) with ESMTPS id 368B261766 for ; Wed, 13 Jan 2016 16:09:37 +0000 (UTC) Received: by mail-lf0-f50.google.com with SMTP id c192so258549660lfe.2 for ; Wed, 13 Jan 2016 08:09:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=kSr4j6URgA24DeCKMjus+f/nW222LHX1hvAmtwkBETw=; b=ICMQFPMfXFTT2NyOM0qgBOYglZzwoR3MRqgAJ0z3LLurWuv/mvkbUTroViwX9mtfy3 L9/RXLe3+a/V4OlwEAyNMBH+DWc2crZOIwYj70fOflLRz7PYIsuvEniygYsgG3fvtpvh rI97DKszQGPdMMtIRnW/QTYKV3dxkyBiONSZ0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=kSr4j6URgA24DeCKMjus+f/nW222LHX1hvAmtwkBETw=; b=gWyh0lFSNioVyFR+0tukN5TrAR3RaEzpQFQqhbbVKoCfq3eYuoE5N3J1Vp3nE98dkY Pey/bhHYOrYE4obtu58ux4wQ4wtN0wcvZDR7hkiYo6OTg0cBjr1YgfOm6HYQ6nxRlXeJ TRO2eZY2eZr3Ysm/K8TU+RQFHjDA98kwmoK8AlTlF05JQoGCN/BDOyKJ90wtTY8nZ9xf Q08ITADtixgM5A+7QtZQuaXv7kyLH0ckl5myxXmm4QcLo2jHD4ZRMrJFgKKXsnoEwghN dGLUQTBO1nMSkRwzUFEDkgPduYN28x7xP8/EzOhY7xwm62Vzt2CmtkEd+7Vb1fVpW7jW ldZQ== X-Gm-Message-State: ALoCoQm3is25wrh4u7Acc+ODSdMaXyKcU3/a0NVfNfUA/Dse8XgDSBf07Kh05sVDi/JDOF+BYodDP4UPIGmbJKhLFGHVJyiSMw== X-Received: by 10.25.162.11 with SMTP id l11mr35493034lfe.30.1452701376125; Wed, 13 Jan 2016 08:09:36 -0800 (PST) Received: from erachmi-ericsson.ki.sw.ericsson.se (c-83-233-90-46.cust.bredband2.com. [83.233.90.46]) by smtp.gmail.com with ESMTPSA id uk7sm257674lbb.32.2016.01.13.08.09.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 13 Jan 2016 08:09:35 -0800 (PST) From: Christophe Milard To: mike.holmes@linaro.org, stuart.haslam@linaro.org Date: Wed, 13 Jan 2016 18:08:13 +0100 Message-Id: <1452704893-17874-3-git-send-email-christophe.milard@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1452704893-17874-1-git-send-email-christophe.milard@linaro.org> References: <1452704893-17874-1-git-send-email-christophe.milard@linaro.org> X-Topics: patch Cc: lng-odp@lists.linaro.org Subject: [lng-odp] [PATCHv2 3/3] doc: implementers-guide: inactive precond tests X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" Signed-off-by: Christophe Milard --- doc/implementers-guide/implementers-guide.adoc | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/doc/implementers-guide/implementers-guide.adoc b/doc/implementers-guide/implementers-guide.adoc index 57be4b2..0eafacf 100644 --- a/doc/implementers-guide/implementers-guide.adoc +++ b/doc/implementers-guide/implementers-guide.adoc @@ -418,4 +418,25 @@ test (foo_test_x) is run. If the precondition function (foo_check_x above) returns false, the test is not relevant (or impossible to perform) and it will be skipped. +================= +*Note* + +Conditionnal tests can be marked as inactive, keeping the precondition +function. Both the test and the precondition function will be skipped, +but re-activating the test is then just a matter of changing back the macro +from ODP_TEST_INFO_INACTIVE to ODP_TEST_INFO_CONDITIONAL: + +[source,c] +------------------ + ... + /* active conditionnal test */ + ODP_TEST_INFO_CONDITIONAL(foo_test_x, foo_check_x), + + /* inactive conditionnal test */ + ODP_TEST_INFO_INACTIVE(foo_test_y, foo_check_y), + ... +------------------ +================= + + include::../glossary.adoc[]