Skip to content

Commit e19bde2

Browse files
Mani-Sadhasivambjorn-helgaas
authored andcommitted
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/[email protected] Signed-off-by: Manivannan Sadhasivam <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]> Tested-by: Niklas Cassel <[email protected]> Reviewed-by: Niklas Cassel <[email protected]>
1 parent f26d37e commit e19bde2

File tree

7 files changed

+14
-10
lines changed

7 files changed

+14
-10
lines changed

Documentation/PCI/endpoint/pci-test-howto.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,16 +123,17 @@ above::
123123
Using Endpoint Test function Device
124124
-----------------------------------
125125

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

129130
# cd <kernel-dir>
130-
# make -C tools/pci
131+
# make -C tools/testing/selftests/pci_endpoint
131132

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

134135
# cd <kernel-dir>
135-
# make -C tools/pci install
136+
# make -C tools/testing/selftests/pci_endpoint install
136137

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

MAINTAINERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18003,7 +18003,7 @@ F: Documentation/PCI/endpoint/*
1800318003
F: Documentation/misc-devices/pci-endpoint-test.rst
1800418004
F: drivers/misc/pci_endpoint_test.c
1800518005
F: drivers/pci/endpoint/
18006-
F: tools/pci/
18006+
F: tools/testing/selftests/pci_endpoint/
1800718007

1800818008
PCI ENHANCED ERROR HANDLING (EEH) FOR POWERPC
1800918009
M: Mahesh J Salgaonkar <[email protected]>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# SPDX-License-Identifier: GPL-2.0-only
2+
*.o
3+
pcitest
File renamed without changes.

tools/pci/Makefile renamed to tools/testing/selftests/pci_endpoint/Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
# SPDX-License-Identifier: GPL-2.0
2-
include ../scripts/Makefile.include
2+
include ../../../scripts/Makefile.include
33

44
bindir ?= /usr/bin
55

66
ifeq ($(srctree),)
7-
srctree := $(patsubst %/,%,$(dir $(CURDIR)))
8-
srctree := $(patsubst %/,%,$(dir $(srctree)))
7+
srctree := $(patsubst %/tools/testing/selftests/,%,$(dir $(CURDIR)))
98
endif
109

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

33+
$(info ${CURDIR})
3434
prepare: $(OUTPUT)include/linux/
3535

3636
PCITEST_IN := $(OUTPUT)pcitest-in.o
File renamed without changes.

0 commit comments

Comments
 (0)