[Git][cip-project/cip-testing/imported-kernel-tests][master] 2 commits: Get install correct


Agustin Benito Bethencourt
 

Agustin Benito Bethencourt pushed to branch master at cip-project / cip-testing / imported-kernel-tests

Commits:

  • bd25c959
    by Robert Marshall at 2017-07-25T14:02:02+01:00
    Get install correct
    
  • 95e5dd3d
    by Robert Marshall at 2017-07-25T14:38:13+01:00
    Initial commit
    

2 changed files:

Changes:

  • kselftest.yaml
    ... ... @@ -28,17 +28,17 @@ params:
    28 28
     
    
    29 29
     # Skip install deps and steps on minimal rootfs from LAVA test
    
    30 30
     # Example:
    
    31
    -# "skip_install": "all"
    
    32
    -install:
    
    33
    -    deps:
    
    34
    -        - libpopt-dev
    
    35
    -        - libcap-dev
    
    36
    -        - binutils-dev
    
    37
    -        - perl
    
    38
    -        - wget
    
    39
    -        - tar
    
    40
    -    steps:
    
    41
    -        - './'
    
    31
    +skip_install: all
    
    32
    +# install:
    
    33
    +#     deps:
    
    34
    +#         - libpopt-dev
    
    35
    +#         - libcap-dev
    
    36
    +#         - binutils-dev
    
    37
    +#         - perl
    
    38
    +#         - wget
    
    39
    +#         - tar
    
    40
    +#     steps:
    
    41
    +#         - './'
    
    42 42
     
    
    43 43
     run:
    
    44 44
         steps:
    

  • selftests/kselftest_install.sh
    1
    +#!/bin/bash
    
    2
    +#
    
    3
    +# Kselftest Install
    
    4
    +# Install kselftest tests
    
    5
    +# Author: Shuah Khan <shuahkh@...>
    
    6
    +# Copyright (C) 2015 Samsung Electronics Co., Ltd.
    
    7
    +
    
    8
    +# This software may be freely redistributed under the terms of the GNU
    
    9
    +# General Public License (GPLv2).
    
    10
    +
    
    11
    +install_loc=`pwd`
    
    12
    +
    
    13
    +main()
    
    14
    +{
    
    15
    +	if [ $(basename $install_loc) !=  "selftests" ]; then
    
    16
    +		echo "$0: Please run it in selftests directory ..."
    
    17
    +		exit 1;
    
    18
    +	fi
    
    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 ..."
    
    27
    +	fi
    
    28
    +
    
    29
    +	install_dir=$install_loc/kselftest
    
    30
    +
    
    31
    +# Create install directory
    
    32
    +	mkdir -p $install_dir
    
    33
    +# # Build tests
    
    34
    +# 	INSTALL_PATH=$install_dir make install
    
    35
    +}
    
    36
    +
    
    37
    +main "$@"

  • Join cip-dev@lists.cip-project.org to automatically receive all group messages.