mirror of
https://github.com/emmansun/gmsm.git
synced 2025-04-27 04:36:19 +08:00
test s390x sm2 functions first
This commit is contained in:
parent
626cf9cfed
commit
a85384aca6
12
.github/workflows/test_s390x.yaml
vendored
12
.github/workflows/test_s390x.yaml
vendored
@ -29,12 +29,14 @@ jobs:
|
||||
- name: Check out code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Test SM2
|
||||
run: go test -v -short ./sm2/...
|
||||
env:
|
||||
GOARCH: ${{ matrix.arch }}
|
||||
|
||||
- name: Test KDF
|
||||
run: go test -v -short ./kdf/...
|
||||
env:
|
||||
GOARCH: ${{ matrix.arch }}
|
||||
|
||||
- name: Test SM2
|
||||
run: go test -v -short ./sm2/...
|
||||
env:
|
||||
GOARCH: ${{ matrix.arch }}
|
||||
|
||||
|
||||
|
@ -56,9 +56,14 @@ func TestKdfOldCase(t *testing.T) {
|
||||
|
||||
func shouldPanic(t *testing.T, f func()) {
|
||||
t.Helper()
|
||||
defer func() { _ = recover() }()
|
||||
defer func() {
|
||||
t.Helper()
|
||||
err := recover()
|
||||
if err == nil {
|
||||
t.Errorf("should have panicked")
|
||||
}
|
||||
}()
|
||||
f()
|
||||
t.Errorf("should have panicked")
|
||||
}
|
||||
|
||||
func TestKdfWithSHA256(t *testing.T) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user