Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,9 @@ jobs:
- name: Run Unit Tests
run: |
make -j4 gotest-with-junit
- name: Run Unit Tests with GODEBUG=fips140=only
run: |
make -j4 gotest-fips140-only
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: test-results-${{ runner.os }}-${{ matrix.runner }}-${{ matrix.go-version }}
Expand Down
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ gomoddownload:
gotest:
@$(MAKE) for-all-target TARGET="test"

.PHONY: gotest-fips140-only
gotest-fips140-only:
@$(MAKE) for-all-target TARGET="test-fips140-only"

.PHONY: gobenchmark
gobenchmark:
@$(MAKE) for-all-target TARGET="benchmark"
Expand Down
5 changes: 5 additions & 0 deletions Makefile.Common
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ JUNIT_OUT_DIR ?= $(TOOLS_MOD_DIR)/testresults
test:
$(GO_TOOL) gotestsum --packages="./..." -- $(GOTEST_OPT)

.PHONY: test-fips140-only
test-fips140-only:
GODEBUG=tlsmlkem=0 $(GOCMD) mod download
GODEBUG=fips140=only $(GO_TOOL) gotestsum --packages="./..." -- $(GOTEST_OPT) -tags=requirefips

.PHONY: test-with-cover
test-with-cover:
mkdir -p $(PWD)/coverage/unit
Expand Down
Loading