mirror of
https://github.com/falcosecurity/falco.git
synced 2025-09-26 12:48:51 +00:00
fix(tests): make run_regression_tests.sh work locally
Signed-off-by: Luca Guerra <luca@guerra.sh>
This commit is contained in:
@@ -17,13 +17,7 @@ This step assumes you already built Falco.
|
|||||||
|
|
||||||
Note that the tests are intended to be run against a [release build](https://falco.org/docs/getting-started/source/#specify-the-build-type) of Falco, at the moment.
|
Note that the tests are intended to be run against a [release build](https://falco.org/docs/getting-started/source/#specify-the-build-type) of Falco, at the moment.
|
||||||
|
|
||||||
Also, it assumes you prepared [falco_traces](#falco_traces) (see the section below) and you already run the following command from the build directory:
|
Also, it assumes you prepared [falco_traces](#falco_traces) (see the section below).
|
||||||
|
|
||||||
```console
|
|
||||||
make test-trace-files
|
|
||||||
```
|
|
||||||
|
|
||||||
It prepares the fixtures (`json` and `scap` files) needed by the integration tests.
|
|
||||||
|
|
||||||
**Requirements**
|
**Requirements**
|
||||||
|
|
||||||
|
@@ -6,7 +6,7 @@ idna==2.9
|
|||||||
pathtools==0.1.2
|
pathtools==0.1.2
|
||||||
pbr==5.4.5
|
pbr==5.4.5
|
||||||
PyYAML==5.4
|
PyYAML==5.4
|
||||||
requests==2.23.0
|
requests==2.26.0
|
||||||
six==1.14.0
|
six==1.14.0
|
||||||
stevedore==1.32.0
|
stevedore==1.32.0
|
||||||
urllib3==1.26.5
|
urllib3==1.26.5
|
||||||
|
@@ -118,7 +118,9 @@ function run_tests() {
|
|||||||
XUNIT_FILE_NAME="${XUNIT_DIR}/$(basename "${mult}").xml"
|
XUNIT_FILE_NAME="${XUNIT_DIR}/$(basename "${mult}").xml"
|
||||||
CMD="avocado run --xunit ${XUNIT_FILE_NAME} --mux-yaml $mult --job-results-dir $SCRIPTDIR/job-results -- $SCRIPTDIR/falco_test.py"
|
CMD="avocado run --xunit ${XUNIT_FILE_NAME} --mux-yaml $mult --job-results-dir $SCRIPTDIR/job-results -- $SCRIPTDIR/falco_test.py"
|
||||||
echo "Running $CMD"
|
echo "Running $CMD"
|
||||||
|
pushd $TRACE_DIR > /dev/null
|
||||||
BUILD_DIR=${OPT_BUILD_DIR} $CMD
|
BUILD_DIR=${OPT_BUILD_DIR} $CMD
|
||||||
|
popd > /dev/null
|
||||||
RC=$?
|
RC=$?
|
||||||
TEST_RC=$((TEST_RC+RC))
|
TEST_RC=$((TEST_RC+RC))
|
||||||
if [ $RC -ne 0 ]; then
|
if [ $RC -ne 0 ]; then
|
||||||
|
Reference in New Issue
Block a user