falco/unit_tests
Mark Stemm ab0133d1dd Add unit tests for enabling/disabling rules
Add unit tests for enabling/disabling rules, covering:

 - matching names by substring
 - using "" to match all rules
 - matching names exactly
 - using ruleset ids in addition to ruleset names

Signed-off-by: Mark Stemm <mark.stemm@gmail.com>
2023-12-18 15:58:04 +01:00
..
engine Add unit tests for enabling/disabling rules 2023-12-18 15:58:04 +01:00
falco chore(unit_tests): added more tests for yaml env vars expansion. 2023-12-14 12:44:47 +01:00
CMakeLists.txt tests: add a basic test to check config precedence 2023-11-27 15:01:00 +01:00
falco_test_var.h.in fix: take into consideration that load_yaml is called more than once 2023-11-27 15:01:00 +01:00
README.md fix after rebase 2023-02-10 11:41:24 +01:00

Falco unit tests

Intro

Under unit_tests/engine and unit_tests/falco directories, we have different test suites that could be a single file or an entire directory according to the number and the complexity of tests.

Build and Run

cmake -DMINIMAL_BUILD=On -DBUILD_BPF=Off -DBUILD_DRIVER=Off -DBUILD_FALCO_UNIT_TESTS=On ..
make falco_unit_tests
sudo ./unit_tests/falco_unit_tests