summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/mount/Makefile
blob: e8fb15e801722748fad1f2b2d2ac24a56cf82a65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Makefile for mount selftests.
CFLAGS = -Wall \
         -O2

unprivileged-remount-test: unprivileged-remount-test.c
	$(CC) $(CFLAGS) unprivileged-remount-test.c -o unprivileged-remount-test

TEST_GEN_PROGS := unprivileged-remount-test

include ../lib.mk

override RUN_TESTS := if [ -f /proc/self/uid_map ] ; \
		      then	\
				./unprivileged-remount-test ; \
		      else	\
				echo "WARN: No /proc/self/uid_map exist, test skipped." ; \
		      fi
override EMIT_TESTS := echo "$(RUN_TESTS)"