From patchwork Tue Oct 17 19: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: 116164 Delivered-To: patch@linaro.org Received: by 10.140.22.163 with SMTP id 32csp5242563qgn; Tue, 17 Oct 2017 12:08:07 -0700 (PDT) X-Google-Smtp-Source: ABhQp+TijoyJOXVzp4TqAhVhtmtcNRzkAaYleY02sZB1+VlwgZtDASsSQp+UUlWMlzgrck7QAKSm X-Received: by 10.36.18.5 with SMTP id 5mr1114139itp.150.1508267286989; Tue, 17 Oct 2017 12:08:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1508267286; cv=none; d=google.com; s=arc-20160816; b=giicjt5MNCblsbPz0TKv73JME8XqECGmzq7PjS0LavygLeaI9nZ+xc0i/Zzxxxxksu /7mxTf5M38XJs2GaHlhydY+OHhQDDcSBfnBb3IZD7bhWW9zHcW5DTHlFTUp4E88TAatk zfZqNvTfmGAnHeDNDs7pTaGEkc+RrzNEk00/VCvveWtkMttta9lqw0rCHgH0zQO9m4re 11eV6r1lqmQyQYKd3/DEcGPY7jJOGW9yDUhKgivBd8AyfaW32FVZ5QTyUyM5c/TQaOS/ bni6Fm2DJRe8bVdOYk5P+y9JFl6DKvoEyw5i5zwlf7tDyhRsmR4WXTOZEUnJ1Aw+M9px MK+g== 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=i69R8nagE0tIAL6BaV7yYz+YZic078HAQ2PWU5gQZHI=; b=YLvia++JYU5L5Kekr44ru8mAHHgXuN6EX22J3PQr4ODKCNIRCpXZcP9ueC9J+7tQwU MK9t70PfAiUS8K/wQdU0J7ny1qQDQGcR5lAdYqhCfHrA6vSVL6O+6CmJjupVUFVnpN/R CVONrqtTaLMSm2oz1XNRtmu1MZhdN+i1lSQU5LE9kT8B9Vp3O1kqdgvOGNL4OBiryGaP 4gTYwncE/VgoZvvoBzb9C9k0gMztBGBEwQibVZ9/6sGNoU0bTFiKNEj2hj2apV7YNISL Hqo2Dm2cG8uW+q5z8ZGY75Cf6RUsZtxtIHG5DXCto9X2xDl7zWpdmrV2EAcW7YXzL0iR ZM3A== 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 r65si7463148ith.105.2017.10.17.12.08.06; Tue, 17 Oct 2017 12:08:06 -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 8170562C60; Tue, 17 Oct 2017 19:08:06 +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 EF221629CB; Tue, 17 Oct 2017 19:00:58 +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 A56C862905; Tue, 17 Oct 2017 19:00:28 +0000 (UTC) Received: from forward103j.mail.yandex.net (forward103j.mail.yandex.net [5.45.198.246]) by lists.linaro.org (Postfix) with ESMTPS id 182DD628C2 for ; Tue, 17 Oct 2017 19:00:18 +0000 (UTC) Received: from mxback11j.mail.yandex.net (mxback11j.mail.yandex.net [IPv6:2a02:6b8:0:1619::84]) by forward103j.mail.yandex.net (Yandex) with ESMTP id AF23C34C3FA8 for ; Tue, 17 Oct 2017 22:00:16 +0300 (MSK) Received: from smtp2p.mail.yandex.net (smtp2p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:7]) by mxback11j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id o7IXZAY4iX-0Gv8jhWs; Tue, 17 Oct 2017 22:00:16 +0300 Received: by smtp2p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id QgPN3KZgI2-0GuiWptX; Tue, 17 Oct 2017 22:00:16 +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: Tue, 17 Oct 2017 22:00:06 +0300 Message-Id: <1508266806-12588-11-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1508266806-12588-1-git-send-email-odpbot@yandex.ru> References: <1508266806-12588-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 235 Subject: [lng-odp] [PATCH v2 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: 9783e8a21510c37c97bc377ad9b5b2f83aa4b842 **/ 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);