08 Nov, 2019

1 commit

  • The default installation location for gen_kselftest_tar.sh was still
    "kselftest/" which collides with the existing directory. Instead, this
    moves the installation target into "kselftest_install/kselftest/" and
    adjusts the tar creation accordingly. This also adjusts indentation and
    logic to be consistent.

    Fixes: 42d46e57ec97 ("selftests: Extract single-test shell logic from lib.mk")
    Signed-off-by: Kees Cook
    Signed-off-by: Shuah Khan

    Kees Cook
     

02 Oct, 2019

1 commit

  • Add kselftest-all target to build tests from the top level
    Makefile. This is to simplify kselftest use-cases for CI and
    distributions where build and test systems are different.

    Current kselftest target builds and runs tests on a development
    system which is a developer use-case.

    Add kselftest-install target to install tests from the top level
    Makefile. This is to simplify kselftest use-cases for CI and
    distributions where build and test systems are different.

    This change addresses requests from developers and testers to add
    support for installing kselftest from the main Makefile.

    In addition, make the install directory the same when install is
    run using "make kselftest-install" or by running kselftest_install.sh.
    Also fix the INSTALL_PATH variable conflict between main Makefile and
    selftests Makefile.

    Signed-off-by: Shuah Khan
    Acked-by: Masahiro Yamada
    Signed-off-by: Shuah Khan

    Shuah Khan
     

13 Jan, 2018

1 commit


24 Mar, 2015

1 commit

  • kselftest_install.sh tool installs selftests in default location
    which is tools/testing/selftests/kselftest or an user specified
    location. This tool invokes back-end selftests install target with
    the install location.

    Usage:
    cd tools/testing/selftests
    ./kselftest_install.sh [ install_dir ]

    Signed-off-by: Shuah Khan

    Shuah Khan