From patchwork Thu Feb 22 10: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: 129173 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp417397lja; Thu, 22 Feb 2018 02:01:29 -0800 (PST) X-Google-Smtp-Source: AG47ELu7Ty4+65dvsocX9xlmZTGJDmbBUktowPdXyhTv+q/oaJzKU+MbIJZ/bFw9rMb03V9zDhiR X-Received: by 10.55.170.209 with SMTP id t200mr9987373qke.228.1519293689804; Thu, 22 Feb 2018 02:01:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519293689; cv=none; d=google.com; s=arc-20160816; b=vJfzu0IMum6KIJ8d0ahrmXkDFiyJEmF+fUelbh/a5q442YQ4DU1vuvlUZ58/6e6sX7 onzC26Gf+zbPb42jU9fsXJAr/+7O4zUrZyU1TepWl1CFzYGK2Z0fQkPS8OLuk9QJQCdg jpuuAsgh8Zif8MXjq8USMn1gAyxOfNF+OVmLxrgybupwku9ivB5mtNS75xveeFKzjWnz gPyrFs12OF/vfjzjqtH9u7i987KhFUR9zOY8iEzeE1Bfq1uxL/awV205S1yIUTNwGIbA 6Ni0fBcHemKk6Bb2znhqkPIvcX+d2um9tr/EAyxnDA41XRi0PwCmdrvYgmIIfhMmBJlN 3+qg== 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=OVn0ppMYFX0Yu1BcgMyB7y4BXmRul0uW+fGURGVHhX8=; b=sC+euVgZ2JnNLrdZkOHiZLpQB4UpOB/JWmVR4pEfHq4FjrVt8koURVdeLjrPboyk78 SAcQwyUrzOjUokNgdFJox2tJvcGTDl+QxLqNixLO9fArDAyRdHCqzcR+jMzfeh8pk3hg uXgsbkiqNNztHm1dkvbvOBENl2XXIU+yrK+rrUlH7H4fGfhDPrqrh0ZTeYklqW9BVoyG fLDoadR6CFOC5XfnTBJundjDwO9koODjWherg0V45Krq+sB0QF4heALxd1hRr3KzfezF iRPRWD3u6n0l2rF8SuvtRN1GLVL/uaF3pVkH4qMVgZnoZUWIbxT/4OQCkW67/4WOjr+V YBNQ== 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 o65si1935868qka.412.2018.02.22.02.01.29; Thu, 22 Feb 2018 02:01:29 -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 45AC56173A; Thu, 22 Feb 2018 10:01:29 +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 4450E6077E; Thu, 22 Feb 2018 10: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 EE61060ABA; Thu, 22 Feb 2018 10:00:17 +0000 (UTC) Received: from forward104j.mail.yandex.net (forward104j.mail.yandex.net [5.45.198.247]) by lists.linaro.org (Postfix) with ESMTPS id B667060ABA for ; Thu, 22 Feb 2018 10:00:12 +0000 (UTC) Received: from mxback17j.mail.yandex.net (mxback17j.mail.yandex.net [IPv6:2a02:6b8:0:1619::93]) by forward104j.mail.yandex.net (Yandex) with ESMTP id 53E8945E77 for ; Thu, 22 Feb 2018 13:00:11 +0300 (MSK) Received: from smtp3o.mail.yandex.net (smtp3o.mail.yandex.net [2a02:6b8:0:1a2d::27]) by mxback17j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id jSZekFn06Y-0BHSAVJG; Thu, 22 Feb 2018 13:00:11 +0300 Received: by smtp3o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id NF3s7Z4AUy-0AY4iBY0; Thu, 22 Feb 2018 13:00:10 +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 13:00:03 +0300 Message-Id: <1519293608-14576-3-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1519293608-14576-1-git-send-email-odpbot@yandex.ru> References: <1519293608-14576-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 496 Subject: [lng-odp] [PATCH v2 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: 99fb903634fa03590985e6eca1ef7e0ba27cb0f1 **/ 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=$?