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.
13 if [ $
(basename $install_loc) != "selftests" ]; then
14 echo "$0: Please run it in selftests directory ..."
17 if [ "$#" -eq 0 ]; then
18 echo "$0: Installing in default location - $install_loc ..."
19 elif [ ! -d "$1" ]; then
20 echo "$0: $1 doesn't exist!!"
24 echo "$0: Installing in specified location - $install_loc ..."
27 install_dir
=$install_loc/kselftest
29 # Create install directory
32 INSTALL_PATH
=$install_dir make install