aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/user/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'tools/testing/selftests/user/Makefile')
-rw-r--r--tools/testing/selftests/user/Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/testing/selftests/user/Makefile b/tools/testing/selftests/user/Makefile
new file mode 100644
index 000000000000..396255bd720e
--- /dev/null
+++ b/tools/testing/selftests/user/Makefile
@@ -0,0 +1,13 @@
+# Makefile for user memory selftests
+
+# No binaries, but make sure arg-less "make" doesn't trigger "run_tests"
+all:
+
+run_tests: all
+ @if /sbin/modprobe test_user_copy ; then \
+ rmmod test_user_copy; \
+ echo "user_copy: ok"; \
+ else \
+ echo "user_copy: [FAIL]"; \
+ exit 1; \
+ fi