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