From a992acbb219a74fb025f8c2d65760fe05e775c7b Mon Sep 17 00:00:00 2001 From: Stephen Boyd Date: Thu, 20 Jan 2022 09:59:02 -0800 Subject: clk: gate: Add some kunit test suites Test various parts of the clk gate implementation with the kunit testing framework. Reviewed-by: Brendan Higgins Acked-by: Daniel Latypov Cc: Signed-off-by: Stephen Boyd Link: https://lore.kernel.org/r/20220120175902.2165958-1-sboyd@kernel.org --- drivers/clk/Kconfig | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'drivers/clk/Kconfig') diff --git a/drivers/clk/Kconfig b/drivers/clk/Kconfig index ad4256d54361..3cdf33470a75 100644 --- a/drivers/clk/Kconfig +++ b/drivers/clk/Kconfig @@ -428,4 +428,12 @@ source "drivers/clk/x86/Kconfig" source "drivers/clk/xilinx/Kconfig" source "drivers/clk/zynqmp/Kconfig" +# Kunit test cases +config CLK_GATE_KUNIT_TEST + tristate "Basic gate type Kunit test" if !KUNIT_ALL_TESTS + depends on KUNIT + default KUNIT_ALL_TESTS + help + Kunit test for the basic clk gate type. + endif -- cgit v1.2.3