Преглед на файлове

selftests: move ptp tests from Documentation/ptp

Remove ptp from Makefile to move the test to selftests. Update ptp Makefile
to work under selftests. ptp will not be run as part of selftests suite and
will not be included in install targets. They can be built separately for
now.

Acked-by: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
Shuah Khan преди 9 години
родител
ревизия
8dbbf85420

+ 1 - 1
Documentation/Makefile

@@ -1,3 +1,3 @@
 subdir-y := accounting auxdisplay blackfin \
 subdir-y := accounting auxdisplay blackfin \
 	ia64 laptops mic misc-devices \
 	ia64 laptops mic misc-devices \
-	networking pcmcia ptp timers vDSO watchdog
+	networking pcmcia timers vDSO watchdog

+ 0 - 8
Documentation/ptp/Makefile

@@ -1,8 +0,0 @@
-# List of programs to build
-hostprogs-y := testptp
-
-# Tell kbuild to always build the programs
-always := $(hostprogs-y)
-
-HOSTCFLAGS_testptp.o += -I$(objtree)/usr/include
-HOSTLOADLIBES_testptp := -lrt

+ 0 - 0
Documentation/ptp/.gitignore → tools/testing/selftests/ptp/.gitignore


+ 8 - 0
tools/testing/selftests/ptp/Makefile

@@ -0,0 +1,8 @@
+TEST_PROGS := testptp
+LDLIBS += -lrt
+all: $(TEST_PROGS)
+
+include ../lib.mk
+
+clean:
+	rm -fr $(TEST_PROGS)

+ 0 - 0
Documentation/ptp/testptp.c → tools/testing/selftests/ptp/testptp.c


+ 0 - 0
Documentation/ptp/testptp.mk → tools/testing/selftests/ptp/testptp.mk