selftests: remove duplicated all and clean target
Currently, kselftest use TEST_PROGS, TEST_PROGS_EXTENDED, TEST_FILES to indicate the test program, extended test program and test files. It is easy to understand the purpose of these files. But mix of compiled and uncompiled files lead to duplicated "all" and "clean" targets. In order to remove the duplicated targets, introduce TEST_GEN_PROGS, TEST_GEN_PROGS_EXTENDED, TEST_GEN_FILES to indicate the compiled objects. Also, the later patch will make use of TEST_GEN_XXX to redirect these files to output directory indicated by KBUILD_OUTPUT or O. And add this changes to "Contributing new tests(details)" of Documentation/kselftest.txt. Signed-off-by: Bamvor Jian Zhang <bamvor.zhangjian@linaro.org> Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
This commit is contained in:
committed by
Shuah Khan
parent
7ce7d89f48
commit
88baa78d1f
@@ -1,8 +1,6 @@
|
||||
CFLAGS += -O2
|
||||
LDLIBS = -lrt -lpthread -lpopt
|
||||
TEST_PROGS := mq_open_tests mq_perf_tests
|
||||
|
||||
all: $(TEST_PROGS)
|
||||
TEST_GEN_PROGS := mq_open_tests mq_perf_tests
|
||||
|
||||
include ../lib.mk
|
||||
|
||||
@@ -16,5 +14,3 @@ override define EMIT_TESTS
|
||||
echo "./mq_perf_tests || echo \"selftests: mq_perf_tests [FAIL]\""
|
||||
endef
|
||||
|
||||
clean:
|
||||
rm -f mq_open_tests mq_perf_tests
|
||||
|
||||
Reference in New Issue
Block a user