From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from fanzine2.igalia.com (fanzine.igalia.com [178.60.130.6]) (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 8C8D320F08C for ; Thu, 23 Jan 2025 12:33:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=178.60.130.6 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737635588; cv=none; b=qokZkfuLIoAWELh0erUdACsX5FwfbsGfaBPJldxzhDNCi3aHbXkEGn6VkLs4x/VhDMsxeii/tXBgrUpDfNd/m26Q17JGDVyZmds7MSjnmF5tnyaE3bo2DUAvD6afJ+oazSbZ0Mk+lkgqKR22PDPi//vJUe8ESYB7IjCyYLrL01I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737635588; c=relaxed/simple; bh=FZN6LIhsx42udoQ6Bg+WFs8IBa0gH0kXLbVxKuPoVNA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=r6+sJa3q87Vfazb6TiTRKI1ONLUJI5SwulKMsZBAN6NaD6oZX0ZnhNXOEC56qit6za5wuunYUx/GlBf2r7EtNTZck4sGEkTtDRndiDrL0GAIn1xoCBlOaUQhUeIh90yq0z7Lt0NYuAseUZYEjsk3LCAuuLnfCYEq458rwNF87ew= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=igalia.com; spf=pass smtp.mailfrom=igalia.com; dkim=pass (2048-bit key) header.d=igalia.com header.i=@igalia.com header.b=amiBBY9w; arc=none smtp.client-ip=178.60.130.6 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=igalia.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=igalia.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=igalia.com header.i=@igalia.com header.b="amiBBY9w" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=igalia.com; s=20170329; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=bMQoxABypR0UB7KISfgpW8UUl2xhkm8hNTmM8KjOWUc=; b=amiBBY9w4XNfN+uFx4eMQ0X8lS YVXi87eOE0nqV1T1PDgmD1Bnv+IfuouXQch18pUZO8TqpTDposgx4tmd9BvhzCExtDvmmSOnLFCYP fI+jHYo1b9uLGNPWaJSchJA3tBqEa9fBLFxe5yrUUH5k22lkS/oAymYm2fB7OzezY6uyXozM8sTtK mc13mp+jxjtSobVuTUqeYof9acjn+ZRKvDjQmvOeoSxovlp5b9a9fjHXrngSPKn01MJv4vrKYYDzg 7GyEtcfTXYeTYLxvBwXEXnSH8ugVMCOz3OIJzWLUvAXw+D7j45+13m93sMPI2C89Z3gBDKXDypAd1 wg+GiEfw==; Received: from [177.180.73.242] (helo=quatroqueijos..) by fanzine2.igalia.com with esmtpsa (Cipher TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim) id 1tawOO-001CCB-K4; Thu, 23 Jan 2025 13:33:04 +0100 From: Thadeu Lima de Souza Cascardo To: linux-kernel@vger.kernel.org Cc: Arnd Bergmann , Greg Kroah-Hartman , Andrew Morton , Dirk VanDerMerwe , Vimal Agrawal , kernel-dev@igalia.com, Thadeu Lima de Souza Cascardo Subject: [PATCH 1/4] char: misc: improve testing Kconfig description Date: Thu, 23 Jan 2025 09:32:46 -0300 Message-Id: <20250123123249.4081674-2-cascardo@igalia.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250123123249.4081674-1-cascardo@igalia.com> References: <20250123123249.4081674-1-cascardo@igalia.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Describe that it tests the miscdevice API and include the usual disclaimer about KUnit not being fit for production kernels. While at it, also fix KUnit capitalization. Signed-off-by: Thadeu Lima de Souza Cascardo --- lib/Kconfig.debug | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index 775966cf6114..8612ba8771aa 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug @@ -2493,13 +2493,20 @@ config TEST_IDA tristate "Perform selftest on IDA functions" config TEST_MISC_MINOR - tristate "Basic misc minor Kunit test" if !KUNIT_ALL_TESTS + tristate "miscdevice KUnit test" if !KUNIT_ALL_TESTS depends on KUNIT default KUNIT_ALL_TESTS help - Kunit test for the misc minor. - It tests misc minor functions for dynamic and misc dynamic minor. - This include misc_xxx functions + Kunit test for miscdevice API, specially its behavior in respect to + static and dynamic minor numbers. + + KUnit tests run during boot and output the results to the debug log + in TAP format (https://testanything.org/). Only useful for kernel devs + running the KUnit test harness, and not intended for inclusion into a + production build. + + For more information on KUnit and unit tests in general please refer + to the KUnit documentation in Documentation/dev-tools/kunit/. If unsure, say N. -- 2.34.1