fapolicyd
fapolicyd copied to clipboard
fapolicyd testing automation
This is a great project, and I was wondering if there is an automated testing system (or one planned) for running test cases against fapolicyd?
I waqs hoping someone else would chime in. I would say tha the only time that things are indepently testable is during "make check". This is because testing the final daemon requires running as root. No chance. The library is built statically, so it can only be checked during build. And all major functionality is in the library.
A test directory was added where "make check" tests can be added. I think this is the best path forward to detect algorithmic problems.
There are publicly available tests in [1]. It should be quite easy to enable it via packit. I plan to created a PR for that but I did not get to it yet.
- https://github.com/RedHat-SP-Security/tests/tree/master/fapolicyd
This https://github.com/linux-application-whitelisting/fapolicyd/pull/245 might cover the testing quite well. We can improve the test set in future.