blob: e094f71c6dbc4a24a2cdc7612c9e5511378fee36 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001# SPDX-License-Identifier: GPL-2.0
Eric W. Biedermandb181ce2014-07-29 15:50:44 -07002# Makefile for mount selftests.
Tyler Baker365ce992015-04-01 16:20:17 -07003CFLAGS = -Wall \
4 -O2
Eric W. Biedermandb181ce2014-07-29 15:50:44 -07005
bamvor.zhangjian@huawei.com88baa782016-11-29 19:55:47 +08006TEST_GEN_PROGS := unprivileged-remount-test
7
Michael Ellerman5e29a912015-03-11 15:05:59 +11008include ../lib.mk
Eric W. Biedermandb181ce2014-07-29 15:50:44 -07009
Zhang Zhend0bd7f22015-04-03 09:39:36 +080010override RUN_TESTS := if [ -f /proc/self/uid_map ] ; \
11 then \
12 ./unprivileged-remount-test ; \
13 else \
14 echo "WARN: No /proc/self/uid_map exist, test skipped." ; \
15 fi
Michael Ellerman32dcfba2015-03-11 15:06:00 +110016override EMIT_TESTS := echo "$(RUN_TESTS)"
Eric W. Biedermandb181ce2014-07-29 15:50:44 -070017