Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp3543238pxb; Wed, 14 Apr 2021 07:54:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyI6hQEsEiNIvi4G7IdEj/z4KlkPF+BC0hscbEItW+hTbqfyKLjSReIJRQP0kY9hRELJa+U X-Received: by 2002:a17:906:8591:: with SMTP id v17mr38398975ejx.260.1618412066735; Wed, 14 Apr 2021 07:54:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618412066; cv=none; d=google.com; s=arc-20160816; b=AScHXKTCa/h+dyE5y1sozJCpGQQYwlNOWo8rLxzt0SLrbi+/lyA/nOwoidLqwKcUKA 8Xnr9WJ0W7NK+578yBwaAy3usjMZ3grzzp0IyHR3TWWogw8y8Sn44BJOdTi3HQ/TA7QR zfNSP9SOvoQdAFRkElQg7bImIPLli9MFw1FHqxwvw/hqzkt/Q7o61aSsXE26wx4/kPm7 JynhDpqrPDYN+6VHUWKLcl/IV+bozaLSn4b5tpkWzYMSKiI6HH01oKh4i42ZuJ6QcAW3 b7Gac3Fvq7Og2rebz3Bi5mTZvsWxCYABm5aJdKhCDJPodEFmqfGcCkNZKmVIzu+CuD/P MI1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=jlnZwcw+mxLXWda0HYhbEoeQ7agY7cub5GyZAaXsC1s=; b=X7LPXfthQG5p+M/tiKHiSXuFOQv/ipli6mwvyjYzar9y1hnMS+PUbWz1xAcsyuCYF3 O63bePvQn4D/UFRxEw4X1D9zLnVujuybnAgsozP2RZ/zOhu6MLFPNeZ3wFxw5xfEitU6 2nkhPaeZ2UtGDJJDRXkZMkQrN0bApdAVDy2A3TS4wj8c/1/OIaQWAuCc1Qy/cs0yjt/E AwGmuYTPbc9Om1TTbZA+fQFvy5SlkclnGP4fsgOa5yykWeSj2JI7E0RXVRkn7XrTFaTe b/+LEbjLPOQfXmEG9pK9ZV91z4Q8hP7MTdPJ3cvGmUxJDa30rt6/BsL0iVEAPybHg9J5 kKrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Crz5isC1; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d16si11307660edz.507.2021.04.14.07.54.03; Wed, 14 Apr 2021 07:54:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-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=@redhat.com header.s=mimecast20190719 header.b=Crz5isC1; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350246AbhDNJBH (ORCPT + 99 others); Wed, 14 Apr 2021 05:01:07 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:47817 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350248AbhDNJAN (ORCPT ); Wed, 14 Apr 2021 05:00:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1618390729; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=jlnZwcw+mxLXWda0HYhbEoeQ7agY7cub5GyZAaXsC1s=; b=Crz5isC1KK+YJ2aKwv0viJR7JAs26IFYjUtYdmV5BlHgxgsf+UToOdbigR2OCwGHq0OfIb WgQrsA6tkkml6xXXC6AZnzuVu9QbAi7plRBcLjAkhyKLBAcCo1LwLZamIjeaPnupBJugHn 6qkEUYytE9K1L2alghY/R6ff7s3O+2Y= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-449-BinsS_SQNfC2qh-O4LuB6g-1; Wed, 14 Apr 2021 04:58:47 -0400 X-MC-Unique: BinsS_SQNfC2qh-O4LuB6g-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 3A07680A19E; Wed, 14 Apr 2021 08:58:45 +0000 (UTC) Received: from localhost.localdomain.com (ovpn-112-67.rdu2.redhat.com [10.10.112.67]) by smtp.corp.redhat.com (Postfix) with ESMTP id 634395D76F; Wed, 14 Apr 2021 08:58:43 +0000 (UTC) From: Nico Pache To: linux-kernel@vger.kernel.org Cc: brendanhiggins@google.com, gregkh@linuxfoundation.org, linux-ext4@vger.kernel.org, netdev@vger.kernel.org, rafael@kernel.org, npache@redhat.com, linux-m68k@lists.linux-m68k.org, geert@linux-m68k.org, tytso@mit.edu, mathew.j.martineau@linux.intel.com, davem@davemloft.net, broonie@kernel.org, davidgow@google.com, skhan@linuxfoundation.org, mptcp@lists.linux.dev Subject: [PATCH v2 4/6] kunit: lib: adhear to KUNIT formatting standard Date: Wed, 14 Apr 2021 04:58:07 -0400 Message-Id: In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org Change config names inorder to adhear to the KUNIT *KUNIT_TEST config name format. Add 'if !KUNIT_ALL_TESTS' to the KUNIT config tristates inorder to adhear to the KUNIT standard. add 'default KUNIT_ALL_TESTS' to the KUNIT config options inorder to adhear to the KUNIT standard. Fixes: 6d511020e13d (lib/test_bits.c: add tests of GENMASK) Fixes: d2585f5164c2 (lib: kunit: add bitfield test conversion to KUnit) Fixes: 33d599f05299 (lib/test_linear_ranges: add a test for the 'linear_ranges') Signed-off-by: Nico Pache --- lib/Kconfig.debug | 21 +++++++++++++-------- lib/Makefile | 6 +++--- 2 files changed, 16 insertions(+), 11 deletions(-) diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index 417c3d3e521b..e7a5f4cc6de1 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug @@ -2279,9 +2279,10 @@ config TEST_SYSCTL If unsure, say N. -config BITFIELD_KUNIT - tristate "KUnit test bitfield functions at runtime" +config BITFIELD_KUNIT_TEST + tristate "KUnit test bitfield functions at runtime" if !KUNIT_ALL_TESTS depends on KUNIT + default KUNIT_ALL_TESTS help Enable this option to test the bitfield functions at boot. @@ -2296,8 +2297,9 @@ config BITFIELD_KUNIT If unsure, say N. config RESOURCE_KUNIT_TEST - tristate "KUnit test for resource API" + tristate "KUnit test for resource API" if !KUNIT_ALL_TESTS depends on KUNIT + default KUNIT_ALL_TESTS help This builds the resource API unit test. Tests the logic of API provided by resource.c and ioport.h. @@ -2337,9 +2339,10 @@ config LIST_KUNIT_TEST If unsure, say N. -config LINEAR_RANGES_TEST - tristate "KUnit test for linear_ranges" +config LINEAR_RANGES_KUNIT_TEST + tristate "KUnit test for linear_ranges" if !KUNIT_ALL_TESTS depends on KUNIT + default KUNIT_ALL_TESTS select LINEAR_RANGES help This builds the linear_ranges unit test, which runs on boot. @@ -2350,8 +2353,9 @@ config LINEAR_RANGES_TEST If unsure, say N. config CMDLINE_KUNIT_TEST - tristate "KUnit test for cmdline API" + tristate "KUnit test for cmdline API" if !KUNIT_ALL_TESTS depends on KUNIT + default KUNIT_ALL_TESTS help This builds the cmdline API unit test. Tests the logic of API provided by cmdline.c. @@ -2360,9 +2364,10 @@ config CMDLINE_KUNIT_TEST If unsure, say N. -config BITS_TEST - tristate "KUnit test for bits.h" +config BITS_KUNIT_TEST + tristate "KUnit test for bits.h" if !KUNIT_ALL_TESTS depends on KUNIT + default KUNIT_ALL_TESTS help This builds the bits unit test. Tests the logic of macros defined in bits.h. diff --git a/lib/Makefile b/lib/Makefile index b5307d3eec1a..ffa749c3b6e4 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -347,10 +347,10 @@ obj-$(CONFIG_OBJAGG) += objagg.o obj-$(CONFIG_PLDMFW) += pldmfw/ # KUnit tests -obj-$(CONFIG_BITFIELD_KUNIT) += bitfield_kunit.o +obj-$(CONFIG_BITFIELD_KUNIT_TEST) += bitfield_kunit.o obj-$(CONFIG_LIST_KUNIT_TEST) += list-test.o -obj-$(CONFIG_LINEAR_RANGES_TEST) += test_linear_ranges.o -obj-$(CONFIG_BITS_TEST) += test_bits.o +obj-$(CONFIG_LINEAR_RANGES_KUNIT_TEST) += test_linear_ranges.o +obj-$(CONFIG_BITS_KUNIT_TEST) += test_bits.o obj-$(CONFIG_CMDLINE_KUNIT_TEST) += cmdline_kunit.o obj-$(CONFIG_GENERIC_LIB_DEVMEM_IS_ALLOWED) += devmem_is_allowed.o -- 2.30.2