Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4364386pxu; Tue, 1 Dec 2020 03:09:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJxMLlAuFv4tnZSXfexjbclxVZwy6I+eKP0VjPngScpayGxg0N/24bMQGIyPW6v+GnfVbrLe X-Received: by 2002:a17:906:ed2:: with SMTP id u18mr2475393eji.1.1606820995896; Tue, 01 Dec 2020 03:09:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606820995; cv=none; d=google.com; s=arc-20160816; b=d/YQXFu/zBdiICWODHJYOfiZ2dfCxiP/inCM81KkGQuqgF7/+EnSfIrbv4BDlBMgGY QKCcSHpqotNo3XYRwv0Tru/ApTj7Dxm5xEn31jpBxIHx0Ye78r+LnOkdMVFXSWpMqfwL CExgpJrhQ9MUctIXLhq+mZWIwftIX1wzRluDZUNBGsgzm45wZ9dsUIsag040erfnXqvl 4bnc6Qx8YdJ0+I2jQs0AnqnIWzlnKhfQPJ1V2ooVf8HfSAADZRxRGmgXzdqnbMDqj0DA F9Ej7lBpnVxS+u9dgCXADHv7Z9Zr2m6XxlujeIa18gezZ6hk44txdTrqGhgf0TnfvuvZ MKGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=nKIYXaScaIE7TEOxHPKKOMA1edFOJVdBECoLY/zrsjk=; b=MFgByJ6p01xl37jtemSmhDo/3JGiSKvODbE3reNH3YQhem3oqIeaf0MtKnKRIB/5gA qJ4DNnE7hLW1hNIbs2+pCbUXFZSLsWbUHDizrVhfyq3KDQG8Yg16vsajuTjO+vAnxOq1 KQSk7nf4DYmeG6cOAA7H34Tir5U3CanPPjWYPX241CNiNAByg/qc8ZkPTrraEc1Rp9Kt DlNIbYZeyOs1LN7nZlSx8yYw/u6wSI9EYL4oTnho4jQ3Ap72LqVNcVEJW3usd5XIyU6Z lI+8igP5RyDeTn+jDKVlkzJPLQ60AlJYSjWTS81xNBoirGmWB5GP9d6CRGTklBFz91Xc QtiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=gzKNikVp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u15si1000894edt.525.2020.12.01.03.09.33; Tue, 01 Dec 2020 03:09:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=gzKNikVp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727452AbgLALGw (ORCPT + 99 others); Tue, 1 Dec 2020 06:06:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726689AbgLALGv (ORCPT ); Tue, 1 Dec 2020 06:06:51 -0500 Received: from mail-pj1-x1044.google.com (mail-pj1-x1044.google.com [IPv6:2607:f8b0:4864:20::1044]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8ACC7C0613D2; Tue, 1 Dec 2020 03:06:11 -0800 (PST) Received: by mail-pj1-x1044.google.com with SMTP id j13so1027564pjz.3; Tue, 01 Dec 2020 03:06:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=nKIYXaScaIE7TEOxHPKKOMA1edFOJVdBECoLY/zrsjk=; b=gzKNikVppqu163aDscUKjy47nSF+BZMMVUkL1n8ZhDCAzk/k1f5Gz1cvFju0C5AssG dMiiNelWookXTDzBGk+qPQ0pW2PrMDJ9NNNnKNDrKmJijIz4t+BzJXhM5TPeuzukh3Zp 8yLmjVEjzwA1R7OFORS0IAguWeLl2FGTcOajuaOJHRty478JWLV3/s58wiRfmQX9UnOj QTeqaI8KUMGlLld21DZJphgMWDR3BROhD52bb5FYj+V6qK3P+f3OTwTu1hiusvUMSTAz tRSvYXeCW7oSnKuSv4pTaGdtEW5EUfOtL3nJXcGrbQ1LhIQL7P4VzEDMRz4efDwgK1Ma 1JFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=nKIYXaScaIE7TEOxHPKKOMA1edFOJVdBECoLY/zrsjk=; b=jKXOD0xL7BJ/M+FQSJo9NjKCvRm7ASUXhBgqA8muLkb5U91Aa0L7PZDHhW6oCO7Sb1 wv2ntiJ4/G6NuMUXMpVV9iuRg6Ai6nHbNTTy6mpXlpHUVC4KyCbsqkExgYlm+6bUngM+ MaH4TwHfp3Hbbwen5xo+rfslXbJNtsofWVCK9yKbW5UwMDFFXJtakDuuHVVoU/KL3zb6 bk1Vyhr1sUR3Te3XCOju62qvMwuKVD+xrn374fjPjF2TEwxImCMk8gNb2wPJtupT62JY HcCae4qr/PTjsrl7VtLDwsUyWt9iVM2/e7mOsxp6lj+ruKG1CVGm0SwHggy/nAQT2LQC wttg== X-Gm-Message-State: AOAM532fkHOwTk2+iCQXXGCAOwWT2Dy4WJdnDJx/os1Mroa5dCmFzTA3 wKjrCYcYGaZh28QR7c9DVKZTbPYKdHvUk7v4MQ8= X-Received: by 2002:a17:902:ac93:b029:d8:d2c5:e5b1 with SMTP id h19-20020a170902ac93b02900d8d2c5e5b1mr2295356plr.17.1606820771072; Tue, 01 Dec 2020 03:06:11 -0800 (PST) MIME-Version: 1.0 References: <20201201071632.68471-1-98.arpi@gmail.com> In-Reply-To: <20201201071632.68471-1-98.arpi@gmail.com> From: Andy Shevchenko Date: Tue, 1 Dec 2020 13:06:59 +0200 Message-ID: Subject: Re: [PATCH v3] lib: Convert test_hexdump.c to KUnit To: Arpitha Raghunandan <98.arpi@gmail.com> Cc: Brendan Higgins , Shuah Khan , Andy Shevchenko , kunit-dev@googlegroups.com, "open list:KERNEL SELFTEST FRAMEWORK" , Linux Kernel Mailing List , linux-kernel-mentees@lists.linuxfoundation.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 1, 2020 at 9:21 AM Arpitha Raghunandan <98.arpi@gmail.com> wrote: > Convert test lib/test_hexdump.c to KUnit. More information about > KUnit can be found at: > https://www.kernel.org/doc/html/latest/dev-tools/kunit/index.html. > KUnit provides a common framework for unit tests in the kernel. > KUnit and kselftest are standardizing around KTAP, converting this > test to KUnit makes this test output in KTAP which we are trying to > make the standard test result format for the kernel. Below doesn't suit commit message, perhaps adding it after '---' line would be good. In the commit message you can choose one failed case followed by all OK and show the difference. > I ran both the original and converted tests as is to produce the > output for success of the test in the two cases. I also ran these > tests with a small modification to show the difference in the output > for failure of the test in both cases. The modification I made is: > static const char * const test_data_4_le[] __initconst = { > - "7bdb32be", "b293180a", "24c4ba70", "9b34837d", > + "7bdb32be", "b293180a", "24c4ba70", "9b3483d", > > The difference in outputs can be seen here: > https://gist.github.com/arpi-r/38f53a3c65692bf684a6bf3453884b6e Looks pretty much good, what I'm sad to see is the absence of the test statistics. Any ideas if we can get it back? -- With Best Regards, Andy Shevchenko