Fwupd: Please also install the unit tests

Created on 6 Apr 2020  路  6Comments  路  Source: fwupd/fwupd

fwupd has two test suites: a set of unit tests (as ran by meson test) and an integration test (which is installed).

In some situations, such as in cross-compilation, it's useful to be able to also install the unit tests so that they can be executed on the target. Please consider also installing the unit tests.

enhancement help wanted

All 6 comments

Several projects have started to do this, I don't think there is any problem with it. If you've got some cycles, definitely happy to review a PR.

I think this should be optional, adding a meson option should be pretty easy.

Where would we install the local self tests? Would they be called by a new installed-test as well?

For libjcat we did:
/usr/libexec/installed-tests/libjcat/

should be fixed in master now

Something to note, as part of this change many binaries were removed from tree and won't be installed. You can fetch them at runtime using contrib/ci/get_test_firmware.sh

Was this page helpful?
0 / 5 - 0 ratings