OSDN Git Service

selftests: move ptp tests from Documentation/ptp
authorShuah Khan <shuahkh@osg.samsung.com>
Tue, 13 Sep 2016 17:30:03 +0000 (11:30 -0600)
committerShuah Khan <shuahkh@osg.samsung.com>
Tue, 20 Sep 2016 15:54:38 +0000 (09:54 -0600)
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>
Documentation/Makefile
Documentation/ptp/Makefile [deleted file]
tools/testing/selftests/ptp/.gitignore [moved from Documentation/ptp/.gitignore with 100% similarity]
tools/testing/selftests/ptp/Makefile [new file with mode: 0644]
tools/testing/selftests/ptp/testptp.c [moved from Documentation/ptp/testptp.c with 100% similarity]
tools/testing/selftests/ptp/testptp.mk [moved from Documentation/ptp/testptp.mk with 100% similarity]

index 7a28f6c..8cd6d1a 100644 (file)
@@ -1,3 +1,3 @@
 subdir-y := accounting auxdisplay blackfin \
        ia64 laptops mic misc-devices \
-       networking pcmcia ptp timers vDSO watchdog
+       networking pcmcia timers vDSO watchdog
diff --git a/Documentation/ptp/Makefile b/Documentation/ptp/Makefile
deleted file mode 100644 (file)
index 293d6c0..0000000
+++ /dev/null
@@ -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
diff --git a/tools/testing/selftests/ptp/Makefile b/tools/testing/selftests/ptp/Makefile
new file mode 100644 (file)
index 0000000..83dd42b
--- /dev/null
@@ -0,0 +1,8 @@
+TEST_PROGS := testptp
+LDLIBS += -lrt
+all: $(TEST_PROGS)
+
+include ../lib.mk
+
+clean:
+       rm -fr $(TEST_PROGS)