Home | History | Annotate | Download | only in mount
      1 # Makefile for mount selftests.
      2 CFLAGS = -Wall \
      3          -O2
      4 all: unprivileged-remount-test
      5 
      6 unprivileged-remount-test: unprivileged-remount-test.c
      7 	$(CC) $(CFLAGS) unprivileged-remount-test.c -o unprivileged-remount-test
      8 
      9 include ../lib.mk
     10 
     11 TEST_PROGS := unprivileged-remount-test
     12 override 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
     18 override EMIT_TESTS := echo "$(RUN_TESTS)"
     19 
     20 clean:
     21 	rm -f unprivileged-remount-test
     22