File tree Expand file tree Collapse file tree 4 files changed +796
-0
lines changed Expand file tree Collapse file tree 4 files changed +796
-0
lines changed Original file line number Diff line number Diff line change 1
1
CONFIG_KUNIT=y
2
2
CONFIG_COMMON_CLK=y
3
+ CONFIG_CLK_KUNIT_TEST=y
3
4
CONFIG_CLK_GATE_KUNIT_TEST=y
Original file line number Diff line number Diff line change @@ -429,6 +429,13 @@ source "drivers/clk/xilinx/Kconfig"
429
429
source "drivers/clk/zynqmp/Kconfig"
430
430
431
431
# Kunit test cases
432
+ config CLK_KUNIT_TEST
433
+ tristate "Basic Clock Framework Kunit Tests" if !KUNIT_ALL_TESTS
434
+ depends on KUNIT
435
+ default KUNIT_ALL_TESTS
436
+ help
437
+ Kunit tests for the common clock framework.
438
+
432
439
config CLK_GATE_KUNIT_TEST
433
440
tristate "Basic gate type Kunit test" if !KUNIT_ALL_TESTS
434
441
depends on KUNIT
Original file line number Diff line number Diff line change 2
2
# common clock types
3
3
obj-$(CONFIG_HAVE_CLK) += clk-devres.o clk-bulk.o clkdev.o
4
4
obj-$(CONFIG_COMMON_CLK) += clk.o
5
+ obj-$(CONFIG_CLK_KUNIT_TEST) += clk_test.o
5
6
obj-$(CONFIG_COMMON_CLK) += clk-divider.o
6
7
obj-$(CONFIG_COMMON_CLK) += clk-fixed-factor.o
7
8
obj-$(CONFIG_COMMON_CLK) += clk-fixed-rate.o
You can’t perform that action at this time.
0 commit comments