aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/kselftest_install.sh
diff options
context:
space:
mode:
authorShuah Khan <skhan@linuxfoundation.org>2019-09-26 16:40:14 -0600
committerShuah Khan <skhan@linuxfoundation.org>2019-10-01 10:11:08 -0600
commit17eac6c2db8b2cdfe33d40229bdda2acd86b304a (patch)
tree7553fd772a8077cfe83dc51d974699df88e2d3ea /tools/testing/selftests/kselftest_install.sh
parentLinux 5.4-rc1 (diff)
downloadlinux-dev-17eac6c2db8b2cdfe33d40229bdda2acd86b304a.tar.xz
linux-dev-17eac6c2db8b2cdfe33d40229bdda2acd86b304a.zip
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>
Diffstat (limited to 'tools/testing/selftests/kselftest_install.sh')
-rwxr-xr-xtools/testing/selftests/kselftest_install.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/testing/selftests/kselftest_install.sh b/tools/testing/selftests/kselftest_install.sh
index ec304463883c..e2e1911d62d5 100755
--- a/tools/testing/selftests/kselftest_install.sh
+++ b/tools/testing/selftests/kselftest_install.sh
@@ -24,12 +24,12 @@ main()
echo "$0: Installing in specified location - $install_loc ..."
fi
- install_dir=$install_loc/kselftest
+ install_dir=$install_loc/kselftest_install
# Create install directory
mkdir -p $install_dir
# Build tests
- INSTALL_PATH=$install_dir make install
+ KSFT_INSTALL_PATH=$install_dir make install
}
main "$@"