Eric W. Biederman | db181ce | 2014-07-29 15:50:44 -0700 | [diff] [blame] | 1 | # Makefile for mount selftests. |
| 2 | |
| 3 | all: unprivileged-remount-test |
| 4 | |
| 5 | unprivileged-remount-test: unprivileged-remount-test.c |
| 6 | gcc -Wall -O2 unprivileged-remount-test.c -o 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 | |
Michael Ellerman | 5e29a91 | 2015-03-11 15:05:59 +1100 | [diff] [blame^] | 10 | override RUN_TESTS := if [ -f /proc/self/uid_map ] ; then ./unprivileged-remount-test ; fi |
Eric W. Biederman | db181ce | 2014-07-29 15:50:44 -0700 | [diff] [blame] | 11 | |
| 12 | clean: |
| 13 | rm -f unprivileged-remount-test |