summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/soft-dirty/Makefile
diff options
context:
space:
mode:
authorPavel Emelyanov <xemul@parallels.com>2013-04-30 15:27:06 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2013-04-30 17:04:01 -0700
commit58c7be84fec87b3a96964d65129b36c0e8c59a19 (patch)
tree8a4c9fe5a1b23bd481542e371410b62ae3393e4e /tools/testing/selftests/soft-dirty/Makefile
parent835f2f51608fd80e1aef5a8955dabcc36ea528a4 (diff)
downloadop-kernel-dev-58c7be84fec87b3a96964d65129b36c0e8c59a19.zip
op-kernel-dev-58c7be84fec87b3a96964d65129b36c0e8c59a19.tar.gz
selftest: add simple test for soft-dirty bit
It creates a mapping of 3 pages and checks that reads, writes and clear-refs result in present and soft-dirt bits reported from pagemap2 set as expected. [akpm@linux-foundation.org: alphasort the Makefile TARGETS to reduce rejects] Signed-off-by: Pavel Emelyanov <xemul@parallels.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'tools/testing/selftests/soft-dirty/Makefile')
-rw-r--r--tools/testing/selftests/soft-dirty/Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/testing/selftests/soft-dirty/Makefile b/tools/testing/selftests/soft-dirty/Makefile
new file mode 100644
index 0000000..a9cdc82
--- /dev/null
+++ b/tools/testing/selftests/soft-dirty/Makefile
@@ -0,0 +1,10 @@
+CFLAGS += -iquote../../../../include/uapi -Wall
+soft-dirty: soft-dirty.c
+
+all: soft-dirty
+
+clean:
+ rm -f soft-dirty
+
+run_tests: all
+ @./soft-dirty || echo "soft-dirty selftests: [FAIL]"
OpenPOWER on IntegriCloud