Description
The current util-linux package contains a lot of tests. These tests are called during the build process. But the build environment is limited, and many of the tests cannot be ran properly.
Goals
Create an util-linux-testsuite sub-package that makes possible to run it in any environment, independently on the build process. In future, it can be integrated to our OpenQA.
Resources
Looking for hackers with the skills:
Nothing? Add some keywords!
This project is part of:
Hack Week 24
Comments
-
9 days ago by sbrabec | Reply
My goal was an installable util-linux-testsuite that can be run outside the build environment.
In the first attempt I tried to create and upstream-able changes to makefiles that will make the testsuite installable. It fails. Autotools target "check" just does not support installation, and it would mean an important rewrite. And it would also need to rewrite meson rules for the new build system.
Hopefully, the testsuite itself supports easy change of the provided srcdir and builddir. So I needed to properly configure it and cherry pick binaries and other files from the build environment that are needed by the testsuite. So I did a simple mapping:
top_srcdir=$datadir/util-linux
top_builddir=$libdir/util-linux
A new wrapper properly sets the parameters of the testsuite run.
Now I have a prototype of an installable testsuite. Recently, some tests that succeeded in the in-built "make check" still fail. It needs tracking of these tests and installation of additional files. After doing the rest of this work, the package could be installed, added to OpenQA and started there. It will allow us to run tests with the root privileges, and it will also allow us to properly run tests that fail inside the chroot build environment.
Similar Projects
This project is one of its kind!