Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp220732lqo; Thu, 16 May 2024 04:36:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU8Md/ZXxJsCcdQ2UXxsIl4tbEJUbqvcJhs2e65X0zP/AJeMl+2UOJwPDwjj8+dbNXvbXzec1/mWSWyx3ovpAYsWn6+nrmRSqw0R8TYCw== X-Google-Smtp-Source: AGHT+IFP74d/PgId4DxGhnHTSwwPrfjBwi6VEAH/pyKAGULSCSAsMGbVzgIkOwKm/C0fu+3i7TJK X-Received: by 2002:a05:6a21:394b:b0:1b0:14a0:c875 with SMTP id adf61e73a8af0-1b014a0cde5mr7792556637.1.1715859404433; Thu, 16 May 2024 04:36:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715859404; cv=pass; d=google.com; s=arc-20160816; b=qobc0rmDlKf4E8+Vu499oADj05fKsqM75n+IC5KLW8HBfglDW8aQAYZI0D90azlu6/ nmqSyZ7IP972Ueks6Z8qGpNabtUt3wRt5yPbJxeKTcAAnY8DQMQlhxYLpVee7QDLTwgi zJXjf0IwPfB0ONj6wYQyOy6ALaFOFz9kucW/Vs+7k6h454/kq/ToAf3AqpIF/Ojn7zeT JPYgNznfui9nKjF6XmTLH4G8eo24wpSOmG2+lcSFsTzPLgtvHRlnIREJ/mLc72rIOQnR RDhIdoWzVRAGFRDmNPcO8D7YAkNuvzcgdn9/WlzBP2d87xe8Dwb2Y7mdhUxMgDChaWFG 5k6A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=organization:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date:dkim-signature; bh=ZdZFT7vZ8tWCmEdArQ6f9VcXF3aeUEGml8FDNKjO0+0=; fh=bI6mT+FRGoID52nCBADIDLrpoG+ZZiWAf5n2rg/kwqg=; b=vqQuiBQK0nMitzkL50/8KGnzV2hHJW+PQLICNHUeGsC/E5F0U+I1Shg9uokLxHmamE UVYO9egTMDhWl+SmuCv8GUtnfhuPzrx+Chy9/OmiIKMJk4V6CiBBa8eGTHqJJyF4d88S WGbzq4r0JgYFPDnikkfV3+MSfRcQ7F88gzioTXwF6Tl5mm+XPNEZbQqg/Q4QBMTnJu5V 1T0v2hFpo2tt9AuSCo8jlEyDhVfb2c6uAxxDlTZnoWkx+Qm4MYRJPeYgjwJrGVvJpjwk UUc0lSh9G15cF5ieUKKDHR+IoVLzmCFBoDCz78VM9Ial51Bo/xNYzjxcddT36PMkJRcc vWJw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=gPfUkLrk; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-180904-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-180904-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2b970611930si6022374a91.50.2024.05.16.04.36.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 May 2024 04:36:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-180904-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=gPfUkLrk; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-180904-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-180904-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 5384EB232B2 for ; Thu, 16 May 2024 10:26:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1E5D4143C4D; Thu, 16 May 2024 10:26:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="gPfUkLrk" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BA778143898; Thu, 16 May 2024 10:26:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.11 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715855198; cv=none; b=AxFI+LrAknVnfGFmLfV9x2WFOzNDLeujCIRYq0HZdl8gXSo0fa++76/Ua90kN4Uni5W6ERWFm8MnEK2eD9SLrbiGlDXfbktEYw/YI4BPpxTsNG+hpeP4xQMg/uUZwtChirksPKIpr2k43Ap0BWAp3LBLbUGqus0jjoknXunlfak= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715855198; c=relaxed/simple; bh=6irmRYyO6aI1ugOg4kgQ1h12u9uSfnzT47OyGU1W4lU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=S3xk7SBDqaPCYmTEKSEhsoTbyn0fA9/wJ5njDnl9dY5fnXVjMb8dbO/MoRlFr80k+p7d6f10jR3LRJwFkApGIcE+qsmgu3mh/7r6M1pFhOQbogdqOrCNd77AuDy1sYnlNP7hQO+oSujTfh6+vt/tF1tjFG3r51GGRpS0JfGiTuc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=gPfUkLrk; arc=none smtp.client-ip=192.198.163.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1715855197; x=1747391197; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=6irmRYyO6aI1ugOg4kgQ1h12u9uSfnzT47OyGU1W4lU=; b=gPfUkLrkA2ENb63pkQ5Vkc65+90OrU89BJbru95RfpLwEoCFQNXVqADp wyhe6ANPEqzLc9obHB6C0PECeLcori1HzitCFSWWpcHSs9yPcSOhei/gD vWsDSYuyFS1hXOcSYafTaxW7c4hAJFfHF3TG7FGlgsXa9bJt22BYx70HZ Mq2MiQWS0Z9sXevbfSBeKwLwWwO8sxUAiW7LD0Tzyw3cVoxupHMoTxq8/ aTgSPkNzaSqNpE4XS4PntugGEKtB9tVy4HSvjuIKQOXBwXCRFDxLNoJyV VdUYzP9yaHZoxwt6RjCFXmdvcQ18xzq2Om1sO5umb+IjffFJDXdz+r++z A==; X-CSE-ConnectionGUID: 4gD4A0KaSrOGFGFNLON+Dg== X-CSE-MsgGUID: kPv/2X+PQUivodWnEahB0w== X-IronPort-AV: E=McAfee;i="6600,9927,11074"; a="22559639" X-IronPort-AV: E=Sophos;i="6.08,164,1712646000"; d="scan'208";a="22559639" Received: from orviesa004.jf.intel.com ([10.64.159.144]) by fmvoesa105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 May 2024 03:26:36 -0700 X-CSE-ConnectionGUID: +iBBDJxASNmMxB7aHGkj8w== X-CSE-MsgGUID: 0/10U3klRTirxFvbJ7jXGw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,164,1712646000"; d="scan'208";a="36265589" Received: from smile.fi.intel.com ([10.237.72.54]) by orviesa004.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 May 2024 03:26:34 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.97) (envelope-from ) id 1s7YJi-000000080YQ-1zYF; Thu, 16 May 2024 13:26:30 +0300 Date: Thu, 16 May 2024 13:26:30 +0300 From: Andy Shevchenko To: Devarsh Thakkar Cc: Daniel Latypov , brendanhiggins@google.com, davidgow@google.com, linux-kernel@vger.kernel.org, kunit-dev@googlegroups.com, linux-kselftest@vger.kernel.org, skhan@linuxfoundation.org, Linux Media Mailing List , Mauro Carvalho Chehab Subject: Re: [PATCH v6] lib: add basic KUnit test for lib/math Message-ID: References: <20210416180427.1545645-1-dlatypov@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo On Thu, May 16, 2024 at 03:49:44PM +0530, Devarsh Thakkar wrote: > Hi Daniel, Andy, > > On 16/04/21 23:34, Daniel Latypov wrote: > > Add basic test coverage for files that don't require any config options: > > * part of math.h (what seem to be the most commonly used macros) > > * gcd.c > > * lcm.c > > * int_sqrt.c > > * reciprocal_div.c > > (Ignored int_pow.c since it's a simple textbook algorithm.) > > > > These tests aren't particularly interesting, but they > > * provide short and simple examples of parameterized tests > > * provide a place to add tests for any new files in this dir > > * are written so adding new test cases to cover edge cases should be easy > > * looking at code coverage, we hit all the branches in the .c files > > > > Signed-off-by: Daniel Latypov > > Reviewed-by: David Gow > > Just checking if something else was pending on this patch-set for this not > getting merged? > > I needed this patch-set for adding tests for new macros I am adding in math.h > as suggested in this thread [1], so wanted to pull this in my series and add > changes on top of that for new macros. > > Kindly let me know your thoughts on this. Wow, blast from the past! But good finding, it would be good to have more math.h related test cases. -- With Best Regards, Andy Shevchenko