summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/kcmp
diff options
context:
space:
mode:
authorbamvor.zhangjian@huawei.com <bamvor.zhangjian@huawei.com>2016-11-29 14:55:51 +0300
committerShuah Khan <shuahkh@osg.samsung.com>2017-01-05 23:42:17 +0300
commit80d443e8876602be2c130f79c4de81e12e2a700d (patch)
treedbe443dd36f2b043654ccff605dca385f4b8e70a /tools/testing/selftests/kcmp
parent5a2d4a5763c96a19170f81f2c4bb3cc9515f854a (diff)
downloadlinux-80d443e8876602be2c130f79c4de81e12e2a700d.tar.xz
selftests: add EXTRA_CLEAN for clean target
Some testcases need the clean extra data after running. This patch introduce the "EXTRA_CLEAN" variable to address this requirement. After KBUILD_OUTPUT is enabled in later patch, it will be easy to decide to if we need do the cleanup in the KBUILD_OUTPUT path(if the testcase ran immediately after compiled). Signed-off-by: Bamvor Jian Zhang <bamvor.zhangjian@linaro.org> Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
Diffstat (limited to 'tools/testing/selftests/kcmp')
-rw-r--r--tools/testing/selftests/kcmp/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/testing/selftests/kcmp/Makefile b/tools/testing/selftests/kcmp/Makefile
index 9e8b673d41b1..74a8adda58fb 100644
--- a/tools/testing/selftests/kcmp/Makefile
+++ b/tools/testing/selftests/kcmp/Makefile
@@ -2,7 +2,7 @@ CFLAGS += -I../../../../usr/include/
TEST_GEN_PROGS := kcmp_test
+EXTRA_CLEAN := kcmp-test-file
+
include ../lib.mk
-clean:
- $(RM) $(TEST_GEN_PROGS) kcmp-test-file