mirror of
https://github.com/falcosecurity/falco.git
synced 2025-10-21 19:44:57 +00:00
Co-Authored-By: Leonardo Di Donato <leodidonato@gmail.com> Signed-off-by: Lorenzo Fontana <lo@linux.com>
Falco regression tests
This folder contains the Regression tests suite for Falco.
You can find instructions on how to run this test suite on the Falco website here.
Test suites
Running locally
Using virtualenv
the steps to locally run a specific test suite are the following ones (from this directory):
virtualenv venv
source venv/bin/activate
pip install -r requirements.txt
BUILD_DIR="../build" avocado run --mux-yaml falco_tests.yaml --job-results-dir /tmp/job-results -- falco_test.py
deactivate
The name of the specific test suite to run is falco_tests.yaml
in this case. Change it to run others test suites.
In case you want to only execute a specific test case, use the --mux-filter-only
parameter as follows:
BUILD_DIR="../build" avocado run --mux-yaml falco_tests.yaml --job-results-dir /tmp/job-results --mux-filter-only /run/trace_files/program_output -- falco_test.py
To obtain the path of all the available variants, execute:
avocado variants --mux-yaml falco_test.yaml