mirror of
https://github.com/falcosecurity/falco.git
synced 2025-07-13 14:34:33 +00:00
build: make our integration tests report clear steps for circleCI UI
inspection via collect test data [0] [0] https://circleci.com/docs/2.0/collect-test-data/ Signed-off-by: Lorenzo Fontana <lo@linux.com>
This commit is contained in:
parent
ee5b55c02e
commit
aaf6816821
@ -282,6 +282,8 @@ jobs:
|
|||||||
- run:
|
- run:
|
||||||
name: Execute integration tests
|
name: Execute integration tests
|
||||||
command: /usr/bin/entrypoint test
|
command: /usr/bin/entrypoint test
|
||||||
|
- store_test_results:
|
||||||
|
path: /build/integration-tests-xunit
|
||||||
"tests/integration-static":
|
"tests/integration-static":
|
||||||
docker:
|
docker:
|
||||||
- image: falcosecurity/falco-tester:latest
|
- image: falcosecurity/falco-tester:latest
|
||||||
@ -297,6 +299,8 @@ jobs:
|
|||||||
- run:
|
- run:
|
||||||
name: Execute integration tests
|
name: Execute integration tests
|
||||||
command: /usr/bin/entrypoint test
|
command: /usr/bin/entrypoint test
|
||||||
|
- store_test_results:
|
||||||
|
path: /build-static/integration-tests-xunit
|
||||||
"tests/driver-loader/integration":
|
"tests/driver-loader/integration":
|
||||||
machine:
|
machine:
|
||||||
image: ubuntu-1604:202004-01
|
image: ubuntu-1604:202004-01
|
||||||
|
@ -104,8 +104,11 @@ function run_tests() {
|
|||||||
suites+=($SCRIPTDIR/falco_tests_package.yaml)
|
suites+=($SCRIPTDIR/falco_tests_package.yaml)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
mkdir -p ${OPT_BUILD_DIR}/integration-tests-xunit
|
||||||
|
|
||||||
for mult in "${suites[@]}"; do
|
for mult in "${suites[@]}"; do
|
||||||
CMD="avocado run --mux-yaml $mult --job-results-dir $SCRIPTDIR/job-results -- $SCRIPTDIR/falco_test.py"
|
XUNITFILENAME="${OPT_BUILD_DIR}/$(basename "${mult}").xml"
|
||||||
|
CMD="avocado run --xunit ${XUNITFILENAME} --mux-yaml $mult --job-results-dir $SCRIPTDIR/job-results -- $SCRIPTDIR/falco_test.py"
|
||||||
echo "Running $CMD"
|
echo "Running $CMD"
|
||||||
BUILD_DIR=${OPT_BUILD_DIR} $CMD
|
BUILD_DIR=${OPT_BUILD_DIR} $CMD
|
||||||
RC=$?
|
RC=$?
|
||||||
|
Loading…
Reference in New Issue
Block a user