Skip to content

Commit

Permalink
selftests: move prctl tests from Documentation/prctl
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Shuah Khan committed Sep 20, 2016
1 parent 10924bc commit 92dd8dd
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Documentation/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
subdir-y := accounting auxdisplay blackfin \
ia64 laptops mic misc-devices \
networking pcmcia prctl ptp timers vDSO watchdog
networking pcmcia ptp timers vDSO watchdog
10 changes: 0 additions & 10 deletions Documentation/prctl/Makefile

This file was deleted.

File renamed without changes.
15 changes: 15 additions & 0 deletions tools/testing/selftests/prctl/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
ifndef CROSS_COMPILE
uname_M := $(shell uname -m 2>/dev/null || echo not)
ARCH ?= $(shell echo $(uname_M) | sed -e s/i.86/x86/ -e s/x86_64/x86/)

ifeq ($(ARCH),x86)
TEST_PROGS := disable-tsc-ctxt-sw-stress-test disable-tsc-on-off-stress-test \
disable-tsc-test
all: $(TEST_PROGS)

include ../lib.mk

clean:
rm -fr $(TEST_PROGS)
endif
endif
File renamed without changes.

0 comments on commit 92dd8dd

Please sign in to comment.