From patchwork Wed Oct 25 12: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: 117105 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp760253qgn; Wed, 25 Oct 2017 05:02:14 -0700 (PDT) X-Google-Smtp-Source: ABhQp+S8ydAJBPjoWmZ+r/skwRfI/cj7h31wnkAjsKDiCwM3LhWXYRlVHC3SM0LVITZ4mSRSjdrW X-Received: by 10.55.132.133 with SMTP id g127mr2676302qkd.72.1508932934187; Wed, 25 Oct 2017 05:02:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1508932934; cv=none; d=google.com; s=arc-20160816; b=q5qF++wdqGihamWLkGSe7ZG7/JO56PLUxUVnfZxPLPA74iCmHdOnNUpzNJu1JYKfCP DXBjdY59O9W62xL7v+r6+IRnL6rkpQ1/MSkll9HWZTaK+kgAv/pCuBEzvSMURZUTICc8 7xh9Nbgvq2wHSCI+4WqnyB+L654j5mQNlMmOuDQf8dxqIR9agtlmUDY4Ll+q6ds+Ck+Q lwtrG/Ln8Q7gjmTWBDEKpdLDCYmNp/S2T5BIsKyLQpO/PjRu9HteH181W5GfwMYNcdR1 T/WYuOaSRHalynzoeJqSzxMo9TT+fQaUkMk/44bST7I2rCOpGtGFzHq0quNqWx1jZVWT kwDA== 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=aA1zZG6XrHB1CTzjNPEGp0f/puD9aqMbRk1lhksdmMc=; b=dleq5/uobbXI2Uep5FfLeuhTJwm+21p1/R8BRVQG5ejyigqi9ZtKTFZs0aniASrV/N 5ukDFRSuVKOOZOrLMReRH6JWieHx4IMrUsa+6bTrd+nCloEC3SOu/v4/90It9lfuuPPF qqPTmTEZDaPUKZvKnCMyWCkRKD2mM2WE1/llk//B864wugvrpL9CXTpntK0tpJwUfebN r2Fje/T3Xzb0tZrZuKXRZWhbmpIAsVdbJlZgk7X0a2IZilxWRV4HN1OPNhu9DT4VTO14 KKpvJaMJIkHrljQdK9B0cTCQmTfOpYMqlnxC65MxeweiVXB9vqqV0c8lSo0ux3yzD+87 PbJg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 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 (ec2-54-197-127-237.compute-1.amazonaws.com. [54.197.127.237]) by mx.google.com with ESMTP id a13si2163738qkj.345.2017.10.25.05.02.13; Wed, 25 Oct 2017 05:02:14 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) client-ip=54.197.127.237; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 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 5D4F160A09; Wed, 25 Oct 2017 12:02: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,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 C29D7606B5; Wed, 25 Oct 2017 12:02:08 +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 1559660B29; Wed, 25 Oct 2017 12:01:50 +0000 (UTC) Received: from forward106p.mail.yandex.net (forward106p.mail.yandex.net [77.88.28.109]) by lists.linaro.org (Postfix) with ESMTPS id 4A0D560BDF for ; Wed, 25 Oct 2017 12:00:36 +0000 (UTC) Received: from mxback9g.mail.yandex.net (mxback9g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:170]) by forward106p.mail.yandex.net (Yandex) with ESMTP id 35B0C2D868A1 for ; Wed, 25 Oct 2017 15:00:35 +0300 (MSK) Received: from smtp1j.mail.yandex.net (smtp1j.mail.yandex.net [2a02:6b8:0:801::ab]) by mxback9g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 3vE8hS7eGo-0ZDmh1mH; Wed, 25 Oct 2017 15:00:35 +0300 Received: by smtp1j.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id 7HeNqY4tnt-0Y8Cb2DL; Wed, 25 Oct 2017 15:00:34 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) From: Github ODP bot To: lng-odp@lists.linaro.org Date: Wed, 25 Oct 2017 15:00:06 +0300 Message-Id: <1508932806-2089-4-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1508932806-2089-1-git-send-email-odpbot@yandex.ru> References: <1508932806-2089-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 258 Subject: [lng-odp] [PATCH API-NEXT v1 3/3] validation: packet: add packet_print_data 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: Petri Savolainen Test the new packet payload print function with couple of lengths and offsets. Added line feeds to separate packet print output from CUnit prints. Signed-off-by: Petri Savolainen --- /** Email created from pull request 258 (psavol:next-packet-dump) ** https://github.com/Linaro/odp/pull/258 ** Patch: https://github.com/Linaro/odp/pull/258.patch ** Base sha: 63d92eb289261d1534b5b9e1e04291faa5e45d30 ** Merge commit sha: 08d635e94f01265704fddd47cd98b0ccbdc669d4 **/ test/validation/api/packet/packet.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/validation/api/packet/packet.c b/test/validation/api/packet/packet.c index 431444cf3..37550a2f5 100644 --- a/test/validation/api/packet/packet.c +++ b/test/validation/api/packet/packet.c @@ -554,7 +554,10 @@ void packet_test_prefetch(void) void packet_test_debug(void) { CU_ASSERT(odp_packet_is_valid(test_packet) == 1); + printf("\n\n"); odp_packet_print(test_packet); + odp_packet_print_data(test_packet, 0, 100); + odp_packet_print_data(test_packet, 14, 20); } void packet_test_context(void) @@ -2152,7 +2155,10 @@ void packet_test_ref(void) packet_compare_data(pkt3, ref2); /* Try print function on a reference */ + printf("\n\n"); odp_packet_print(ref2); + odp_packet_print_data(ref2, 0, 100); + odp_packet_print_data(ref2, 14, 20); odp_packet_free(ref); odp_packet_free(ref2);