Skip to content

Commit 92dd8dd

Browse files
author
Shuah Khan
committed
selftests: move prctl tests from Documentation/prctl
Move prctl tests from Documentation/prctl to selftests/prctl. Remove prctl from Makefile to move the test. Update prctl Makefile to work under selftests. prctl 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>
1 parent 10924bc commit 92dd8dd

7 files changed

Lines changed: 16 additions & 11 deletions

File tree

‎Documentation/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
subdir-y := accounting auxdisplay blackfin \
22
ia64 laptops mic misc-devices \
3-
networking pcmcia prctl ptp timers vDSO watchdog
3+
networking pcmcia ptp timers vDSO watchdog

‎Documentation/prctl/Makefile‎

Lines changed: 0 additions & 10 deletions
This file was deleted.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
ifndef CROSS_COMPILE
2+
uname_M := $(shell uname -m 2>/dev/null || echo not)
3+
ARCH ?= $(shell echo $(uname_M) | sed -e s/i.86/x86/ -e s/x86_64/x86/)
4+
5+
ifeq ($(ARCH),x86)
6+
TEST_PROGS := disable-tsc-ctxt-sw-stress-test disable-tsc-on-off-stress-test \
7+
disable-tsc-test
8+
all: $(TEST_PROGS)
9+
10+
include ../lib.mk
11+
12+
clean:
13+
rm -fr $(TEST_PROGS)
14+
endif
15+
endif

Documentation/prctl/disable-tsc-ctxt-sw-stress-test.c renamed to tools/testing/selftests/prctl/disable-tsc-ctxt-sw-stress-test.c

File renamed without changes.

Documentation/prctl/disable-tsc-on-off-stress-test.c renamed to tools/testing/selftests/prctl/disable-tsc-on-off-stress-test.c

File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)