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