| # SPDX-License-Identifier: GPL-2.0 |
| # Install kselftest tests |
| # Author: Shuah Khan <shuahkh@osg.samsung.com> |
| # Copyright (C) 2015 Samsung Electronics Co., Ltd. |
| install_dir="$base_dir"/kselftest_install |
| # Make sure we're in the selftests top-level directory. |
| if [ $(basename "$base_dir") != "selftests" ]; then |
| echo "$0: Please run it in selftests directory ..." |
| # Only allow installation into an existing location. |
| echo "$0: Installing in default location - $install_dir ..." |
| echo "$0: $1 doesn't exist!!" |
| echo "$0: Installing in specified location - $install_dir ..." |
| KSFT_INSTALL_PATH="$install_dir" make install |