]> code.ossystems Code Review - openembedded-core.git/commit
coreutils: add ptest
authorTrevor Gamblin <trevor.gamblin@windriver.com>
Wed, 11 Mar 2020 11:32:34 +0000 (04:32 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 11 Mar 2020 11:44:12 +0000 (11:44 +0000)
commit9a703f8e05d9e7e609d0e04278be290d4051ec31
treea7f2f93d753d97b4f8cb1a359f3169f20e0d1788
parent20ad7705d1060300d53304c259b1f07d04b86eba
coreutils: add ptest

coreutils has a large number of tests, including some added by the
Makefile flags RUN_EXPENSIVE_TESTS and RUN_VERY_EXPENSIVE_TESTS that
significantly increase runtime (and that have been disabled). Note
that the coreutils ptest directory is given blanket permissions at
runtime with chmod -R 777 to ensure that the user created for the
tests will be able to run the test scripts and create the necessary
files in the process.

There is still room to improve the results of this ptest without
the aforementioned additions. Of the tests marked SKIP, there are
30 tests that are currently counted as SKIP because they require
sudo permissions, and another 21 that require membership in
multiple user groups. It is important to know that coreutils has
tests for both root and non-root users. Testing showed that 42
tests are skipped when running as root versus 30 when running as a
non-root user, so the decision was made to run the suite as the
latter. Additionally, gdb, valgrind, and strace could be included
in the RDEPENDS list to increase pass rate, but their total
contribution is 13 tests, so they were omitted to reduce image size.

Finally, note that at least one ptest (misc/head-write-error.sh) is
prone to ERROR on builds of core-image-minimal if extra space is
not provided with IMAGE_ROOTFS_EXTRA_SPACE.

Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/coreutils/coreutils/run-ptest [new file with mode: 0755]
meta/recipes-core/coreutils/coreutils_8.31.bb