Message ID | 20240301002416.it.092-kees@kernel.org |
---|---|
Headers |
Return-Path: <linux-kernel+bounces-87731-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2097:b0:108:e6aa:91d0 with SMTP id gs23csp768243dyb; Thu, 29 Feb 2024 16:27:12 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCU06S+Yt3y+MqBJVADh53NdLQ76JZzJazxQM1iLDbMC9X5ykbbZaSEgvbP4Vkj51t6Mm4kasWQmnXGPD1VDKcJrPmKqBw== X-Google-Smtp-Source: AGHT+IHl0L1mPU99gBasQquDFE/cPjKwS/z3rTtCMh3uhpv+ZjRgOon+qJzoY/9WFFM6FdTFtG7A X-Received: by 2002:a17:906:6b8d:b0:a43:742:3fe5 with SMTP id l13-20020a1709066b8d00b00a4307423fe5mr78959ejr.15.1709252832320; Thu, 29 Feb 2024 16:27:12 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709252832; cv=pass; d=google.com; s=arc-20160816; b=XAVaL6VTxARnrjXDp6QgEtjbYEGUNlksURrCp1ItS0jGyYuHSqt4Y1lbO9scTJ4T0W z3BoH+eJ6GbJmBuhzQmk8G4pkSXbBqHZXH8fcCjAAJaV1YL+A/Jn11KOdN0CTcFF9Qzo 6gBfSK/Aa59d8NAgjNYuwh5ui7s+9yaxZ0VZN/iO+QBbz63ACrfnUkeOU1BRVtWOH/Gk bVhuUkZwfjWewdp08YGjpSC4CLwIHaxLWIsuw4VcEf6JDgR9WKMRQhXaK+D1qUVNlLD5 5D/Z2/pqaZu5vVSW+NWPkJu1eKaH1XssXA9oVZpepmrDyQ64c9xCI3sNy3nij/to82Vy LUyA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=QrA5UyLICMttuHo47AmdIq8RaxySGVb6p80fwiVlvuQ=; fh=NPA6+xRNxeJL84FDwgZgsY/zSJbMLb4u5O3v6AYYOMQ=; b=s3XnZ5BDj8l2DcHVz5akC/ipTdmo0kTcwBtStsrl3x2rBBQSODrDuqeo3yzB36KuIt pVyEv6D/g4NfpkH9NHnbukgnMeodRFLjF7/wub3Q4gNHYq+7NIxiVNJr/xSepvgqolXM hfkAVifftcFST9vSkZPRKzZG/iiAevkaK66/LgsDdYWyHOTlTtrn4Sw5L1vTP+75B05K +UqDbslN6iMDmaJmUIV+3H6qfKZ2oHs27Jbl9j7M9HqMSzNKpSuerQOMnpeeEeMvF5ML J1J3hw6FMvZb6wmvoxaQ4sDj3ApfCfzVJEijFHx6C74U8bzuWs8z3VN6VqOSr0xRGLuN hTIg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="dH292u/1"; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-87731-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-87731-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id ox6-20020a170907100600b00a43553cc132si987013ejb.189.2024.02.29.16.27.12 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 16:27:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-87731-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="dH292u/1"; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-87731-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-87731-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org 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 am.mirrors.kernel.org (Postfix) with ESMTPS id E462C1F22871 for <ouuuleilei@gmail.com>; Fri, 1 Mar 2024 00:27:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F320D138C; Fri, 1 Mar 2024 00:26:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="dH292u/1" Received: from mail-oi1-f181.google.com (mail-oi1-f181.google.com [209.85.167.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CF1F3368 for <linux-kernel@vger.kernel.org>; Fri, 1 Mar 2024 00:26:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.181 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709252814; cv=none; b=aJf1pnwYEi84IHVEuH1gs/MYTw3t8CGjr/uOWZ6pbrBB6i+oqbgO5sjpionG1+q+RqNKDAMbsqauw0zFiYPKeCX2SXgD974BG/zvZTdtC7lQcbV2SNCknFNTzTzPpnBDQxAoCnhy8F1IfbKFu73DRrUuSZyDamCMPVOIfyN9CzE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709252814; c=relaxed/simple; bh=moYrqqxo2UDnuGHZWzH0ODEv4jfFfQLJ2rNJTkxWGDg=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=eYQEwg1jTIpoBdKP4xwq0PBFe6VGFctlBEbGOLEuDdyds0rzrnW+EeQ/GGtFt5mBkdqKSU3OSYbUdehFBmTM5HcQnm2hFdN7EfA8Gh2KL3bpfH98WgJ+WbCKFD/Cjq5FXiN6dsxDjNlCFPRCO54hZpWEQkMzwQpYC6AvEonvZq0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=dH292u/1; arc=none smtp.client-ip=209.85.167.181 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Received: by mail-oi1-f181.google.com with SMTP id 5614622812f47-3c1a2f7e1d2so829717b6e.1 for <linux-kernel@vger.kernel.org>; Thu, 29 Feb 2024 16:26:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1709252812; x=1709857612; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=QrA5UyLICMttuHo47AmdIq8RaxySGVb6p80fwiVlvuQ=; b=dH292u/1WWBJblIgtYZoIn6cRYLmh7BgnOEtQ+4MdItsmgDL1RXoCsQpGKvvz0L6vH qneVxIe1+N1ra1os89nGS+j0iZZrC+CFcV63s1r4IR2p6Q/LfkksTIJjveC6mkz+naf5 sQTSfWAXVdQWy8LN3eXqBfHLyF7TqgwQ8X2/A= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709252812; x=1709857612; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=QrA5UyLICMttuHo47AmdIq8RaxySGVb6p80fwiVlvuQ=; b=VuuuFsbDauV80fOlk7NqZofSLmEqIUXv1pVeOoOla+V7LPlitB8lpvQTsz3TE2AUc4 H+iUmmCPH3+7S3vGMkAIJRYNxn5G0ZJhcUZWtJtuHHL3oD7Zbzdc5kGLfJAzb0tCzbTA Kw7f8gngIls8fugsidkXY2Y1PQZFWDoPPsTqzp/Kj3FqCKTvmJDBwYQXbp1YMzOdjeb4 /V8AHMqdFj8GG5eh0hONmS3sUbEKASKqpGn69iLKRTrP78z3nR/zhy3jBKuoqvrUUK1z 2Km0LKe6cZuz8QUzDnR5tmp2Z0VcLhLYOIy25OupPW7es8sgdMlUKQaq+EVSDI9Quybr XLLg== X-Forwarded-Encrypted: i=1; AJvYcCV6hsMDy5v5cAiIG1GCozc/ZKDmxz/2d7+U61hB/5Ee2AHWYhyjp0XO6ZJVPf627+Ic4l8HYt6VNH/5VRnlFrW0JZ3L6PJMGYic5qI6 X-Gm-Message-State: AOJu0YyUKUit3NjpRA5O9HKv+/ZLkAFnh8TzHeSgZ/SPf6AnNTbuF/k/ L3ng4FZ+AxpgTfropcIBuXlT6IJxVbDdq4JoI4CVEXXPrTUMP2hU0E6XhK5DDg== X-Received: by 2002:a05:6808:3c93:b0:3c1:41fc:d012 with SMTP id gs19-20020a0568083c9300b003c141fcd012mr247384oib.34.1709252811946; Thu, 29 Feb 2024 16:26:51 -0800 (PST) Received: from www.outflux.net ([198.0.35.241]) by smtp.gmail.com with ESMTPSA id d4-20020aa78684000000b006e4ecc3e394sm1841748pfo.79.2024.02.29.16.26.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 16:26:50 -0800 (PST) From: Kees Cook <keescook@chromium.org> To: Andy Shevchenko <andy@kernel.org> Cc: Kees Cook <keescook@chromium.org>, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org Subject: [PATCH v2 0/2] string: Convert selftests to KUnit Date: Thu, 29 Feb 2024 16:26:46 -0800 Message-Id: <20240301002416.it.092-kees@kernel.org> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=893; i=keescook@chromium.org; h=from:subject:message-id; bh=moYrqqxo2UDnuGHZWzH0ODEv4jfFfQLJ2rNJTkxWGDg=; b=owEBbQKS/ZANAwAKAYly9N/cbcAmAcsmYgBl4SDIx+1hzENuYl6hlOaohCcjbErtMu6nYDGpe tlKDFUKztOJAjMEAAEKAB0WIQSlw/aPIp3WD3I+bhOJcvTf3G3AJgUCZeEgyAAKCRCJcvTf3G3A Jj8YD/9tmTSBz1IaC0rs2X8jkqHkNcS3dAM5KC6mzlItIbkMb2ZHf9M465ykfWmEP+2Q1wihYN5 ptkoLrHxVV3arN+ciF1A/vkdxajkFcKlp8PSEQHzgT+COw2fgNBbTfZgRPl1s/u7x/K9MkEy5zg 2tRLQ2dwT0g/OSw7naV/4f2+JlpCmhPslQzluJZoO5/hsuIUEhuqdSAEWTqPO52a6KdXXOKh9dl XM4glyth1t1Zu2ASU7rcBjYzq06bnBtLZHQJw44eA3eZAtH/MXlN7/de+DLcRTnaE4/GZiMfgzf hykOx05svh8WhAlwl0YjWMS2awUhhuhjQm7aIIhqzMomIldvNN+MxQBMC+KMDvjjOYhE54hmXKz tdezZPI0n7Vs2jSfPGZdOgccwILJefwZu6Ft1H5jlgLCE1qwPwgksrpf68+AqSX+57KxOGmbSSk 7TWjRcr19DJIHp2ZO9Ck+U04XW5wuuRptge/eO6ztTAxsiCaE4d2qmlRCm9X42UKBG6JegT/ef0 S8Nwsbs/rI90TkUFvhZfnZwh3dpl3f4/Q/Y/NffZtnuoC5GZvGU5n29zsdea7OeqjUwFE+++VNe TzAwT6XQth1oHb6iNeuOMxINtdY5JYTidKMFTy0CvYyy6HeZt9VnnGV9/hOZrvT1aAqtLIMJZx5 knHIZ5A6 Q8Jq0Eg== X-Developer-Key: i=keescook@chromium.org; a=openpgp; fpr=A5C3F68F229DD60F723E6E138972F4DFDC6DC026 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792278277511617989 X-GMAIL-MSGID: 1792281498105616999 |
Series |
string: Convert selftests to KUnit
|
|
Message
Kees Cook
March 1, 2024, 12:26 a.m. UTC
Hi, I realized the string selftests hadn't been converted to KUnit yet. Do that. -Kees v2: rebase onto https://lore.kernel.org/r/20240229205345.93902-1-andriy.shevchenko@linux.intel.com v1: https://lore.kernel.org/linux-hardening/20240229233432.work.675-kees@kernel.org/ Kees Cook (2): string: Convert selftest to KUnit string: Convert helpers selftest to KUnit MAINTAINERS | 4 +- lib/Kconfig.debug | 12 +- lib/Makefile | 4 +- ...tring_helpers.c => string_helpers_kunit.c} | 177 ++++++++++-------- lib/{test_string.c => string_kunit.c} | 166 ++++++---------- 5 files changed, 164 insertions(+), 199 deletions(-) rename lib/{test-string_helpers.c => string_helpers_kunit.c} (78%) rename lib/{test_string.c => string_kunit.c} (54%)
Comments
On Fri, Mar 1, 2024 at 2:26 AM Kees Cook <keescook@chromium.org> wrote: > > Hi, > > I realized the string selftests hadn't been converted to KUnit yet. Do that. IIRC last time somebody wanted to do that KUnit was completely sucking in supporting the cases we need in these files. (I mean proper messaging when we need to dump the expected and resulting data). And please Cc Rasmus as well.