Skip to content

Commit

Permalink
Add test configs
Browse files Browse the repository at this point in the history
  • Loading branch information
klauspost committed Jan 7, 2024
1 parent 7801662 commit dcd1780
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ jobs:
run: go vet ./...

- name: Test
run: go test -timeout=15m ./...
run: go test -timeout=15m

- name: Test Noasm
run: go test -tags=noasm -short&&go test -short -no-avx512&&go test -short -no-avx512 -no-avx2&&go test -no-avx512 -no-avx2 -no-ssse3 -short
run: go test -tags=noasm -short&&go test -short -no-avx512&&go test -short -no-avx512 -no-avx2-gfni&&go test -short -no-avx512 -no-avx2&&go test -no-avx512 -no-avx2 -no-ssse3 -short

- name: Test Nopshufb
run: go test -tags=nopshufb -short&&go test -tags=nopshufb -short -no-avx512 -no-gfni&&go test -tags=nopshufb -short&&go test -tags=nopshufb -no-avx512 -no-avx2 -no-ssse3 -no-sse2 -short
run: go test -tags=nopshufb -short&&go test -tags=nopshufb -short -no-avx512&&go test -tags=nopshufb -short -no-avx512 -no-avx2-gfni&&go test -tags=nopshufb -no-avx512 -no-avx2 -no-ssse3 -no-sse2 -short

- name: Test Race
env:
Expand Down
3 changes: 3 additions & 0 deletions options.go
Original file line number Diff line number Diff line change
Expand Up @@ -315,5 +315,8 @@ func (o *options) cpuOptions() string {
if o.useAvx2GNFI {
res = append(res, "AVX2+GFNI")
}
if len(res) == 0 {
return "pure Go"
}
return strings.Join(res, ",")
}

0 comments on commit dcd1780

Please sign in to comment.