selftests: add EXTRA_CLEAN for clean target
authorbamvor.zhangjian@huawei.com <bamvor.zhangjian@huawei.com>
Tue, 29 Nov 2016 11:55:51 +0000 (19:55 +0800)
committerShuah Khan <shuahkh@osg.samsung.com>
Thu, 5 Jan 2017 20:42:17 +0000 (13:42 -0700)
commit80d443e8876602be2c130f79c4de81e12e2a700d
treedbe443dd36f2b043654ccff605dca385f4b8e70a
parent5a2d4a5763c96a19170f81f2c4bb3cc9515f854a
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>
tools/testing/selftests/exec/Makefile
tools/testing/selftests/ftrace/Makefile
tools/testing/selftests/kcmp/Makefile
tools/testing/selftests/lib.mk
tools/testing/selftests/powerpc/switch_endian/Makefile
tools/testing/selftests/pstore/Makefile
tools/testing/selftests/zram/Makefile