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