From patchwork Wed Oct 18 05:00:06 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: 116197 Delivered-To: patch@linaro.org Received: by 10.140.22.163 with SMTP id 32csp5662248qgn; Tue, 17 Oct 2017 22:05:26 -0700 (PDT) X-Google-Smtp-Source: ABhQp+TGViNGXjKroOvCy7NMbsbbeFOheMBAtQtPAjHFzMIHqXj3/nEDTxESFiqkLWojiyVbpPVE X-Received: by 10.55.16.220 with SMTP id 89mr893575qkq.286.1508303126042; Tue, 17 Oct 2017 22:05:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1508303126; cv=none; d=google.com; s=arc-20160816; b=l0y6nEpfS/8D6azEo0IItopaSwUgwkTbWdtJkNNgQsxHIOvH361kj+BbPqrsYiKM6P ZgiaGSpMPYA90qNEGpa/v4KKqUt8UqwyhlIZZ+HaJtXY8vntHXLbI5JeXN/A/+70mlFT 2OmNEHjVkhs2VEPGawq5za4xsEgk4xeLhbMEQTQTkXQaneLwr2LisE6c3SwnSrf2qf5r TIh/7yvs/6Xpsp8+XIQ4rHKTBTKTMDxgm5d9YGS3XfOeUla+5VxxnWhS+MELAbIT7uB7 MFnHOInqd9yfYFladu8qKycPtHOk4ELcLrY6vrzKLsrh37OWDgbn4tFkX5DN8uabwUUq 19NA== 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=x1W+UvPUGS5TE40aNWTa1G0L61IcVzMWjkzk0Vqfkvo=; b=M6o0PdHnh6K37FRvoHOtZjTj3HlaNekktkrYPC8+Cw6BpYcLMLKKThtTIi294eFp4Y TAE/qkzxHbouWFXCXHYL0tdkuveeFN4RuTu//W6CoysWIxDovgsodNYZ4C5nBC+6pC08 1GuKQIDExtDInZ9okW8FiKTPDuhOkV/u/g2w7SmGERW47U/a7I13riyGlhavGccXAlQl p2nIiwCRD6FWmzMKa0gWSPeQKpTdbiaRF9yaXtWTwR+ahZVc5eFlcO2Zgru1o6n/9foa y48Y3u/LPCwmx+AN8pXKBWiH0pKwGhwR1GnK7GX8xmZXpWn5JY2nMSxpCPOEXlgIIIDz wfXQ== 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 m123si4580187qkf.78.2017.10.17.22.05.25; Tue, 17 Oct 2017 22:05:26 -0700 (PDT) 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 BB20F62C3D; Wed, 18 Oct 2017 05:05:25 +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=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, 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 B55576299D; Wed, 18 Oct 2017 05:00:49 +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 28428622A7; Wed, 18 Oct 2017 05:00:26 +0000 (UTC) Received: from forward106j.mail.yandex.net (forward106j.mail.yandex.net [5.45.198.249]) by lists.linaro.org (Postfix) with ESMTPS id A66CC62297 for ; Wed, 18 Oct 2017 05:00:20 +0000 (UTC) Received: from mxback11g.mail.yandex.net (mxback11g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:90]) by forward106j.mail.yandex.net (Yandex) with ESMTP id A882F1802BF3 for ; Wed, 18 Oct 2017 08:00:19 +0300 (MSK) Received: from smtp2p.mail.yandex.net (smtp2p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:7]) by mxback11g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id Y9EPGc03MB-0JN8dn3X; Wed, 18 Oct 2017 08:00:19 +0300 Received: by smtp2p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id 27A3ttiSEF-0JNGoWOp; Wed, 18 Oct 2017 08:00:19 +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: Wed, 18 Oct 2017 08:00:06 +0300 Message-Id: <1508302806-20268-11-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1508302806-20268-1-git-send-email-odpbot@yandex.ru> References: <1508302806-20268-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 235 Subject: [lng-odp] [PATCH v3 10/10] linux-gen: use EXEEXT in shmem_linux test 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 Use EXEEXT environment variable when calling test programs during shmem_linux test. Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 235 (lumag:plat-def-2) ** https://github.com/Linaro/odp/pull/235 ** Patch: https://github.com/Linaro/odp/pull/235.patch ** Base sha: ec0c3145fcafa09ae3a79875e7e07dd4794583cc ** Merge commit sha: c7d08f738718f049cece37227820be39f1274875 **/ platform/linux-generic/test/validation/api/shmem/shmem_linux.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/platform/linux-generic/test/validation/api/shmem/shmem_linux.c b/platform/linux-generic/test/validation/api/shmem/shmem_linux.c index 10bbb6a47..7f0343cfd 100644 --- a/platform/linux-generic/test/validation/api/shmem/shmem_linux.c +++ b/platform/linux-generic/test/validation/api/shmem/shmem_linux.c @@ -218,10 +218,14 @@ int main(int argc __attribute__((unused)), char *argv[]) int app2_status; uid_t uid = getuid(); char *shm_dir = getenv("ODP_SHM_DIR"); + const char *exeext = getenv("EXEEXT"); + + if (exeext == NULL) + exeext = ""; /* odp_app1 is in the same directory as this file: */ strncpy(prg_name, argv[0], PATH_MAX - 1); - sprintf(odp_name1, "%s/%s", dirname(prg_name), ODP_APP1_NAME); + sprintf(odp_name1, "%s/%s%s", dirname(prg_name), ODP_APP1_NAME, exeext); /* start the ODP application: */ odp_app1 = fork(); @@ -292,7 +296,7 @@ int main(int argc __attribute__((unused)), char *argv[]) /* odp_app2 is in the same directory as this file: */ strncpy(prg_name, argv[0], PATH_MAX - 1); - sprintf(odp_name2, "%s/%s", dirname(prg_name), ODP_APP2_NAME); + sprintf(odp_name2, "%s/%s%s", dirname(prg_name), ODP_APP2_NAME, exeext); /* start the second ODP application with pid of ODP_APP1 as parameter:*/ sprintf(pid1, "%d", odp_app1);