diff options
Diffstat (limited to 'kernel/tools/testing/selftests/mount/Makefile')
-rw-r--r-- | kernel/tools/testing/selftests/mount/Makefile | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/kernel/tools/testing/selftests/mount/Makefile b/kernel/tools/testing/selftests/mount/Makefile new file mode 100644 index 000000000..95580a973 --- /dev/null +++ b/kernel/tools/testing/selftests/mount/Makefile @@ -0,0 +1,16 @@ +# Makefile for mount selftests. +CFLAGS = -Wall \ + -O2 +all: unprivileged-remount-test + +unprivileged-remount-test: unprivileged-remount-test.c + $(CC) $(CFLAGS) unprivileged-remount-test.c -o unprivileged-remount-test + +include ../lib.mk + +TEST_PROGS := unprivileged-remount-test +override RUN_TESTS := if [ -f /proc/self/uid_map ] ; then ./unprivileged-remount-test ; fi +override EMIT_TESTS := echo "$(RUN_TESTS)" + +clean: + rm -f unprivileged-remount-test |