Skip to content

Commit

Permalink
Add FIPS tests to pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
michel-laterman committed Feb 19, 2025
1 parent 3a0e0d3 commit 952398d
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
15 changes: 15 additions & 0 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,19 @@ steps:
artifact_paths:
- "junit-*.xml"

- label: ":linux: Test Linux FIPS"
key: test-lin-fips
command:
- ".buildkite/scripts/test.sh"
env:
FIPS: "true"
agents:
image: golang:${GO_VERSION}
cpu: "8"
memory: "4G"
artifact_paths:
- "junit-*.xml"

- label: ":windows: Test Windows"
key: test-win
command:
Expand Down Expand Up @@ -53,6 +66,8 @@ steps:
depends_on:
- step: "test-lin"
allow_failure: true
- step: "test-lin-fips"
allow_failure: true
- step: "test-win"
allow_failure: true
- step: "test-mac"
Expand Down
7 changes: 6 additions & 1 deletion .buildkite/scripts/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,14 @@ go version
add_bin_path
with_go_junit_report

tags=integration
if [[ "$FIPS" == "true" ]]; then
tags="${tags},requirefips"
fi

echo "--- Go Test"
set +e
go test -tags integration -race -v ./... > tests-report.txt
go test -tags=${tags} -race -v ./... > tests-report.txt
exit_code=$?
set -e

Expand Down

0 comments on commit 952398d

Please sign in to comment.