From 450c347ef38349aaf512dce62fc035bce16680f2 Mon Sep 17 00:00:00 2001 From: Mark Stemm Date: Tue, 17 May 2016 16:26:05 -0700 Subject: [PATCH] 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. --- .travis.yml | 4 ++-- test/falco_trace_regression.sh | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index a602ce53..d4953371 100644 --- a/.travis.yml +++ b/.travis.yml @@ -27,8 +27,8 @@ script: - cmake .. -DCMAKE_BUILD_TYPE=$BUILD_TYPE - make VERBOSE=1 - make package -# - cd .. -# - test/falco_trace_regression.sh build/userspace/falco/falco + - cd .. + - sudo test/falco_trace_regression.sh build/userspace/falco/falco notifications: webhooks: urls: diff --git a/test/falco_trace_regression.sh b/test/falco_trace_regression.sh index 928c06f3..a4b3498c 100755 --- a/test/falco_trace_regression.sh +++ b/test/falco_trace_regression.sh @@ -5,6 +5,10 @@ SCRIPT=$(readlink -f $0) BASEDIR=$(dirname $SCRIPT) 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. FALCO_CMDLINE="$FALCO -c $BASEDIR/../falco.yaml -r $BASEDIR/../rules/falco_rules.yaml"