From patchwork Wed Oct 18 09:00:09 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: 116249 Delivered-To: patch@linaro.org Received: by 10.140.22.163 with SMTP id 32csp5831735qgn; Wed, 18 Oct 2017 02:07:43 -0700 (PDT) X-Google-Smtp-Source: ABhQp+SAbVOhYCZUwSWkjSWiYzesK7juPZG+sn4O+zunlyfvQZlPu4/tfM6FE2KxFET8hVsI9u5M X-Received: by 10.157.17.185 with SMTP id v54mr3599874otf.339.1508317663664; Wed, 18 Oct 2017 02:07:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1508317663; cv=none; d=google.com; s=arc-20160816; b=xwTFkE7WlTiur1UC8eHmdskQmUnuuLoIsyjoNxxkvwRMnHNUAu8xPPQ+wRXz0LtKzU GeTtghPW/IVZh5Nw2MmyDYFz1W6vzG3gNF9EbGJPqrWQ2B5BtbP35/oeJeu0ya2VOLD8 ii+Vsy+tRj/gk1vS2Ijb6civFdb06MZTWJfhZjEJNc1ml5UHvyZ9GOya800gmqncBxk4 ER/gDytg2Ru9zjrt/Y9aLU9wFo465qm3XkdtQNFWp9lnlXOFGR1x0TnA0Mre0j0jgnqM LRr50tQlZHA4Mx6n0gJTWAGy2dQRaIv+La4ANo0+fB6gU07Aj5fqBgK+4sqB5ZerFI3w jOfQ== 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=nCHZFh51uPuumqMKXpfACNDccWPIvOGNNPCor5+0REU=; b=pGDZdXVIddbV7JSl5HHT4FqwAU81PZkWB6e5AgiY9jyZTy8uECXHbqKa77OUV5JzzP jRhTRKu3HIuh/GX/hqUZ5j4deaG1hHMy6pywza/KuAKWSLlnJuOCzsJAVtU/H64v2qnY bhL2dkD58SpfAuroK82xMghJjQ6DhdFypIoCdxUBwcvthnaoGVfggydUwh7lMsxznCQf tlec2hIy50hC/Ah6jHH0JlCByBL/qKxC3bL1GnWNEnCz4p59aTR/uEbjSD5F9Zs7zP/e bMSu45lBJE6j+0iF6pBsWXPdu6OBDr3jIQn8IJF3QjTukARi9JCCkK6YB0faBsqD2oI6 +qPw== 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 f74si8690513itb.54.2017.10.18.02.07.43; Wed, 18 Oct 2017 02:07:43 -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 1419E62DAD; Wed, 18 Oct 2017 09:07:43 +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_H4, 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 6583962CF1; Wed, 18 Oct 2017 09:01:22 +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 D480A62B15; Wed, 18 Oct 2017 09:00:36 +0000 (UTC) Received: from forward100j.mail.yandex.net (forward100j.mail.yandex.net [5.45.198.240]) by lists.linaro.org (Postfix) with ESMTPS id 7B9E662C7E for ; Wed, 18 Oct 2017 09:00:26 +0000 (UTC) Received: from mxback1g.mail.yandex.net (mxback1g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:162]) by forward100j.mail.yandex.net (Yandex) with ESMTP id 6E1755D8489A for ; Wed, 18 Oct 2017 12:00:25 +0300 (MSK) Received: from smtp1j.mail.yandex.net (smtp1j.mail.yandex.net [2a02:6b8:0:801::ab]) by mxback1g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id zvqJB7AzCq-0PSK4f6w; Wed, 18 Oct 2017 12:00:25 +0300 Received: by smtp1j.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id bYy1BTB7pX-0ObCfoEo; Wed, 18 Oct 2017 12:00:24 +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 12:00:09 +0300 Message-Id: <1508317209-23610-11-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1508317209-23610-1-git-send-email-odpbot@yandex.ru> References: <1508317209-23610-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 235 Subject: [lng-odp] [PATCH v4 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: 3ecb623742a4220d83aa8929d5eef60c1abdeb45 **/ 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);