diff --git a/.circleci/config.yml b/.circleci/config.yml index 897d366e804..367b1fc6658 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -150,20 +150,36 @@ jobs: # Execute integration tests based on the build results coming from the "build-centos7" job "tests-integration": docker: - - image: falcosecurity/falco-tester:latest - environment: - SOURCE_DIR: "/source" - BUILD_DIR: "/build" - BUILD_TYPE: "release" + - image: golang:1.20 steps: - - setup_remote_docker - attach_workspace: at: / - run: - name: Execute integration tests - command: /usr/bin/entrypoint test + name: Run regression tests + command: | + # Update testing submodule + cd /source/falco + git submodule update --init --no-fetch + + # Download go-juinit-report + go install github.com/jstemmer/go-junit-report/v2@latest + + # Install Falco from package + cd /build/release + tar -xvf $(ls falco-*.tar.gz) + cd $(ls falco-*.tar.gz | sed -e 's/\.tar\.gz$//') + cp -r * / + + # Generate test data, run tests, generate report + cd /source/falco/submodules/falcosecurity-testing + go generate ./... + ./build/falco.test -test.timeout=90s -test.v | tee -a ./report.txt 2>&1 || true + ./build/falcoctl.test -test.timeout=90s -test.v | tee -a ./report.txt 2>&1 || true + ./build/k8saudit.test -test.timeout=90s -test.v | tee -a ./report.txt 2>&1 || true + cat ./report.txt | go-junit-report -set-exit-code > report.xml - store_test_results: - path: /build/release/integration-tests-xunit + path: /source/falco/submodules/falcosecurity-testing/report.xml + # Execute integration tests based on the build results coming from the "build-musl" job "tests-integration-static": docker: - image: falcosecurity/falco-tester:latest