Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame^] | 1 | # SPDX-License-Identifier: GPL-2.0 |
Eric W. Biederman | db181ce | 2014-07-29 15:50:44 -0700 | [diff] [blame] | 2 | # Makefile for mount selftests. |
Tyler Baker | 365ce99 | 2015-04-01 16:20:17 -0700 | [diff] [blame] | 3 | CFLAGS = -Wall \ |
| 4 | -O2 |
Eric W. Biederman | db181ce | 2014-07-29 15:50:44 -0700 | [diff] [blame] | 5 | |
bamvor.zhangjian@huawei.com | 88baa78 | 2016-11-29 19:55:47 +0800 | [diff] [blame] | 6 | TEST_GEN_PROGS := unprivileged-remount-test |
| 7 | |
Michael Ellerman | 5e29a91 | 2015-03-11 15:05:59 +1100 | [diff] [blame] | 8 | include ../lib.mk |
Eric W. Biederman | db181ce | 2014-07-29 15:50:44 -0700 | [diff] [blame] | 9 | |
Zhang Zhen | d0bd7f2 | 2015-04-03 09:39:36 +0800 | [diff] [blame] | 10 | override 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 Ellerman | 32dcfba | 2015-03-11 15:06:00 +1100 | [diff] [blame] | 16 | override EMIT_TESTS := echo "$(RUN_TESTS)" |
Eric W. Biederman | db181ce | 2014-07-29 15:50:44 -0700 | [diff] [blame] | 17 | |