From patchwork Fri Apr 10 07:49:30 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Monjalon X-Patchwork-Id: 4287 Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id A79057EB0; Fri, 10 Apr 2015 09:50:21 +0200 (CEST) Received: from mail-wi0-f176.google.com (mail-wi0-f176.google.com [209.85.212.176]) by dpdk.org (Postfix) with ESMTP id 5E5A67E23 for ; Fri, 10 Apr 2015 09:50:20 +0200 (CEST) Received: by wiax7 with SMTP id x7so10354180wia.0 for ; Fri, 10 Apr 2015 00:50:20 -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:subject:date:message-id; bh=rMn1b2OCDOBwMIA9U/v47mbf6OiecmQ3oRuUbbS0FxM=; b=hXmFAlNYxQdLKl547KDpzS06Zasesa/7RWR9M/JMMK+6gB73SypdoQWe2/wRHPihte 6/kmVJ1cFi5QROEEBhlnRDIAiMO8xFAoYrZQS6ugVIEA0NwWcXVCNLnamJIv/tdSrz8X ilARjZg1vXxDUW4ZXhuLXYAQIVSX0Swnra4jcyBOtcNIdSKEKEXFVnGP3oLw5HNnLrj4 4NbTwZVYDc9cJzuMjlV0FKynnCro8tXtMVP+5zbL8BtJX/HsRQOJwOj7HSvoQbmpWrPr 3BlLGRpSOtfumhgRhaOXccV4p31eAGYSqTXgLisrthfOwPbMJQCy7tZilHGOdvpVQof8 eqwg== X-Gm-Message-State: ALoCoQlNENm7cxmdVwwZ05PdltIXNPyvM6VOHxWmisd+AG72UQ6rmnrL+SO66ElJWueIFuHs4Nad X-Received: by 10.194.239.65 with SMTP id vq1mr617998wjc.98.1428652220300; Fri, 10 Apr 2015 00:50:20 -0700 (PDT) Received: from localhost.localdomain (136-92-190-109.dsl.ovh.fr. [109.190.92.136]) by mx.google.com with ESMTPSA id mv11sm19898620wic.23.2015.04.10.00.50.19 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 10 Apr 2015 00:50:19 -0700 (PDT) From: Thomas Monjalon To: dev@dpdk.org Date: Fri, 10 Apr 2015 09:49:30 +0200 Message-Id: <1428652170-19356-1-git-send-email-thomas.monjalon@6wind.com> X-Mailer: git-send-email 2.2.2 Subject: [dpdk-dev] [PATCH] scripts: test null forwarding X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" This script ease testing of basic initializations and Rx/Tx bursts. It may help to check obvious regressions. In order to run it on a standard development machine, it doesn't use neither hugepages nor real interfaces. The optional parameters are: - build directory (default: build) - coremask (default: 3 i.e. cores 0 and 1) Signed-off-by: Thomas Monjalon --- scripts/test-null.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 scripts/test-null.sh diff --git a/scripts/test-null.sh b/scripts/test-null.sh new file mode 100755 index 0000000..6f6918e --- /dev/null +++ b/scripts/test-null.sh @@ -0,0 +1,14 @@ +#! /bin/sh -e + +build=${1:-build} +coremask=${2:-3} # default using cores 0 and 1 + +if grep -q SHARED_LIB=y $build/.config; then + export LD_LIBRARY_PATH=$build/lib:$LD_LIBRARY_PATH + pmd='-d librte_pmd_null.so' +fi + +(sleep 1 && echo stop) | +$build/app/testpmd -c $coremask -n 1 --no-huge \ + $pmd --vdev eth_null1 --vdev eth_null2 -- \ + --total-num-mbufs=2048 -ia