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