forked from Minki/linux
7d758af257
There are difference rules for compiling c source file in different testcases. In order to enable KBUILD_OUTPUT support in later patch, this patch introduce the default rules in "tools/testing/selftest/lib.mk" and remove the existing rules in each testcase. Acked-by: Michael Ellerman <mpe@ellerman.id.au> Signed-off-by: Bamvor Jian Zhang <bamvor.zhangjian@linaro.org> Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
17 lines
367 B
Makefile
17 lines
367 B
Makefile
# Makefile for mount selftests.
|
|
CFLAGS = -Wall \
|
|
-O2
|
|
|
|
TEST_GEN_PROGS := unprivileged-remount-test
|
|
|
|
include ../lib.mk
|
|
|
|
override RUN_TESTS := if [ -f /proc/self/uid_map ] ; \
|
|
then \
|
|
./unprivileged-remount-test ; \
|
|
else \
|
|
echo "WARN: No /proc/self/uid_map exist, test skipped." ; \
|
|
fi
|
|
override EMIT_TESTS := echo "$(RUN_TESTS)"
|
|
|