Building `dracut-util` requires the source code to be present and
prevents running the test against the installed system. Check that
`dracut-util` and rely on the test environment to build `dracut-util`
beforehand.
TEST_DESCRIPTION="dracut getarg command"
test_check() {
- return 0
+ if ! [[ -x "$PKGLIBDIR/dracut-util" ]]; then
+ echo "Test needs dracut-util... Skipping"
+ return 1
+ fi
}
test_setup() {
- make -C "$basedir" dracut-util
ln -sfnr "$PKGLIBDIR"/dracut-util "$TESTDIR"/dracut-getarg
ln -sfnr "$PKGLIBDIR"/dracut-util "$TESTDIR"/dracut-getargs
ln -sfnr "$PKGLIBDIR"/modules.d/99base/dracut-lib.sh "$TESTDIR"/dracut-lib.sh