Makefile 563 字节
Newer Older
1
# Makefile for mount selftests.
2 3
CFLAGS = -Wall \
         -O2
4 5 6
all: unprivileged-remount-test

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

9
include ../lib.mk
10

M
Michael Ellerman 已提交
11
TEST_PROGS := unprivileged-remount-test
12 13 14 15 16 17
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
M
Michael Ellerman 已提交
18
override EMIT_TESTS := echo "$(RUN_TESTS)"
19 20 21

clean:
	rm -f unprivileged-remount-test