Makefile (e5451c8f8330e03ad3cfa16048b4daf961af434f) | Makefile (88baa78d1f318e57c7cccbfe55d485befd1ce696) |
---|---|
1# Makefile for mount selftests. 2CFLAGS = -Wall \ 3 -O2 | 1# Makefile for mount selftests. 2CFLAGS = -Wall \ 3 -O2 |
4all: unprivileged-remount-test | |
5 6unprivileged-remount-test: unprivileged-remount-test.c 7 $(CC) $(CFLAGS) unprivileged-remount-test.c -o unprivileged-remount-test 8 | 4 5unprivileged-remount-test: unprivileged-remount-test.c 6 $(CC) $(CFLAGS) unprivileged-remount-test.c -o unprivileged-remount-test 7 |
8TEST_GEN_PROGS := unprivileged-remount-test 9 |
|
9include ../lib.mk 10 | 10include ../lib.mk 11 |
11TEST_PROGS := unprivileged-remount-test | |
12override RUN_TESTS := if [ -f /proc/self/uid_map ] ; \ 13 then \ 14 ./unprivileged-remount-test ; \ 15 else \ 16 echo "WARN: No /proc/self/uid_map exist, test skipped." ; \ 17 fi 18override EMIT_TESTS := echo "$(RUN_TESTS)" 19 | 12override RUN_TESTS := if [ -f /proc/self/uid_map ] ; \ 13 then \ 14 ./unprivileged-remount-test ; \ 15 else \ 16 echo "WARN: No /proc/self/uid_map exist, test skipped." ; \ 17 fi 18override EMIT_TESTS := echo "$(RUN_TESTS)" 19 |
20clean: 21 rm -f unprivileged-remount-test | |