Skip to content

Commit

Permalink
wip: test circleci
Browse files Browse the repository at this point in the history
Signed-off-by: Jason Dellaluce <[email protected]>
  • Loading branch information
jasondellaluce committed Mar 9, 2023
1 parent a376af9 commit 1732bda
Showing 1 changed file with 25 additions and 9 deletions.
34 changes: 25 additions & 9 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1732bda

Please sign in to comment.