blob: 9093d7ffe87f158e2f1f72d68e791e23afdcac40 [file] [log] [blame]
Eric W. Biedermandb181ce2014-07-29 15:50:44 -07001# Makefile for mount selftests.
Tyler Baker365ce992015-04-01 16:20:17 -07002CFLAGS = -Wall \
3 -O2
Eric W. Biedermandb181ce2014-07-29 15:50:44 -07004
bamvor.zhangjian@huawei.com88baa782016-11-29 19:55:47 +08005TEST_GEN_PROGS := unprivileged-remount-test
6
Michael Ellerman5e29a912015-03-11 15:05:59 +11007include ../lib.mk
Eric W. Biedermandb181ce2014-07-29 15:50:44 -07008
Zhang Zhend0bd7f22015-04-03 09:39:36 +08009override RUN_TESTS := if [ -f /proc/self/uid_map ] ; \
10 then \
11 ./unprivileged-remount-test ; \
12 else \
13 echo "WARN: No /proc/self/uid_map exist, test skipped." ; \
14 fi
Michael Ellerman32dcfba2015-03-11 15:06:00 +110015override EMIT_TESTS := echo "$(RUN_TESTS)"
Eric W. Biedermandb181ce2014-07-29 15:50:44 -070016