From patchwork Tue Jul 5 08:01:54 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 71390 Delivered-To: patch@linaro.org Received: by 10.140.28.4 with SMTP id 4csp180839qgy; Tue, 5 Jul 2016 01:02:30 -0700 (PDT) X-Received: by 10.55.68.22 with SMTP id r22mr21546590qka.129.1467705750686; Tue, 05 Jul 2016 01:02:30 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id d28si1592513qte.30.2016.07.05.01.02.30; Tue, 05 Jul 2016 01:02:30 -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 EDF8261701; Tue, 5 Jul 2016 08:02:29 +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, 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 B4FF3615D1; Tue, 5 Jul 2016 08:02:20 +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 136EB6161C; Tue, 5 Jul 2016 08:02:15 +0000 (UTC) Received: from mail-lf0-f50.google.com (mail-lf0-f50.google.com [209.85.215.50]) by lists.linaro.org (Postfix) with ESMTPS id 1B1F7615DC for ; Tue, 5 Jul 2016 08:02:12 +0000 (UTC) Received: by mail-lf0-f50.google.com with SMTP id f6so129400670lfg.0 for ; Tue, 05 Jul 2016 01:02:12 -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=3yeWI0cS/NcfvPpkHn6BvzWmYAbHjrKK+U8oNMDJqnc=; b=MKu4GrL1HuTYEYlba70qEGeqCM02dXdDC4pFxuhwJnKLdJLGvTSAep1ZMOBB5r6sZV 5NJH8M6cAVPGr+g2885TgAnFlmVaSnLZr1n8GRAlgjGQpHzVvRBbkruDHONS2gCVQbep OB9xYoJBaeD2AW4xa8Z7C6IGKv/odPrzWN/SGdBg7sIQj9PqjM/23tgL04LluFwOTy1x RxjlJ2aFJg2eRHzj8NSFwiRsvmagYFQfeN4S9eT0NryGZrDme7mVTahmcO0iyCaaZaKk E3gaUGBW6o83wiP0+mKcv4XZedXYrr9k9kcli6PtiIuBE7oeBsY6bnHhSqsqYJ0Q5wY3 e69Q== X-Gm-Message-State: ALyK8tJUgFYC3m/8R3ItH7cX3oheW9u5/LtfVdrTdpNfAK5kXpwQfHt68HrelNTRKsQTZII/KM8= X-Received: by 10.25.141.135 with SMTP id p129mr3329350lfd.194.1467705730782; Tue, 05 Jul 2016 01:02:10 -0700 (PDT) Received: from maxim-Aspire-VN7-791.d-systems.local ([185.75.190.112]) by smtp.gmail.com with ESMTPSA id g32sm5172938lfi.9.2016.07.05.01.02.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 05 Jul 2016 01:02:09 -0700 (PDT) From: Maxim Uvarov To: lng-odp@lists.linaro.org Date: Tue, 5 Jul 2016 11:01:54 +0300 Message-Id: <1467705714-9511-1-git-send-email-maxim.uvarov@linaro.org> X-Mailer: git-send-email 2.7.1.250.gff4ea60 X-Topics: patch Subject: [lng-odp] [buggyPATCH] linux-generic: add vlan insertion 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" Use vlan tagged traffic for example validation test to add code coverage for pkt_mmap_vlan_insert() internal function. Signed-off-by: Maxim Uvarov --- In general this patch work and tests internal function. But there is one small issue related to autotools which I don't know how to fix better: make; make check works, but make check after clean fails example/packet/odp_pktio binary is not yet build while tests going to be executed. The only thing which cames to my mind is to reorder root directory Makefile.am and add "-" between tests and examples. In that case examples should be compiled before any test compilation/execution. Is that a right way to do? Thanks, Maxim. test/platform/linux-generic/Makefile.am | 6 ++- test/platform/linux-generic/pktio/.gitignore | 1 + test/platform/linux-generic/pktio/Makefile.am | 1 + .../platform/linux-generic/pktio/pktio_run_vlan.sh | 46 +++++++++++++++++++++ test/platform/linux-generic/pktio/vlan.pcap | Bin 0 -> 9728 bytes 5 files changed, 53 insertions(+), 1 deletion(-) create mode 100755 test/platform/linux-generic/pktio/pktio_run_vlan.sh create mode 100644 test/platform/linux-generic/pktio/vlan.pcap diff --git a/test/platform/linux-generic/pktio/vlan.pcap b/test/platform/linux-generic/pktio/vlan.pcap new file mode 100644 index 0000000000000000000000000000000000000000..106ccb682e51495b4025337518a0bce63c2c7681 GIT binary patch literal 9728 zcmeHNeQXrR6@Rikyh3QAN~9xK+}$ z4T)^-QnlAgC4W>Yk*X>mRlo92km}Nw!c|oiNTn)LBLcyK0BKSYLZiA0xI}f|@6FEc z&CT8}Zu4i?dS2hYnK$pf`MuxF&iVB}9(>lN6zOYfipb#)S3BqRK6jeva#{)P%KZ4H z2`Z!uf1f`})Rm#nP-l2Nx8d?iyv8ohr8v56pV)=ly+yzZvNmzS?$(tvQ({ zN`3H(bKv=xSCLCcs6x0O=6jaXv{mjz%{=NyEc#gk|LwB0u=KHqz1)uIAM9Usn@mg_ zk2Z3jR&?;MUcTp8vTSb+>k8B@8d$;SEO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