polkit-org / polkit

polkit (formerly PolicyKit) is a toolkit for defining and handling authorizations. It is used for allowing unprivileged processes to speak to privileged processes.
Other
41 stars 22 forks source link

test: introduce an integration test suite #459

Closed mrc0mmand closed 1 month ago

mrc0mmand commented 1 month ago

Since we already use Packit, let's utilize its second part as well and add a TMT [0] based integration test suite.

This PR add a second job to the existing Packit configuration, which then sends the just built RPMs to Testing Farm [1] that executes all selected tests (which currently means all discovered tests).

To demonstrate the functionality a bit, this PR also adds a simple test case for #439.

[0] https://tmt.readthedocs.io/en/stable/overview.html [1] https://docs.testing-farm.io/Testing%20Farm/0.1/index.html


@jrybar-rh here's the promised PoC how it could look like with a very simple test case for #439 (which fails as expected when 89b7a37b91210ac054645c617d150a0d4906a84e is reverted).