From patchwork Tue Apr 5 12:27:45 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Elo, Matias \(Nokia - FI/Espoo\)" X-Patchwork-Id: 65065 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp432589lbc; Tue, 5 Apr 2016 05:27:57 -0700 (PDT) X-Received: by 10.140.82.20 with SMTP id g20mr18347742qgd.69.1459859276388; Tue, 05 Apr 2016 05:27:56 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id t67si3089567qha.34.2016.04.05.05.27.56; Tue, 05 Apr 2016 05:27:56 -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 dis=NONE) header.from=nokia.com Received: by lists.linaro.org (Postfix, from userid 109) id EE6C66180B; Tue, 5 Apr 2016 12:27:55 +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=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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 89BFE61647; Tue, 5 Apr 2016 12:27:52 +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 1F8B4617EF; Tue, 5 Apr 2016 12:27:49 +0000 (UTC) Received: from demumfd002.nsn-inter.net (demumfd002.nsn-inter.net [93.183.12.31]) by lists.linaro.org (Postfix) with ESMTPS id BF76A61641 for ; Tue, 5 Apr 2016 12:27:47 +0000 (UTC) Received: from demuprx016.emea.nsn-intra.net ([10.150.129.55]) by demumfd002.nsn-inter.net (8.15.2/8.15.2) with ESMTPS id u35CRkUM031474 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 5 Apr 2016 12:27:46 GMT Received: from 10.144.19.15 ([10.144.104.112]) by demuprx016.emea.nsn-intra.net (8.12.11.20060308/8.12.11) with ESMTP id u35CRjY6029967 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) for ; Tue, 5 Apr 2016 14:27:46 +0200 From: Matias Elo To: lng-odp@lists.linaro.org Date: Tue, 5 Apr 2016 15:27:45 +0300 Message-Id: <1459859265-23834-3-git-send-email-matias.elo@nokia.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1459859265-23834-1-git-send-email-matias.elo@nokia.com> References: <1459859265-23834-1-git-send-email-matias.elo@nokia.com> X-purgate-type: clean X-purgate-Ad: Categorized by eleven eXpurgate (R) http://www.eleven.de X-purgate: clean X-purgate: This mail is considered clean (visit http://www.eleven.de for further information) X-purgate-size: 2562 X-purgate-ID: 151667::1459859266-00002418-2018CBE3/0/0 X-Topics: patch Subject: [lng-odp] [PATCH 2/2] example: switch: add validation 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: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" Add validation test for the switch example using pcap pktio. The sizes of the pcap files are compared, but the actual contents are not, because the timestamps in the files differ. Only packet broadcast is currently tested as switching requires further pcap pktio development. Signed-off-by: Matias Elo --- example/switch/Makefile.am | 5 +++++ example/switch/switch_run.sh | 43 +++++++++++++++++++++++++++++++++++++++++++ example/switch/udp64.pcap | Bin 0 -> 7624 bytes 3 files changed, 48 insertions(+) create mode 100755 example/switch/switch_run.sh create mode 100644 example/switch/udp64.pcap diff --git a/example/switch/udp64.pcap b/example/switch/udp64.pcap new file mode 100644 index 0000000000000000000000000000000000000000..45f9d6e6341a331125e1e3e49ab8ad1e71b20712 GIT binary patch literal 7624 zcmca|c+)~A1{MYw_+QV!zzF1AIDRVZQX4OW4Ui4OOdthJV3Lu8!IgnQ52VaNFl`SP zPy-M%&2gOL#31#rG%+bTB{eNQBQq;ICpRy@ps;AvtkLiqO%tPeXtbOdEel8Mj?wyY zv^_D}W*Ti5GK{vPNBat+eXG&_<7gilID#