2014-07-30 06:50:44 +08:00
|
|
|
# Makefile for mount selftests.
|
2015-04-02 07:20:17 +08:00
|
|
|
CFLAGS = -Wall \
|
|
|
|
-O2
|
2014-07-30 06:50:44 +08:00
|
|
|
all: unprivileged-remount-test
|
|
|
|
|
|
|
|
unprivileged-remount-test: unprivileged-remount-test.c
|
2015-04-02 07:20:17 +08:00
|
|
|
$(CC) $(CFLAGS) unprivileged-remount-test.c -o unprivileged-remount-test
|
2014-07-30 06:50:44 +08:00
|
|
|
|
2015-03-11 12:05:59 +08:00
|
|
|
include ../lib.mk
|
2014-07-30 06:50:44 +08:00
|
|
|
|
2015-03-11 12:06:00 +08:00
|
|
|
TEST_PROGS := unprivileged-remount-test
|
2015-04-03 09:39:36 +08:00
|
|
|
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
|
2015-03-11 12:06:00 +08:00
|
|
|
override EMIT_TESTS := echo "$(RUN_TESTS)"
|
2014-07-30 06:50:44 +08:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f unprivileged-remount-test
|