From patchwork Fri May 20 17:31:37 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Holmes X-Patchwork-Id: 68300 Delivered-To: patch@linaro.org Received: by 10.140.92.199 with SMTP id b65csp10748qge; Fri, 20 May 2016 10:32:14 -0700 (PDT) X-Received: by 10.55.24.193 with SMTP id 62mr4857432qky.146.1463765534136; Fri, 20 May 2016 10:32:14 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id u14si19116325qge.86.2016.05.20.10.32.13; Fri, 20 May 2016 10:32:14 -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=pass (p=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 8AE78616F0; Fri, 20 May 2016 17:32:13 +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, RCVD_IN_DNSWL_LOW, 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 A9CAE616F2; Fri, 20 May 2016 17:32:09 +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 C156B616F5; Fri, 20 May 2016 17:32:07 +0000 (UTC) Received: from mail-qk0-f169.google.com (mail-qk0-f169.google.com [209.85.220.169]) by lists.linaro.org (Postfix) with ESMTPS id B699B616DD for ; Fri, 20 May 2016 17:32:06 +0000 (UTC) Received: by mail-qk0-f169.google.com with SMTP id n62so62598145qkc.2 for ; Fri, 20 May 2016 10:32:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=9u2MsJxl/5pCHcIXap77XVGxIcetxWKENw+1ovvUyao=; b=C8byskQHl5r6xYvrVV/YtVFZGElDo8bSdgBXNG/AyBk1Or70/nP9Do4H5o55LrsOF3 7WaBqu3OUtTLn57BkG5brKCWEkXFE/Ay2uLXakcwSBqQmOLE+zjO3oOBtsmWgD0GDml9 zv83MZjxzLCnvcuPz9nEENrqPL4zDFhxjtxXfCoZgwUeppGQd3buqCmGfYl7WegUcnLO NFqlZUTDe4EbusbXeyv7ZaRaXe/R79fHKxqwiIafIOkg1DkBgIorgPPCyDVIgZSs/HmF P0hIQny50Gc9f37uiZmWQ51VuDapuQJLXzIk1XipzBS5U0q5qG/1kkBslMSY8/GzvL+r kobA== X-Gm-Message-State: AOPr4FW8SXpHucOfcSK7HWo367C3axX+OXPlm0ndjKy0f8S4Wfcd4IObjY/OL4xw3UG5YZfBUuQ= X-Received: by 10.55.207.149 with SMTP id v21mr4776530qkl.195.1463765526512; Fri, 20 May 2016 10:32:06 -0700 (PDT) Received: from localhost.localdomain (c-98-221-136-245.hsd1.nj.comcast.net. [98.221.136.245]) by smtp.gmail.com with ESMTPSA id u78sm9218883qku.31.2016.05.20.10.32.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 20 May 2016 10:32:05 -0700 (PDT) From: Mike Holmes To: lng-odp@lists.linaro.org Date: Fri, 20 May 2016 13:31:37 -0400 Message-Id: <1463765498-15783-1-git-send-email-mike.holmes@linaro.org> X-Mailer: git-send-email 2.7.4 X-Topics: patch Subject: [lng-odp] [PATCH v2 1/2] example: fix pcap location assumption 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: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" Signed-off-by: Mike Holmes --- v2 fix broken assumption in existing scripts (Bill) example/l2fwd_simple/l2fwd_simple_run.sh | 2 +- example/switch/switch_run.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/example/l2fwd_simple/l2fwd_simple_run.sh b/example/l2fwd_simple/l2fwd_simple_run.sh index 6050360..292d0e3 100755 --- a/example/l2fwd_simple/l2fwd_simple_run.sh +++ b/example/l2fwd_simple/l2fwd_simple_run.sh @@ -21,7 +21,7 @@ if [ "$STATUS" -ne 143 ]; then exit 1 fi -if [ `stat -c %s pcapout.pcap` -ne `stat -c %s udp64.pcap` ]; then +if [ `stat -c %s pcapout.pcap` -ne `stat -c %s ${PCAP_IN}` ]; then echo "File sizes disagree" exit 1 fi diff --git a/example/switch/switch_run.sh b/example/switch/switch_run.sh index 9b32973..3f8f9db 100755 --- a/example/switch/switch_run.sh +++ b/example/switch/switch_run.sh @@ -33,7 +33,7 @@ fi for i in `seq 1 $NUM_RX_PORT`; do - if [ `stat -c %s pcapout${i}.pcap` -ne `stat -c %s udp64.pcap` ]; then + if [ `stat -c %s pcapout${i}.pcap` -ne `stat -c %s ${PCAP_IN}` ]; then echo "Error: Output file $i size not matching" RETVAL=1 fi