mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-29 22:02:02 +00:00
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>
This commit is contained in:
parent
64a5f972c9
commit
3969f6458f
5 changed files with 27 additions and 0 deletions
|
@ -276,4 +276,6 @@ config FPGA_MGR_LATTICE_SYSCONFIG_SPI
|
||||||
FPGA manager driver support for Lattice FPGAs programming over slave
|
FPGA manager driver support for Lattice FPGAs programming over slave
|
||||||
SPI sysCONFIG interface.
|
SPI sysCONFIG interface.
|
||||||
|
|
||||||
|
source "drivers/fpga/tests/Kconfig"
|
||||||
|
|
||||||
endif # FPGA
|
endif # FPGA
|
||||||
|
|
|
@ -55,3 +55,6 @@ obj-$(CONFIG_FPGA_DFL_NIOS_INTEL_PAC_N3000) += dfl-n3000-nios.o
|
||||||
|
|
||||||
# Drivers for FPGAs which implement DFL
|
# Drivers for FPGAs which implement DFL
|
||||||
obj-$(CONFIG_FPGA_DFL_PCI) += dfl-pci.o
|
obj-$(CONFIG_FPGA_DFL_PCI) += dfl-pci.o
|
||||||
|
|
||||||
|
# KUnit tests
|
||||||
|
obj-$(CONFIG_FPGA_KUNIT_TESTS) += tests/
|
||||||
|
|
5
drivers/fpga/tests/.kunitconfig
Normal file
5
drivers/fpga/tests/.kunitconfig
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
CONFIG_KUNIT=y
|
||||||
|
CONFIG_FPGA=y
|
||||||
|
CONFIG_FPGA_REGION=y
|
||||||
|
CONFIG_FPGA_BRIDGE=y
|
||||||
|
CONFIG_FPGA_KUNIT_TESTS=y
|
11
drivers/fpga/tests/Kconfig
Normal file
11
drivers/fpga/tests/Kconfig
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
config FPGA_KUNIT_TESTS
|
||||||
|
tristate "KUnit test for the FPGA subsystem" if !KUNIT_ALL_TESTS
|
||||||
|
depends on FPGA && FPGA_REGION && FPGA_BRIDGE && KUNIT=y
|
||||||
|
default KUNIT_ALL_TESTS
|
||||||
|
help
|
||||||
|
This builds unit tests for the FPGA subsystem
|
||||||
|
|
||||||
|
For more information on KUnit and unit tests in general,
|
||||||
|
please refer to the KUnit documentation in Documentation/dev-tools/kunit/.
|
||||||
|
|
||||||
|
If unsure, say N.
|
6
drivers/fpga/tests/Makefile
Normal file
6
drivers/fpga/tests/Makefile
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
# SPDX-License-Identifier: GPL-2.0
|
||||||
|
#
|
||||||
|
# Makefile for KUnit test suites for the FPGA subsystem
|
||||||
|
#
|
||||||
|
|
||||||
|
obj-$(CONFIG_FPGA_KUNIT_TESTS) += fpga-mgr-test.o fpga-bridge-test.o fpga-region-test.o
|
Loading…
Reference in a new issue