Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

fpga: add configuration for the FPGA KUnit test suites.

Add configuration for the KUnit test suites for the core components
of the FPGA subsystem.

Signed-off-by: Marco Pagani <marpagan@redhat.com>
Acked-by: Xu Yilun <yilun.xu@intel.com>
Link: https://lore.kernel.org/r/20230718130304.87048-5-marpagan@redhat.com
Signed-off-by: Xu Yilun <yilun.xu@intel.com>

authored by

Marco Pagani and committed by
Xu Yilun
3969f645 64a5f972

+27
+2
drivers/fpga/Kconfig
··· 276 276 FPGA manager driver support for Lattice FPGAs programming over slave 277 277 SPI sysCONFIG interface. 278 278 279 + source "drivers/fpga/tests/Kconfig" 280 + 279 281 endif # FPGA
+3
drivers/fpga/Makefile
··· 55 55 56 56 # Drivers for FPGAs which implement DFL 57 57 obj-$(CONFIG_FPGA_DFL_PCI) += dfl-pci.o 58 + 59 + # KUnit tests 60 + obj-$(CONFIG_FPGA_KUNIT_TESTS) += tests/
+5
drivers/fpga/tests/.kunitconfig
··· 1 + CONFIG_KUNIT=y 2 + CONFIG_FPGA=y 3 + CONFIG_FPGA_REGION=y 4 + CONFIG_FPGA_BRIDGE=y 5 + CONFIG_FPGA_KUNIT_TESTS=y
+11
drivers/fpga/tests/Kconfig
··· 1 + config FPGA_KUNIT_TESTS 2 + tristate "KUnit test for the FPGA subsystem" if !KUNIT_ALL_TESTS 3 + depends on FPGA && FPGA_REGION && FPGA_BRIDGE && KUNIT=y 4 + default KUNIT_ALL_TESTS 5 + help 6 + This builds unit tests for the FPGA subsystem 7 + 8 + For more information on KUnit and unit tests in general, 9 + please refer to the KUnit documentation in Documentation/dev-tools/kunit/. 10 + 11 + If unsure, say N.
+6
drivers/fpga/tests/Makefile
··· 1 + # SPDX-License-Identifier: GPL-2.0 2 + # 3 + # Makefile for KUnit test suites for the FPGA subsystem 4 + # 5 + 6 + obj-$(CONFIG_FPGA_KUNIT_TESTS) += fpga-mgr-test.o fpga-bridge-test.o fpga-region-test.o