From patchwork Mon Jul 10 20: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: 107323 Delivered-To: patch@linaro.org Received: by 10.182.72.42 with SMTP id a10csp3824349obv; Mon, 10 Jul 2017 13:01:23 -0700 (PDT) X-Received: by 10.237.35.174 with SMTP id j43mr6812907qtc.215.1499716883382; Mon, 10 Jul 2017 13:01:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1499716883; cv=none; d=google.com; s=arc-20160816; b=jPDjPXSf4LpMwSd2cHm8h6wS22dceLWu8rQJRBlizYgiT//G/wZrMBUya2KyKrkfKd pilzb7cU0Rw4L1GAMhZxkESDAgNUpFi9bALuzZE36f66jwRRik93JZte/FT/YFCeC7nR qZciUqH1SeqzF72jOA1JmrcXP+HIBg5oZp2lkM8jgb9p9wEsRuT+c8/A0UyX9u+N5i6g 3c5bryWGWhFaADKKOlCPWJ1iYt5KUdMM1oL2ZYtAER3s9IlMsOADc60FazdZ0nUv38JX En8Ht2OluF0eFJQLQ5S4hK0kIIudHXMHV/RRsFaRAxW7MBqDsJQv5W2yBpV64vU0S+bk Kgzw== 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=z16gLfn2xKXf5pUGAWdnebfDkbuNaFkypDLKBse+ICM=; b=LU0GaUJ78Gb9K08k+JURZoglMn9KLL6+M0iiuCUVkBUSor0OEer0BcUxDlrS99t9DB 8bH8VgOMiPMNuXeTacKo9JIVRq4K4hOiWHZTuBzHPrFNykedcGsWrMOedvRQvbpAVu2h NpLMbpB54PN+G4Q3s27w/b4G94T91bluefBT0F3NQwn1ubdOcCjzwrBBD2qwIxL5suae 9QtaL0h2k8A6F4x5Oa0iAowMfuoo9xAbH+CRIGGt8k3qaWl2MP8l33PxfB1v1Eu9YbWg MLJJsZQwhgJBFk0n3Ks3MXNskd3PyGTcqeJnlv356dmACWc+WZGnyhINs5gwVeh33wTP Nllg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 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 (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id m5si11433222qtd.168.2017.07.10.13.01.23; Mon, 10 Jul 2017 13:01:23 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 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 00AAF6447D; Mon, 10 Jul 2017 20:01:22 +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,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 3D37B64452; Mon, 10 Jul 2017 20:00:26 +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 8ACFF60CF7; Mon, 10 Jul 2017 20:00:21 +0000 (UTC) Received: from forward2m.cmail.yandex.net (forward2m.cmail.yandex.net [5.255.216.20]) by lists.linaro.org (Postfix) with ESMTPS id A1CA160677 for ; Mon, 10 Jul 2017 20:00:19 +0000 (UTC) Received: from smtp2m.mail.yandex.net (smtp2m.mail.yandex.net [IPv6:2a02:6b8:0:2519::122]) by forward2m.cmail.yandex.net (Yandex) with ESMTP id F2133212A4 for ; Mon, 10 Jul 2017 23:00:17 +0300 (MSK) Received: from smtp2m.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp2m.mail.yandex.net (Yandex) with ESMTP id C3E822300DF3 for ; Mon, 10 Jul 2017 23:00:17 +0300 (MSK) Received: by smtp2m.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id JjKiuef2uk-0GRa7UQj; Mon, 10 Jul 2017 23:00:16 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) X-Yandex-Suid-Status: 1 0 From: Github ODP bot To: lng-odp@lists.linaro.org Date: Mon, 10 Jul 2017 23:00:06 +0300 Message-Id: <1499716806-18707-4-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1499716806-18707-1-git-send-email-odpbot@yandex.ru> References: <1499716806-18707-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 72 Subject: [lng-odp] [PATCH v1 3/3] test: pktio: ipc: increse timeouts for coverage 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: Maxim Uvarov Signed-off-by: Maxim Uvarov --- /** Email created from pull request 72 (muvarov:master_ipc_pkt_free_fix) ** https://github.com/Linaro/odp/pull/72 ** Patch: https://github.com/Linaro/odp/pull/72.patch ** Base sha: 5a2ed3eefb1a263139282c376741adb2c355bd5a ** Merge commit sha: 5853863d527ef327a244740d931cd2d0fb05db5f **/ test/linux-generic/pktio_ipc/pktio_ipc_run.sh | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/test/linux-generic/pktio_ipc/pktio_ipc_run.sh b/test/linux-generic/pktio_ipc/pktio_ipc_run.sh index c53de457..b713c63c 100755 --- a/test/linux-generic/pktio_ipc/pktio_ipc_run.sh +++ b/test/linux-generic/pktio_ipc/pktio_ipc_run.sh @@ -17,20 +17,29 @@ PATH=$(dirname $0):$PATH PATH=$(dirname $0)/../../../../platform/linux-generic/test/pktio_ipc:$PATH PATH=.:$PATH +RUNTIME1=10 +RUNTIME2=5 +TIMEOUT=13 +if [ "${TEST}" = "coverage" ]; then + RUNTIME1=30 + RUNTIME2=15 + TIMEOUT=20 +fi + run() { local ret=0 echo "==== run pktio_ipc1 then pktio_ipc2 ====" - pktio_ipc1${EXEEXT} -t 10 & + pktio_ipc1${EXEEXT} -t ${RUNTIME1} & IPC_PID=$! - pktio_ipc2${EXEEXT} -p ${IPC_PID} -t 5 + pktio_ipc2${EXEEXT} -p ${IPC_PID} -t ${RUNTIME2} ret=$? # pktio_ipc1 should do clean up and exit just # after pktio_ipc2 exited. If it does not happen # kill him in test. - sleep 13 + sleep ${TIMEOUT} (kill ${IPC_PID} 2>&1 > /dev/null ) > /dev/null if [ $? -eq 0 ]; then echo "pktio_ipc1${EXEEXT} was killed" @@ -49,14 +58,14 @@ run() fi echo "==== run pktio_ipc2 then pktio_ipc1 ====" - pktio_ipc2${EXEEXT} -t 10 & + pktio_ipc2${EXEEXT} -t ${RUNTIME1} & IPC_PID=$! - pktio_ipc1${EXEEXT} -p ${IPC_PID} -t 5 + pktio_ipc1${EXEEXT} -p ${IPC_PID} -t ${RUNTIME2} ret=$? # pktio_ipc2 do not exit on pktio_ipc1 disconnect # wait until it exits cleanly - sleep 13 + sleep ${TIMEOUT} (kill ${IPC_PID} 2>&1 > /dev/null ) > /dev/null if [ $? -eq 0 ]; then echo "pktio_ipc2${EXEEXT} was killed"