From patchwork Wed Dec 20 22:00:10 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 122500 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp63548qgn; Wed, 20 Dec 2017 14:01:17 -0800 (PST) X-Google-Smtp-Source: ACJfBovuegzeyw9wpiuQJ/Q3P8Z7+Fti0Lq/QU6GwXPS9bLcUJYFNIn9X7MSkMwOGEHXEVSqsqML X-Received: by 10.200.7.65 with SMTP id k1mr12118611qth.123.1513807277294; Wed, 20 Dec 2017 14:01:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513807277; cv=none; d=google.com; s=arc-20160816; b=F0DzYCc8gZ7HZH3wcs9hSI7Ys8SRIUMWRgeG2nYmNj8RqN2KfbXdPMo167MlwTw8NL WBqFUSkVzTYFciCujTPbj6dSTZX6xBgEIlVfEe1CgNHwcWukQJ+KxgQYmbGuqWjjcQvS FoX6xIthF95oDtG2fFFbDNf1i7EW3vGg6rGNbAPIANpikx60TCLdJES9S6+ZkiehkhuZ /mgNv8dORmg+h5jiy9I34dqSIgq0g099oqz1ViRhBTrSiefiQu3EbvP0HZIYVqpvIaLK OvJRvQPZSIAiKYMj+jOSZXTI0dieDTaOENKTc/BeLc2RMlt9+xwaetwjIciL0F/eKKFx 4jkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:github-pr-num :references:in-reply-to:message-id:date:to:from:delivered-to :arc-authentication-results; bh=z5SU2/AlhZ79SmRQKo6uK1zUbfFH7grzOcRvNQgQmS4=; b=u1Bi21i68/F8jKdgpFw0MXzEsyqhySkoRMckCRBC+u1TfeD0rdLWn6t/0IRwyIE5ix WpO8LlDz8hC0Dkkh0piA7OxAmZSPLPh9GT7WmUDJEHLmlimzARPjLhNxGTmfk04VYJAZ pVqv/MxJkaNPEX/DxrIBV8mhhe1ldDXMhVc3DxqYp8YZcoN+wOunG1vIhxwtW2FyhTWI ISxYg5bRmts47DisbTS02mnu+h0e6xQRQZHsumbaUqIifijriW//iJ+642oIZk2sxuPX uRw1zkKLDu3PNxEj399H3yBejGT19tv6Us6seJUTbept8eDWq5YGj9uVkA9kPEq1dVbH daLQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from lists.linaro.org (ec2-54-197-127-237.compute-1.amazonaws.com. [54.197.127.237]) by mx.google.com with ESMTP id d14si1541058qtg.207.2017.12.20.14.01.14; Wed, 20 Dec 2017 14:01:17 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) client-ip=54.197.127.237; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: by lists.linaro.org (Postfix, from userid 109) id E7D1360922; Wed, 20 Dec 2017 22:01:13 +0000 (UTC) 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.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2 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 71F7560940; Wed, 20 Dec 2017 22:00:23 +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 B6FCE608A4; Wed, 20 Dec 2017 22:00:15 +0000 (UTC) Received: from forward100p.mail.yandex.net (forward100p.mail.yandex.net [77.88.28.100]) by lists.linaro.org (Postfix) with ESMTPS id 29209608EC for ; Wed, 20 Dec 2017 22:00:14 +0000 (UTC) Received: from mxback14j.mail.yandex.net (mxback14j.mail.yandex.net [IPv6:2a02:6b8:0:1619::90]) by forward100p.mail.yandex.net (Yandex) with ESMTP id B0F2851023A8 for ; Thu, 21 Dec 2017 01:00:12 +0300 (MSK) Received: from smtp1p.mail.yandex.net (smtp1p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:6]) by mxback14j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id XXB67Gqyag-0CNmIYKR; Thu, 21 Dec 2017 01:00:12 +0300 Received: by smtp1p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id qjaiYOcsHH-0CwqC9f5; Thu, 21 Dec 2017 01:00:12 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) From: Github ODP bot To: lng-odp@lists.linaro.org Date: Thu, 21 Dec 2017 01:00:10 +0300 Message-Id: <1513807210-15376-3-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1513807210-15376-1-git-send-email-odpbot@yandex.ru> References: <1513807210-15376-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 355 Subject: [lng-odp] [PATCH API-NEXT v1 2/2] validation: crypto: do not run tests if mode is not supported 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: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" From: Dmitry Eremin-Solenikov Do not run packet tests if corresponding packet-mode operation is not supported by the platform. Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 355 (lumag:crypto-modes-caps) ** https://github.com/Linaro/odp/pull/355 ** Patch: https://github.com/Linaro/odp/pull/355.patch ** Base sha: f2a1a84b43642f3d0911a351d9308d5501693290 ** Merge commit sha: 993c22bbf65ef0688c2bc8064173c967fde07571 **/ test/validation/api/crypto/odp_crypto_test_inp.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/validation/api/crypto/odp_crypto_test_inp.c b/test/validation/api/crypto/odp_crypto_test_inp.c index cba472ded..77fd49954 100644 --- a/test/validation/api/crypto/odp_crypto_test_inp.c +++ b/test/validation/api/crypto/odp_crypto_test_inp.c @@ -533,6 +533,15 @@ static int check_alg_support(odp_cipher_alg_t cipher, odp_auth_alg_t auth) if (odp_crypto_capability(&capability)) return ODP_TEST_INACTIVE; + if (suite_context.packet) { + if (suite_context.op_mode == ODP_CRYPTO_SYNC && + capability.sync_mode == ODP_SUPPORT_NO) + return ODP_TEST_INACTIVE; + if (suite_context.op_mode == ODP_CRYPTO_ASYNC && + capability.async_mode == ODP_SUPPORT_NO) + return ODP_TEST_INACTIVE; + } + /* Cipher algorithms */ switch (cipher) { case ODP_CIPHER_ALG_NULL: