mirror of
https://github.com/falcosecurity/falco.git
synced 2025-09-23 19:07:55 +00:00
Add a basic test to run falco.
Add a basic test that loads the kernel module from the source directory and runs falco. No testing of behavior yet.
This commit is contained in:
@@ -27,8 +27,8 @@ script:
|
|||||||
- cmake .. -DCMAKE_BUILD_TYPE=$BUILD_TYPE
|
- cmake .. -DCMAKE_BUILD_TYPE=$BUILD_TYPE
|
||||||
- make VERBOSE=1
|
- make VERBOSE=1
|
||||||
- make package
|
- make package
|
||||||
# - cd ..
|
- cd ..
|
||||||
# - test/falco_trace_regression.sh build/userspace/falco/falco
|
- sudo test/falco_trace_regression.sh build/userspace/falco/falco
|
||||||
notifications:
|
notifications:
|
||||||
webhooks:
|
webhooks:
|
||||||
urls:
|
urls:
|
||||||
|
@@ -5,6 +5,10 @@ SCRIPT=$(readlink -f $0)
|
|||||||
BASEDIR=$(dirname $SCRIPT)
|
BASEDIR=$(dirname $SCRIPT)
|
||||||
|
|
||||||
FALCO=$1
|
FALCO=$1
|
||||||
|
BUILDDIR=$(dirname $FALCO)
|
||||||
|
|
||||||
|
# Load the built kernel module by hand
|
||||||
|
insmod $BUILDDIR/../../driver/sysdig-probe.ko
|
||||||
|
|
||||||
# For now, simply ensure that falco can run without errors.
|
# For now, simply ensure that falco can run without errors.
|
||||||
FALCO_CMDLINE="$FALCO -c $BASEDIR/../falco.yaml -r $BASEDIR/../rules/falco_rules.yaml"
|
FALCO_CMDLINE="$FALCO -c $BASEDIR/../falco.yaml -r $BASEDIR/../rules/falco_rules.yaml"
|
||||||
|
Reference in New Issue
Block a user