fapolicyd icon indicating copy to clipboard operation
fapolicyd copied to clipboard

fapolicyd testing automation

Open scholarsmate opened this issue 4 years ago • 4 comments

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?

scholarsmate avatar May 08 '20 18:05 scholarsmate

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.

stevegrubb avatar Jun 05 '20 02:06 stevegrubb

A test directory was added where "make check" tests can be added. I think this is the best path forward to detect algorithmic problems.

stevegrubb avatar Jan 04 '21 14:01 stevegrubb

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.

  1. https://github.com/RedHat-SP-Security/tests/tree/master/fapolicyd

sopos avatar Nov 19 '21 11:11 sopos

This https://github.com/linux-application-whitelisting/fapolicyd/pull/245 might cover the testing quite well. We can improve the test set in future.

sopos avatar Jun 20 '23 14:06 sopos