Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2805919rwd; Fri, 9 Jun 2023 17:59:11 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6PfiY4DuaVeSVYMEpvAv4ImOtmenBZ/oMh6YM9i6RmrRx4vw715QJH+z2Lh29L+Guhap3s X-Received: by 2002:a17:90a:4885:b0:259:42f2:1fd5 with SMTP id b5-20020a17090a488500b0025942f21fd5mr2362487pjh.26.1686358751594; Fri, 09 Jun 2023 17:59:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686358751; cv=none; d=google.com; s=arc-20160816; b=zGLN3eOokrp+k6tEzkW2FzZHMEr3oAkYrZ0zzG6XPaPB99b5jAX2KfxVeJARpi/u/J C5prHCjYCH8DXBIEz+RQMKMHnaN0ViyXbmDW4pYNrEWxDuUNmZkF7LbIO6BtuLDtkF21 +WL03SkDFHJOrK8VKl12y1F3dRdGsmWK40dZlH8gkxNe3JSR35CfmCfdj/dL/+1RFLnE 1zgetBYDI/qWmCKo+wvXGFX6JL7/25Q+KJ8WhfGBJZVZ+7bJlhLsevfXkgJkL+c0wAAT pxd+APQIqT3YcxZY1qSLagTbAFFFMyXKVg3c/WCxk4yO0t6H9V4ryJiCDX7G4g2i3omr +GEw== 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=KcmdgdtrOaPERzGMLLSgLUzQ9hHmsIkGLHU1LmoZfH8=; b=tVFyYfaOLLN9VzlqdHgyrxFmjOggLKX7tCC04HblwvzPaCZIxQazWo1fuBN9twwXci SjyowmhystToCr2Z1hPrgV2tXqLl9SaCA6oDpY06NGSRvCLr+WFApFoh5g5x8Xvl44R0 7NoLEN8FY20A8LEkJDnmSxioXRhII+ye/LGWH7KghjUi9FbGeNN1yF7nd7TrMBgLBmLn JW7eoNmXgWmQSmWzCFCQHe96C0xG1UNL1ITz/dWuL+0CUH+VQw7OH/S4nOExjcMK9xst 6hPyhGS+5t5mhVyY+My+MV4wtKr2t9EW1GzV6BtiBzgzgf/6WwCiXr1J3qTlgMj/j7Q8 qP1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b="22Hb/1Pu"; 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 l64-20020a639143000000b005307ce6fd07si314430pge.850.2023.06.09.17.58.59; Fri, 09 Jun 2023 17:59:11 -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="22Hb/1Pu"; 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 S232932AbjFJAw3 (ORCPT + 99 others); Fri, 9 Jun 2023 20:52:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52408 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232740AbjFJAwT (ORCPT ); Fri, 9 Jun 2023 20:52:19 -0400 Received: from mail-yw1-x1149.google.com (mail-yw1-x1149.google.com [IPv6:2607:f8b0:4864:20::1149]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1135E30E5 for ; Fri, 9 Jun 2023 17:52:18 -0700 (PDT) Received: by mail-yw1-x1149.google.com with SMTP id 00721157ae682-56536dd5f79so33262327b3.3 for ; Fri, 09 Jun 2023 17:52:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1686358337; x=1688950337; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=KcmdgdtrOaPERzGMLLSgLUzQ9hHmsIkGLHU1LmoZfH8=; b=22Hb/1PuiZ6DCILf0AAvPSn7RCceVmjHUMkry1uEt7SnQWVqm0GdauDWyayZNLHePk treeEyNSuxwZnzIj1JdAE3QODBhN0LUH3X7GPduL7LWybzUeWhV2S0tIMW917YmYmdrk uCGy0JI5whT0RAjzzYZI0O7rngpvEVwH8KfHyApXpcfFK57jGWcFz/1shb4TvOaF+QpR vAuhIqxiS520cOmhta6uqhv5XKIBro6kTWqQK9CLNO9YICKTNoh0xDQt8QfcoR1zHTKM UMLJhNgR4gn2Sewwd4+sflVmXIgvriDSlcI5c4hGOIumWhCEMZYgJTIbeFXcYhKJIYIj 5zbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686358337; x=1688950337; 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=KcmdgdtrOaPERzGMLLSgLUzQ9hHmsIkGLHU1LmoZfH8=; b=Kdx+AJER3NJ4f9nocuTIJh3Qo2yL96awG7djZ/abOmvOdroxpe0SxSqd+hnJjS96vT FoJjQ3bN19YxydNN4mFDMtq1rPyWoLw1pIJQGjM9WCnQcMH7JQXv3MuBmsPwHUxCYUyJ VP/zcEmaxHIqmwAbihaED0+NTp4HXTfqHTCb2tsQCfp6e7mUyRYRNt6mKcX7+DTEY0Ki JXc1UpI80LQ82UROMK1eccT/9kPnSJn9dm4qKzXjELqXlC9Iw019HhfUg2IsmmVhqM1M vUWGbSOiM6S9hC9PguKPRIaQd9Azwu2lEVKsRc++TXcQUHZE3+wfnaXAf4XJgtMyNvIs UKdA== X-Gm-Message-State: AC+VfDyG77c3ZFYHY1f94pMT/8fbP0EyU55QhEZFfnYucrQKk+oiG3fm 9bFKhhJztOxFYcMBWnDXh7onh+TIkg== X-Received: from rmoar-specialist.c.googlers.com ([fda3:e722:ac3:cc00:2b:7d90:c0a8:45d3]) (user=rmoar job=sendgmr) by 2002:a81:c14b:0:b0:561:b7fc:7445 with SMTP id e11-20020a81c14b000000b00561b7fc7445mr1706591ywl.1.1686358337108; Fri, 09 Jun 2023 17:52:17 -0700 (PDT) Date: Sat, 10 Jun 2023 00:51:49 +0000 In-Reply-To: <20230610005149.1145665-1-rmoar@google.com> Mime-Version: 1.0 References: <20230610005149.1145665-1-rmoar@google.com> X-Mailer: git-send-email 2.41.0.162.gfafddb0af9-goog Message-ID: <20230610005149.1145665-7-rmoar@google.com> Subject: [RFC v1 6/6] 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=unavailable 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 on 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 --- 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.162.gfafddb0af9-goog