Add minimal travis support.

Add minimal travis.yml file that builds and packages falco. No actual
tests yet.
This commit is contained in:
Mark Stemm
2016-05-11 10:44:32 -07:00
parent b5055e34af
commit c9d2550ecd
2 changed files with 64 additions and 0 deletions

26
test/falco_trace_regression.sh Executable file
View File

@@ -0,0 +1,26 @@
#!/bin/bash
set -eu
SCRIPT=$(readlink -f $0)
BASEDIR=$(dirname $SCRIPT)
FALCO=$1
# For now, simply ensure that falco can run without errors.
FALCO_CMDLINE="$FALCO -c $BASEDIR/../falco.yaml -r $BASEDIR/../rules/falco_rules.yaml"
echo "Running falco: $FALCO_CMDLINE"
$FALCO_CMDLINE > $BASEDIR/falco.log 2>&1 &
FALCO_PID=$!
echo "Falco started, pid $FALCO_PID"
sleep 10
if kill -0 $FALCO_PID > /dev/null 2>&1; then
echo "Falco ran successfully"
kill $FALCO_PID
ret=0
else
echo "Falco did not start successfully. Full program output:"
cat $BASEDIR/falco.log
ret=1
fi
exit $ret