]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: Add kselftest-all and kselftest-install targets
authorShuah Khan <skhan@linuxfoundation.org>
Thu, 26 Sep 2019 22:40:14 +0000 (16:40 -0600)
committerShuah Khan <skhan@linuxfoundation.org>
Tue, 1 Oct 2019 16:11:08 +0000 (10:11 -0600)
commitf1f56258c0fe0deeb15ae3601e5ba3b4c0149171
tree7553fd772a8077cfe83dc51d974699df88e2d3ea
parentf5c4776cd5b591eea4e9be9f421e34f61b98ebb2
selftests: Add kselftest-all and kselftest-install targets

Add kselftest-all target to build tests from the top level
Makefile. This is to simplify kselftest use-cases for CI and
distributions where build and test systems are different.

Current kselftest target builds and runs tests on a development
system which is a developer use-case.

Add kselftest-install target to install tests from the top level
Makefile. This is to simplify kselftest use-cases for CI and
distributions where build and test systems are different.

This change addresses requests from developers and testers to add
support for installing kselftest from the main Makefile.

In addition, make the install directory the same when install is
run using "make kselftest-install" or by running kselftest_install.sh.
Also fix the INSTALL_PATH variable conflict between main Makefile and
selftests Makefile.

Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Acked-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Makefile
tools/testing/selftests/Makefile
tools/testing/selftests/kselftest_install.sh