Commit e19bde22 authored by Manivannan Sadhasivam's avatar Manivannan Sadhasivam Committed by Bjorn Helgaas
Browse files

selftests: Move PCI Endpoint tests from tools/pci to Kselftests

This just moves the existing tests under tools/pci to
tools/testing/selftests/pci_endpoint and adjusts the paths in Makefile
accordingly. Migration to Kselftest framework will be done in subsequent
commits.

Link: https://lore.kernel.org/r/20250116171650.33585-4-manivannan.sadhasivam@linaro.org


Signed-off-by: default avatarManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
Tested-by: default avatarNiklas Cassel <cassel@kernel.org>
Reviewed-by: default avatarNiklas Cassel <cassel@kernel.org>
parent f26d37ee
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -123,16 +123,17 @@ above::
Using Endpoint Test function Device
-----------------------------------

pcitest.sh added in tools/pci/ can be used to run all the default PCI endpoint
tests. To compile this tool the following commands should be used::
pcitest.sh added in tools/testing/selftests/pci_endpoint can be used to run all
the default PCI endpoint tests. To compile this tool the following commands
should be used::

	# cd <kernel-dir>
	# make -C tools/pci
	# make -C tools/testing/selftests/pci_endpoint

or if you desire to compile and install in your system::

	# cd <kernel-dir>
	# make -C tools/pci install
	# make -C tools/testing/selftests/pci_endpoint install

The tool and script will be located in <rootfs>/usr/bin/

+1 −1
Original line number Diff line number Diff line
@@ -18003,7 +18003,7 @@ F: Documentation/PCI/endpoint/*
F:	Documentation/misc-devices/pci-endpoint-test.rst
F:	drivers/misc/pci_endpoint_test.c
F:	drivers/pci/endpoint/
F:	tools/pci/
F:	tools/testing/selftests/pci_endpoint/
PCI ENHANCED ERROR HANDLING (EEH) FOR POWERPC
M:	Mahesh J Salgaonkar <mahesh@linux.ibm.com>
+3 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: GPL-2.0-only
*.o
pcitest
+5 −5
Original line number Diff line number Diff line
# SPDX-License-Identifier: GPL-2.0
include ../scripts/Makefile.include
include ../../../scripts/Makefile.include

bindir ?= /usr/bin

ifeq ($(srctree),)
srctree := $(patsubst %/,%,$(dir $(CURDIR)))
srctree := $(patsubst %/,%,$(dir $(srctree)))
srctree := $(patsubst %/tools/testing/selftests/,%,$(dir $(CURDIR)))
endif

# Do not use make's built-in rules
@@ -27,10 +26,11 @@ include $(srctree)/tools/build/Makefile.include
#
# We need the following to be outside of kernel tree
#
$(OUTPUT)include/linux/: ../../include/uapi/linux/
$(OUTPUT)include/linux/: ../../../../include/uapi/linux/
	mkdir -p $(OUTPUT)include/linux/ 2>&1 || true
	ln -sf $(CURDIR)/../../include/uapi/linux/pcitest.h $@
	ln -sf $(CURDIR)/../../../../include/uapi/linux/pcitest.h $@

$(info ${CURDIR})
prepare: $(OUTPUT)include/linux/

PCITEST_IN := $(OUTPUT)pcitest-in.o
Loading