Lines Matching refs:test
44 static void __init test_init_min(struct kunit *const test) in test_init_min() argument
49 KUNIT_EXPECT_EQ(test, atomic64_read(&counter), 1ULL + U32_MAX); in test_init_min()
52 static void __init test_init_max(struct kunit *const test) in test_init_max() argument
57 KUNIT_EXPECT_EQ(test, atomic64_read(&counter), 1 + (2ULL * U32_MAX)); in test_init_max()
60 static void __init test_init_once(struct kunit *const test) in test_init_once() argument
66 KUNIT_EXPECT_EQ(test, atomic64_read(&counter), first_init); in test_init_once()
70 test, atomic64_read(&counter), first_init, in test_init_once()
128 static void test_range1_rand0(struct kunit *const test) in test_range1_rand0() argument
135 KUNIT_EXPECT_EQ(test, get_id_range(1, &counter, 0), init); in test_range1_rand0()
136 KUNIT_EXPECT_EQ(test, in test_range1_rand0()
142 static void test_range1_rand1(struct kunit *const test) in test_range1_rand1() argument
149 KUNIT_EXPECT_EQ(test, get_id_range(1, &counter, 1), init); in test_range1_rand1()
150 KUNIT_EXPECT_EQ(test, in test_range1_rand1()
156 static void test_range1_rand15(struct kunit *const test) in test_range1_rand15() argument
163 KUNIT_EXPECT_EQ(test, get_id_range(1, &counter, 15), init); in test_range1_rand15()
164 KUNIT_EXPECT_EQ(test, in test_range1_rand15()
170 static void test_range1_rand16(struct kunit *const test) in test_range1_rand16() argument
177 KUNIT_EXPECT_EQ(test, get_id_range(1, &counter, 16), init); in test_range1_rand16()
178 KUNIT_EXPECT_EQ(test, in test_range1_rand16()
184 static void test_range2_rand0(struct kunit *const test) in test_range2_rand0() argument
191 KUNIT_EXPECT_EQ(test, get_id_range(2, &counter, 0), init); in test_range2_rand0()
192 KUNIT_EXPECT_EQ(test, in test_range2_rand0()
198 static void test_range2_rand1(struct kunit *const test) in test_range2_rand1() argument
205 KUNIT_EXPECT_EQ(test, get_id_range(2, &counter, 1), init); in test_range2_rand1()
206 KUNIT_EXPECT_EQ(test, in test_range2_rand1()
212 static void test_range2_rand2(struct kunit *const test) in test_range2_rand2() argument
219 KUNIT_EXPECT_EQ(test, get_id_range(2, &counter, 2), init); in test_range2_rand2()
220 KUNIT_EXPECT_EQ(test, in test_range2_rand2()
226 static void test_range2_rand15(struct kunit *const test) in test_range2_rand15() argument
233 KUNIT_EXPECT_EQ(test, get_id_range(2, &counter, 15), init); in test_range2_rand15()
234 KUNIT_EXPECT_EQ(test, in test_range2_rand15()
240 static void test_range2_rand16(struct kunit *const test) in test_range2_rand16() argument
247 KUNIT_EXPECT_EQ(test, get_id_range(2, &counter, 16), init); in test_range2_rand16()
248 KUNIT_EXPECT_EQ(test, in test_range2_rand16()