summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>2025-01-16 20:16:49 +0300
committerBjorn Helgaas <bhelgaas@google.com>2025-01-21 23:17:55 +0300
commite19bde2269ca3611156fd0c078a71af0b6956545 (patch)
treee778f35a3a51147b86de87927d838153aa609ba1 /tools
parentf26d37ee9bda938e968d0e11ba1f8f1588b2a135 (diff)
downloadlinux-e19bde2269ca3611156fd0c078a71af0b6956545.tar.xz
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: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Tested-by: Niklas Cassel <cassel@kernel.org> Reviewed-by: Niklas Cassel <cassel@kernel.org>
Diffstat (limited to 'tools')
-rw-r--r--tools/testing/selftests/pci_endpoint/.gitignore3
-rw-r--r--tools/testing/selftests/pci_endpoint/Build (renamed from tools/pci/Build)0
-rw-r--r--tools/testing/selftests/pci_endpoint/Makefile (renamed from tools/pci/Makefile)10
-rw-r--r--tools/testing/selftests/pci_endpoint/pcitest.c (renamed from tools/pci/pcitest.c)0
-rw-r--r--tools/testing/selftests/pci_endpoint/pcitest.sh (renamed from tools/pci/pcitest.sh)0
5 files changed, 8 insertions, 5 deletions
diff --git a/tools/testing/selftests/pci_endpoint/.gitignore b/tools/testing/selftests/pci_endpoint/.gitignore
new file mode 100644
index 000000000000..29ab47c48484
--- /dev/null
+++ b/tools/testing/selftests/pci_endpoint/.gitignore
@@ -0,0 +1,3 @@
+# SPDX-License-Identifier: GPL-2.0-only
+*.o
+pcitest
diff --git a/tools/pci/Build b/tools/testing/selftests/pci_endpoint/Build
index c375aea21790..c375aea21790 100644
--- a/tools/pci/Build
+++ b/tools/testing/selftests/pci_endpoint/Build
diff --git a/tools/pci/Makefile b/tools/testing/selftests/pci_endpoint/Makefile
index 62d41f1a1e2c..3c6fe18e32cc 100644
--- a/tools/pci/Makefile
+++ b/tools/testing/selftests/pci_endpoint/Makefile
@@ -1,11 +1,10 @@
# 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
diff --git a/tools/pci/pcitest.c b/tools/testing/selftests/pci_endpoint/pcitest.c
index b96cc118839b..b96cc118839b 100644
--- a/tools/pci/pcitest.c
+++ b/tools/testing/selftests/pci_endpoint/pcitest.c
diff --git a/tools/pci/pcitest.sh b/tools/testing/selftests/pci_endpoint/pcitest.sh
index 770f4d6df34b..770f4d6df34b 100644
--- a/tools/pci/pcitest.sh
+++ b/tools/testing/selftests/pci_endpoint/pcitest.sh