forked from Minki/linux
d0bd7f2ac7
If /proc/self/uid_map doesn't exist, mount test case exits wthout any warning. Fix it to print a warning that the test is skipped because /proc/self/uid_map doesn't exist. Signed-off-by: Zhang Zhen <zhenzhang.zhang@huawei.com> Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
22 lines
563 B
Makefile
22 lines
563 B
Makefile
# Makefile for mount selftests.
|
|
CFLAGS = -Wall \
|
|
-O2
|
|
all: unprivileged-remount-test
|
|
|
|
unprivileged-remount-test: unprivileged-remount-test.c
|
|
$(CC) $(CFLAGS) unprivileged-remount-test.c -o unprivileged-remount-test
|
|
|
|
include ../lib.mk
|
|
|
|
TEST_PROGS := unprivileged-remount-test
|
|
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)"
|
|
|
|
clean:
|
|
rm -f unprivileged-remount-test
|