Bladeren bron

selftests: move watchdog tests from Documentation/watchdog

Remove watchdog-test from Makefile to move the test to selftests.

Add Makefile and .gitignore for watchdog-test. watchdog-test will
not be run as part of selftests suite and will not be included in
install targets.  It 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 jaren geleden
bovenliggende
commit
02a35aad8a

+ 0 - 1
Documentation/watchdog/src/.gitignore

@@ -1,2 +1 @@
 watchdog-simple
-watchdog-test

+ 1 - 1
Documentation/watchdog/src/Makefile

@@ -1,5 +1,5 @@
 # List of programs to build
-hostprogs-y := watchdog-simple watchdog-test
+hostprogs-y := watchdog-simple
 
 # Tell kbuild to always build the programs
 always := $(hostprogs-y)

+ 1 - 0
tools/testing/selftests/watchdog/.gitignore

@@ -0,0 +1 @@
+watchdog-test

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

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

+ 0 - 0
Documentation/watchdog/src/watchdog-test.c → tools/testing/selftests/watchdog/watchdog-test.c