Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp32472336rwd; Fri, 7 Jul 2023 14:46:40 -0700 (PDT) X-Google-Smtp-Source: APBJJlFfWfIxAMjn2h6vQV5hNsVrHX7cmd/NelF8R+3MmG/QRPwUou3z+8bsOZOAs/PrJ8c2zS8A X-Received: by 2002:a17:902:a514:b0:1b1:99c9:8ce5 with SMTP id s20-20020a170902a51400b001b199c98ce5mr11664759plq.16.1688766399687; Fri, 07 Jul 2023 14:46:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688766399; cv=none; d=google.com; s=arc-20160816; b=AMxXOWo6XCRgh3ZXnqJ3doxpQJBslrsYk049PW5zcJQ9+Tqj1RmzLeMCvUOXsKZMq9 L502JzoiPNp+IBrH6UMGPhXl6Xju92jcJk1rjMz1Zeo0BfyYaStUCJpE13DhBJf5R+V7 SP68stDMF/HDxJLT5NnysNSsGjWVgtbFM46hqP8Hq585Vk/sYZTMQOueFxdTm7ufdsjF 97OHB8uxnAlCiex6U/yn/TWJgD7r04DgJHcQRUYdUcmDU9egX9i55cnUwR9TLRVwg1sL 8aeymQ8zLo/cB5AdBwU6OIwa3QcF/5bvvswCa5RrQWP+JddBSu8c8oDJ5mw+JnirV645 5B2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:dkim-signature; bh=DvImKJCnpIBlsXhTAJ5caOzinogK+Nn3xCDMVw248HA=; fh=eSOGplXNKm0TQlVMiAPjma3ZxjxuDQ0l9LD5ETEQPUY=; b=jOE0gHlrptJnxFEUDRp0y/M0qGGdtvRBJih+9zxBsc38dUcLS/BhZfkYhNomkzy/j1 WLbDvlyqT7tIWOO0udYBgQGL/IVHcKNkVDPOBhloQxeAa65T5YXtYRsbNE7z07H1e3u8 JUZcCSf+1YUGsk4W9kC9lG6loSSK9/zx8k6nTDtP1aQR2Z/tTYjsAJcidYudcMXQbfRx JuWFv8zRb4Ow+nKwRWyZC8UiiSE1DwtyX40aYdizDBE1GAYCs+f4fs15u2/Ata+WNYes KGX69fvy8aC9Ot9+99mOQBQR7mV31NIExOKlxBFuvaN6yMNGyVos9930M/bgwLSVp7v5 E4+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=IjuYQHNx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n10-20020a170902e54a00b001b8c9c273afsi3699294plf.456.2023.07.07.14.46.26; Fri, 07 Jul 2023 14:46:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=IjuYQHNx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232878AbjGGVK0 (ORCPT + 99 others); Fri, 7 Jul 2023 17:10:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60274 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232809AbjGGVKO (ORCPT ); Fri, 7 Jul 2023 17:10:14 -0400 Received: from mail-yb1-xb4a.google.com (mail-yb1-xb4a.google.com [IPv6:2607:f8b0:4864:20::b4a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 43EF726A3 for ; Fri, 7 Jul 2023 14:10:06 -0700 (PDT) Received: by mail-yb1-xb4a.google.com with SMTP id 3f1490d57ef6-c4e0342c50dso2368412276.2 for ; Fri, 07 Jul 2023 14:10:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1688764206; x=1691356206; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=DvImKJCnpIBlsXhTAJ5caOzinogK+Nn3xCDMVw248HA=; b=IjuYQHNxzDetS1bFh3oTNA99NoYKBnvi1iDS+FsNxK7dlEGVkehUUzIrqTKMW8vFWQ pAe5SaRChZa/wkNbxuAyr2PQDTwSATtkICGZp0IacWufQ8rDsoNJMypaSVRkS10jDRCh Bcv362LHJNfHGk/R/U5sK3pv+XxhDGxRuGMKzHG4AhbwcGZPgLAt/NCXtn14YcrWcA+q osYuH6Qt4rUVaKNa2RqqsO6jK+5Gh/dTZL658vNtTLPJRdFMg9IBUZxXSkvIH6OQ5Kdw xe8cvPsdKWo78euGlZaFZgcDc5QC9VsZMhYlieP83NH8Pye4/F/nNR5SCAJ5glVwUJ5j E06g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688764206; x=1691356206; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=DvImKJCnpIBlsXhTAJ5caOzinogK+Nn3xCDMVw248HA=; b=hJ9lKXKoYzycfpI70hdRfaZA9nsr/hrFwS51zXhQdbVtSz5fXpMf7U+3FQ3w4qILot hMZopy/lFYSSZIk5Now17RjsV09/COXjqNl5xxllCtEs4wP7oryBNdeySqFhxDGK2Ytn JVQq1OtfNhp3lB4PqkHKAWA62mJ1/S+4znzV+QQrKAmkaQ6jr6SwL/vrqMAFZs8Caf4B S1+U6kDrq7VYrlvvFXywAAmdibGLLvZkuLl+gLQX2piIViM6TNHPOFM4sNtcNq7volV8 v6w3F4c9g5ProAJjS5UHcf3uhgEAFpsnHXP8pf1+WHSu+K1HTJzgQefaS/YVEFCprDRF vESQ== X-Gm-Message-State: ABy/qLYVzp+SnaH58h7w3rNmy4oiFeUA84H/ZwZui0FJZlqhbmcOQQvG L4QW2wghpm+KmjYm6qlzyBOEk8yHVw== X-Received: from rmoar-specialist.c.googlers.com ([fda3:e722:ac3:cc00:2b:7d90:c0a8:45d3]) (user=rmoar job=sendgmr) by 2002:a5b:905:0:b0:c4c:f97e:421a with SMTP id a5-20020a5b0905000000b00c4cf97e421amr59714ybq.4.1688764206117; Fri, 07 Jul 2023 14:10:06 -0700 (PDT) Date: Fri, 7 Jul 2023 21:09:45 +0000 In-Reply-To: <20230707210947.1208717-1-rmoar@google.com> Mime-Version: 1.0 References: <20230707210947.1208717-1-rmoar@google.com> X-Mailer: git-send-email 2.41.0.255.g8b1d071c50-goog Message-ID: <20230707210947.1208717-8-rmoar@google.com> Subject: [RFC v2 7/9] kunit: time: Mark test as slow using test attributes From: Rae Moar To: shuah@kernel.org, davidgow@google.com, dlatypov@google.com, brendan.higgins@linux.dev Cc: linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com, linux-kernel@vger.kernel.org, keescook@chromium.org, linux-hardening@vger.kernel.org, jstultz@google.com, tglx@linutronix.de, sboyd@kernel.org, Rae Moar Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Mark the time KUnit test, time64_to_tm_test_date_range, as slow using test attributes. This test ran relatively much slower than most other KUnit tests. By marking this test as slow, the test can now be filtered using the KUnit test attribute filtering feature. Example: --filter "speed>slow". This will run only the tests that have speeds faster than slow. The slow attribute will also be outputted in KTAP. Signed-off-by: Rae Moar --- Changes since v1: - No changes. kernel/time/time_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/time/time_test.c b/kernel/time/time_test.c index 831e8e779ace..ca058c8af6ba 100644 --- a/kernel/time/time_test.c +++ b/kernel/time/time_test.c @@ -86,7 +86,7 @@ static void time64_to_tm_test_date_range(struct kunit *test) } static struct kunit_case time_test_cases[] = { - KUNIT_CASE(time64_to_tm_test_date_range), + KUNIT_CASE_SLOW(time64_to_tm_test_date_range), {} }; -- 2.41.0.255.g8b1d071c50-goog