xref: /linux/tools/testing/selftests/mount/Makefile (revision 83dcf400be7165af938dbd6b8ce6805c754701db)
1# Makefile for mount selftests.
2CFLAGS = -Wall \
3         -O2
4all: unprivileged-remount-test
5
6unprivileged-remount-test: unprivileged-remount-test.c
7	$(CC) $(CFLAGS) unprivileged-remount-test.c -o unprivileged-remount-test
8
9include ../lib.mk
10
11TEST_PROGS := unprivileged-remount-test
12override RUN_TESTS := if [ -f /proc/self/uid_map ] ; \
13		      then	\
14				./unprivileged-remount-test ; \
15		      else	\
16				echo "WARN: No /proc/self/uid_map exist, test skipped." ; \
17		      fi
18override EMIT_TESTS := echo "$(RUN_TESTS)"
19
20clean:
21	rm -f unprivileged-remount-test
22