mm: rename alloc_pages_exact_node() to __alloc_pages_node()
[linux/fpc-iii.git] / tools / testing / selftests / kselftest_install.sh
blob1555fbdb08da2ea9ff2c0a6e06f9d5e661e92a90
1 #!/bin/bash
3 # Kselftest Install
4 # Install kselftest tests
5 # Author: Shuah Khan <shuahkh@osg.samsung.com>
6 # Copyright (C) 2015 Samsung Electronics Co., Ltd.
8 # This software may be freely redistributed under the terms of the GNU
9 # General Public License (GPLv2).
11 install_loc=`pwd`
13 main()
15 if [ $(basename $install_loc) != "selftests" ]; then
16 echo "$0: Please run it in selftests directory ..."
17 exit 1;
19 if [ "$#" -eq 0 ]; then
20 echo "$0: Installing in default location - $install_loc ..."
21 elif [ ! -d "$1" ]; then
22 echo "$0: $1 doesn't exist!!"
23 exit 1;
24 else
25 install_loc=$1
26 echo "$0: Installing in specified location - $install_loc ..."
29 install_dir=$install_loc/kselftest
31 # Create install directory
32 mkdir -p $install_dir
33 # Build tests
34 INSTALL_PATH=$install_dir make install
37 main "$@"