From patchwork Thu Feb 22 11:00:03 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 129200 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp477077lja; Thu, 22 Feb 2018 03:14:20 -0800 (PST) X-Google-Smtp-Source: AH8x227I4PU7B2NDAFupi4Xb28YCVI2S/UjGmyIsU1n/mIj88dS6ggGqZNykCqou6vv9a9XYSur1 X-Received: by 10.237.45.226 with SMTP id i89mr10077309qtd.246.1519298059900; Thu, 22 Feb 2018 03:14:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519298059; cv=none; d=google.com; s=arc-20160816; b=z/Uj0B8/k+5G2E/XhYybqSgbU1zG2pIVrOAJxx/+2jRqgmcKJQglRU+2z7j0aXlMgj hEtXy7bXiM6LW9L/Tupq4MAiEHuNn+zy/0pDwy/Tn7SlApVgoSLcbiF0qdbvlTDWW5T0 3csV6rakIGwFFAHRrfqwVC6zx3VXfTXuC1NTs0lKqxArM3XsY5uWaiqFAjEaHprI6770 u+H4cpMEaKhjf+FAiq9OxK/mypR5KsH6AVMIGhAnJtkJNhe4Csd2WPxpvhD9Uka45MVq ROfceXqZ4iDBYU+RpcyJXc/2OtSpKHrnady4JO7hn/+YjW9HS8aOvLK3SuyztCg5Lhb/ xzew== 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=qXwO2N3Rd20SzcAYXleFSarJHOQ+nGU0k/rZboMOBtM=; b=SUEYXjfuw0AmTkYudzPUAoi8UWtk75nqb7K/8lm8lOl0NT0A3GhoO5tyY0Zkv5YrsD mtV8CQroczrXaFFspa+cS24D0v88Y0N4FZGh5xq78tqrRB3J0pv2ydiQVBlIzMpe0wAk Cq2LDfczRbPLCFJkBR+sLPcYt/94wTIN/5XcFMscM3BuygRxeKo9rfRXlv7CptsHJiEU df2ZH1LL6eUkqvpaDH3D2Uan4wnm9FESGQZ91XNks4Fh36MX+0borBiuMMIr/OtxCKZt fc/55Qvx6w6WlxyOAKMC1D2iSUlMXKnX7P2EL/88MYld4EjVEXQSWTAXeJTWypmILNTq vC3A== 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 r65si1334056qkd.367.2018.02.22.03.14.19; Thu, 22 Feb 2018 03:14:19 -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 7C978627E3; Thu, 22 Feb 2018 11:14:19 +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 52AAD61783; Thu, 22 Feb 2018 11:05:21 +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 37A8E61761; Thu, 22 Feb 2018 11:05:13 +0000 (UTC) Received: from forward105p.mail.yandex.net (forward105p.mail.yandex.net [77.88.28.108]) by lists.linaro.org (Postfix) with ESMTPS id B17B5616FA for ; Thu, 22 Feb 2018 11:02:05 +0000 (UTC) Received: from mxback12g.mail.yandex.net (mxback12g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:91]) by forward105p.mail.yandex.net (Yandex) with ESMTP id 9C9F2408492C for ; Thu, 22 Feb 2018 14:00:12 +0300 (MSK) Received: from smtp3o.mail.yandex.net (smtp3o.mail.yandex.net [2a02:6b8:0:1a2d::27]) by mxback12g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id YT9wjorrtm-0CumBXML; Thu, 22 Feb 2018 14:00:12 +0300 Received: by smtp3o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id 1KdKaWOyy6-0BYqvkqh; Thu, 22 Feb 2018 14:00:11 +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, 22 Feb 2018 14:00:03 +0300 Message-Id: <1519297209-16246-3-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1519297209-16246-1-git-send-email-odpbot@yandex.ru> References: <1519297209-16246-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 496 Subject: [lng-odp] [PATCH v5 2/8] example: generator: skip execution on unsupported platforms 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 null: pktio class is not a part of ABI, so it might be unsupported on some of platforms. Add condition guarding execution of this example only on supported platforms. Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 496 (lumag:tests-fix-2) ** https://github.com/Linaro/odp/pull/496 ** Patch: https://github.com/Linaro/odp/pull/496.patch ** Base sha: 5a58bbf2bb331fd7dde2ebbc0430634ace6900fb ** Merge commit sha: ff7207680d71ef66c6c24fcacdc8597168abbd6b **/ example/generator/Makefile.am | 3 +++ example/generator/generator_run.sh | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/example/generator/Makefile.am b/example/generator/Makefile.am index 63f4ae608..cd2383187 100644 --- a/example/generator/Makefile.am +++ b/example/generator/Makefile.am @@ -4,7 +4,10 @@ bin_PROGRAMS = odp_generator odp_generator_SOURCES = odp_generator.c +TEST_EXTENSIONS = .sh + if test_example TESTS = generator_run.sh +TESTS_ENVIRONMENT += ODP_PLATFORM=$(with_platform) endif EXTRA_DIST = generator_run.sh diff --git a/example/generator/generator_run.sh b/example/generator/generator_run.sh index 2d741a8d1..3d8ac0e98 100755 --- a/example/generator/generator_run.sh +++ b/example/generator/generator_run.sh @@ -6,6 +6,12 @@ # SPDX-License-Identifier: BSD-3-Clause # +if [ -n "${ODP_PLATFORM}" -a "x${ODP_PLATFORM}" != "xlinux-generic" ] +then + echo "Skipping test on probably unsupported platform" + exit 77 +fi + ./odp_generator${EXEEXT} -w 1 -n 1 -I null:0 -m u STATUS=$?