Lines Matching full:test

5 #include <kunit/test.h>
8 /* Basic test for aggregating two "min" requests */
9 static void freq_qos_test_min(struct kunit *test) in freq_qos_test_min() argument
20 KUNIT_EXPECT_EQ(test, ret, 1); in freq_qos_test_min()
22 KUNIT_EXPECT_EQ(test, ret, 1); in freq_qos_test_min()
24 KUNIT_EXPECT_EQ(test, freq_qos_read_value(&qos, FREQ_QOS_MIN), 2000); in freq_qos_test_min()
27 KUNIT_EXPECT_EQ(test, ret, 1); in freq_qos_test_min()
28 KUNIT_EXPECT_EQ(test, freq_qos_read_value(&qos, FREQ_QOS_MIN), 1000); in freq_qos_test_min()
31 KUNIT_EXPECT_EQ(test, ret, 1); in freq_qos_test_min()
32 KUNIT_EXPECT_EQ(test, freq_qos_read_value(&qos, FREQ_QOS_MIN), in freq_qos_test_min()
36 /* Test that requests for MAX_DEFAULT_VALUE have no effect */
37 static void freq_qos_test_maxdef(struct kunit *test) in freq_qos_test_maxdef() argument
46 KUNIT_EXPECT_EQ(test, freq_qos_read_value(&qos, FREQ_QOS_MAX), in freq_qos_test_maxdef()
51 KUNIT_EXPECT_EQ(test, ret, 0); in freq_qos_test_maxdef()
54 KUNIT_EXPECT_EQ(test, ret, 0); in freq_qos_test_maxdef()
58 KUNIT_EXPECT_EQ(test, ret, 1); in freq_qos_test_maxdef()
59 KUNIT_EXPECT_EQ(test, freq_qos_read_value(&qos, FREQ_QOS_MAX), 1000); in freq_qos_test_maxdef()
63 KUNIT_EXPECT_EQ(test, ret, 0); in freq_qos_test_maxdef()
64 KUNIT_EXPECT_EQ(test, freq_qos_read_value(&qos, FREQ_QOS_MAX), 1000); in freq_qos_test_maxdef()
68 KUNIT_EXPECT_EQ(test, ret, 1); in freq_qos_test_maxdef()
69 KUNIT_EXPECT_EQ(test, freq_qos_read_value(&qos, FREQ_QOS_MAX), 2000); in freq_qos_test_maxdef()
73 * Test that a freq_qos_request can be added again after removal
78 static void freq_qos_test_readd(struct kunit *test) in freq_qos_test_readd() argument
86 KUNIT_EXPECT_EQ(test, freq_qos_read_value(&qos, FREQ_QOS_MIN), in freq_qos_test_readd()
91 KUNIT_EXPECT_EQ(test, ret, 1); in freq_qos_test_readd()
92 KUNIT_EXPECT_EQ(test, freq_qos_read_value(&qos, FREQ_QOS_MIN), 1000); in freq_qos_test_readd()
96 KUNIT_EXPECT_EQ(test, ret, 1); in freq_qos_test_readd()
97 KUNIT_EXPECT_EQ(test, freq_qos_read_value(&qos, FREQ_QOS_MIN), in freq_qos_test_readd()
102 KUNIT_EXPECT_EQ(test, ret, 1); in freq_qos_test_readd()
103 KUNIT_EXPECT_EQ(test, freq_qos_read_value(&qos, FREQ_QOS_MIN), 2000); in freq_qos_test_readd()
114 .name = "qos-kunit-test",