20 May, 2020

1 commit

  • The gen_kselftest_tar.sh always packages *all* selftests and doesn't
    pass along any variables to `make install` to influence what should be
    built. This can result in an early error on the command line ("Unknown
    tarball format TARGETS=XXX"), or unexpected test failures as the
    tarball contains tests people wanted to skip on purpose.

    Since the makefile already contains all the logic, we can add a target
    for packaging. Keep the default .gz target the script uses, and actually
    extend the supported formats by using tar's autodetection.

    To not break current workflows, keep the gen_kselftest_tar.sh script as
    it is, with an added suggestion to use the makefile target instead.

    Signed-off-by: Veronika Kabatova
    Reviewed-by: Stefano Brivio
    Signed-off-by: Shuah Khan

    Veronika Kabatova
     

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
     

13 Jan, 2018

1 commit


24 Mar, 2015

1 commit

  • gen_kselftest_tar.sh tool generates kselftest tar archive. This tool
    supports uncompressed tar, gz, bz, and xz compression formats and the
    default compression format is gzip. This tool runs kselftest install
    tool as its back-end.

    Usage:
    cd tools/testing/selftests
    ./gen_kselftest_tar [ tar | targz | tarbz2 | tarxz ]

    Signed-off-by: Shuah Khan

    Shuah Khan