From patchwork Thu Feb 22 09:00:05 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: 129163 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp370447lja; Thu, 22 Feb 2018 01:01:25 -0800 (PST) X-Google-Smtp-Source: AG47ELuf1cHSDUWPrLF5PiRFLPggneHhuhk916i3uog/STUUJkGWKeaq4k7z/3hSuCmE9ez/niDO X-Received: by 10.55.26.69 with SMTP id a66mr10084307qka.146.1519290085061; Thu, 22 Feb 2018 01:01:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519290085; cv=none; d=google.com; s=arc-20160816; b=nGdvAWdd3kTjEqWfEXWrk6QPwjsFwBlo36vNpAs6v8jGslaLhOBcMNXIxqEt0h1P+v uM8EajfkvmRuFmyT6H62z7mKBRoXAq18ki/9ypS71tLccJuf1hAiixOo1fv7k11iminu Cxt7G5IMukyPV/rWhqi2bdGDJWGxIniiWtSpIMykMYBWRO1Ea9OOzlQ1LdPQ3fUAh34J hooeH0gMC8H1T0jXYU8ep9eEfB4GwLe5eyGcXMTID+CLen1i+gNOstOU2KILdnw6INua Rw3XzQJlexZcVCxAnxDdYLqOpMYhwLFlnG1T15VNPcsLO4lG7tWb7NgooJn6ICuVR7dh lVFA== 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=mssezrqHwqO8QMJpInIO6FOV9XHzAS6UhkkQT93N5/s=; b=gpbtosEsKN4uOrOIQmlJDxyVQoeptUGeg58e4leFdlssxepw8Rb2yq/uk2bfPCGL3x WRMbFCVrpgcQ3RcPyL4W13+bliwV0/XkpPH1DzRW3/J0nJTj+1Uy56dRkScJpO7HC/o3 S32tMiaxY6UAOS0lmcLvbnL9sQ4x99pXhTy5GrOnboDPOKzYSNQ3n4dhnFpdKWMc/f/6 kww3Lfet4pPyTed57/lUTHITy7Q/PbEFHlaietEVtEPYsMmUy+3eOtTApxtCtdOn5WDW Dlz+NuL+x1aWXLuomvI8W0B6I5UGl6/9Rcm/9vzvE25VQA6uMJzhs93cU6w6odUI1+pK /iIg== 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 t24si1324115qtg.472.2018.02.22.01.01.24; Thu, 22 Feb 2018 01:01:25 -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 BAFAF61748; Thu, 22 Feb 2018 09:01:24 +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 C0F3760745; Thu, 22 Feb 2018 09:00:31 +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 ED58661737; Thu, 22 Feb 2018 09:00:22 +0000 (UTC) Received: from forward105o.mail.yandex.net (forward105o.mail.yandex.net [37.140.190.183]) by lists.linaro.org (Postfix) with ESMTPS id 82DF8616EA for ; Thu, 22 Feb 2018 09:00:16 +0000 (UTC) Received: from mxback9j.mail.yandex.net (mxback9j.mail.yandex.net [IPv6:2a02:6b8:0:1619::112]) by forward105o.mail.yandex.net (Yandex) with ESMTP id 5DAD34445FD0 for ; Thu, 22 Feb 2018 12:00:14 +0300 (MSK) Received: from smtp4j.mail.yandex.net (smtp4j.mail.yandex.net [2a02:6b8:0:1619::15:6]) by mxback9j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id aUMK0yviAt-0EvqL2Pf; Thu, 22 Feb 2018 12:00:14 +0300 Received: by smtp4j.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id Qk3Eeopztj-0DHmi6Lv; Thu, 22 Feb 2018 12:00:13 +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 12:00:05 +0300 Message-Id: <1519290010-13383-3-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1519290010-13383-1-git-send-email-odpbot@yandex.ru> References: <1519290010-13383-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 496 Subject: [lng-odp] [PATCH v1 2/7] 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: 2ca48deb89c7ac000bd44a1da037c36de66720cb **/ 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=$?