diff options
| author | bamvor.zhangjian@huawei.com <bamvor.zhangjian@huawei.com> | 2016-11-29 06:55:51 -0500 |
|---|---|---|
| committer | Shuah Khan <shuahkh@osg.samsung.com> | 2017-01-05 15:42:17 -0500 |
| commit | 80d443e8876602be2c130f79c4de81e12e2a700d (patch) | |
| tree | dbe443dd36f2b043654ccff605dca385f4b8e70a /tools/testing/selftests/exec | |
| parent | 5a2d4a5763c96a19170f81f2c4bb3cc9515f854a (diff) | |
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/exec')
| -rw-r--r-- | tools/testing/selftests/exec/Makefile | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/tools/testing/selftests/exec/Makefile b/tools/testing/selftests/exec/Makefile index 9eb1c3e4d339..48d1f863d584 100644 --- a/tools/testing/selftests/exec/Makefile +++ b/tools/testing/selftests/exec/Makefile | |||
| @@ -1,5 +1,14 @@ | |||
| 1 | CFLAGS = -Wall | 1 | CFLAGS = -Wall |
| 2 | 2 | ||
| 3 | TEST_GEN_PROGS := execveat | ||
| 4 | TEST_GEN_FILES := execveat.symlink execveat.denatured script subdir | ||
| 5 | # Makefile is a run-time dependency, since it's accessed by the execveat test | ||
| 6 | TEST_FILES := Makefile | ||
| 7 | |||
| 8 | EXTRA_CLEAN := subdir.moved execveat.moved xxxxx* | ||
| 9 | |||
| 10 | include ../lib.mk | ||
| 11 | |||
| 3 | subdir: | 12 | subdir: |
| 4 | mkdir -p $@ | 13 | mkdir -p $@ |
| 5 | script: | 14 | script: |
| @@ -11,13 +20,3 @@ execveat.symlink: execveat | |||
| 11 | execveat.denatured: execveat | 20 | execveat.denatured: execveat |
| 12 | cp $< $@ | 21 | cp $< $@ |
| 13 | chmod -x $@ | 22 | chmod -x $@ |
| 14 | |||
| 15 | TEST_GEN_PROGS := execveat | ||
| 16 | TEST_GEN_FILES := execveat.symlink execveat.denatured script subdir | ||
| 17 | # Makefile is a run-time dependency, since it's accessed by the execveat test | ||
| 18 | TEST_FILES := Makefile | ||
| 19 | |||
| 20 | include ../lib.mk | ||
| 21 | |||
| 22 | clean: | ||
| 23 | rm -rf $(TEST_GEN_PROGS) $(TEST_GEN_FILES) subdir.moved execveat.moved xxxxx* | ||
