kunit: time: Mark test as slow using test attributes
authorRae Moar <rmoar@google.com>
Tue, 25 Jul 2023 21:25:18 +0000 (21:25 +0000)
committerShuah Khan <skhan@linuxfoundation.org>
Wed, 26 Jul 2023 19:29:35 +0000 (13:29 -0600)
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.

Reviewed-by: David Gow <davidgow@google.com>
Signed-off-by: Rae Moar <rmoar@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
kernel/time/time_test.c

index 831e8e7..ca058c8 100644 (file)
@@ -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),
        {}
 };