Skip to content

Commit bf21b8e

Browse files
committed
Debug finalize state
1 parent 976c4f5 commit bf21b8e

File tree

7 files changed

+107
-447
lines changed

7 files changed

+107
-447
lines changed

.github/workflows/ghash.yml

-70
This file was deleted.

.github/workflows/poly1305.yml

+102-100
Original file line numberDiff line numberDiff line change
@@ -20,40 +20,40 @@ env:
2020
RUSTFLAGS: "-Dwarnings"
2121

2222
jobs:
23-
build:
24-
runs-on: ubuntu-latest
25-
strategy:
26-
matrix:
27-
rust:
28-
- 1.41.0 # MSRV
29-
- stable
30-
target:
31-
- thumbv7em-none-eabi
32-
- wasm32-unknown-unknown
33-
steps:
34-
- uses: actions/checkout@v1
35-
- uses: actions-rs/toolchain@v1
36-
with:
37-
profile: minimal
38-
toolchain: ${{ matrix.rust }}
39-
target: ${{ matrix.target }}
40-
override: true
41-
- run: cargo build --target ${{ matrix.target }} --release
42-
- run: cargo build --target ${{ matrix.target }} --release --features force-soft
23+
# build:
24+
# runs-on: ubuntu-latest
25+
# strategy:
26+
# matrix:
27+
# rust:
28+
# - 1.41.0 # MSRV
29+
# - stable
30+
# target:
31+
# - thumbv7em-none-eabi
32+
# - wasm32-unknown-unknown
33+
# steps:
34+
# - uses: actions/checkout@v1
35+
# - uses: actions-rs/toolchain@v1
36+
# with:
37+
# profile: minimal
38+
# toolchain: ${{ matrix.rust }}
39+
# target: ${{ matrix.target }}
40+
# override: true
41+
# - run: cargo build --target ${{ matrix.target }} --release
42+
# - run: cargo build --target ${{ matrix.target }} --release --features force-soft
4343

4444
# Tests for the portable software backend
4545
soft:
4646
runs-on: ubuntu-latest
4747
strategy:
4848
matrix:
4949
include:
50-
# 32-bit Linux
51-
- target: i686-unknown-linux-gnu
52-
rust: 1.41.0 # MSRV
53-
deps: sudo apt install gcc-multilib
54-
- target: i686-unknown-linux-gnu
55-
rust: stable
56-
deps: sudo apt install gcc-multilib
50+
# # 32-bit Linux
51+
# - target: i686-unknown-linux-gnu
52+
# rust: 1.41.0 # MSRV
53+
# deps: sudo apt install gcc-multilib
54+
# - target: i686-unknown-linux-gnu
55+
# rust: stable
56+
# deps: sudo apt install gcc-multilib
5757

5858
# 64-bit Linux
5959
- target: x86_64-unknown-linux-gnu
@@ -68,78 +68,80 @@ jobs:
6868
target: ${{ matrix.target }}
6969
profile: minimal
7070
override: true
71-
- run: ${{ matrix.deps }}
72-
- run: cargo check --target ${{ matrix.target }} --all-features
73-
- run: cargo test --target ${{ matrix.target }} --release
74-
- run: cargo test --target ${{ matrix.target }} --release --features force-soft
75-
- run: cargo test --target ${{ matrix.target }} --release --features std
76-
- run: cargo test --target ${{ matrix.target }} --release --all-features
71+
- run: cargo test -- --nocapture
72+
# - run: cargo test donna_self_test1 -- --test-threads=1 --nocapture
73+
# - run: ${{ matrix.deps }}
74+
# - run: cargo check --target ${{ matrix.target }} --all-features
75+
# - run: cargo test --target ${{ matrix.target }} --release
76+
# - run: cargo test --target ${{ matrix.target }} --release --features force-soft
77+
# - run: cargo test --target ${{ matrix.target }} --release --features std
78+
# - run: cargo test --target ${{ matrix.target }} --release --all-features
7779

7880
# Tests for the AVX2 backend
79-
avx2:
80-
runs-on: ubuntu-latest
81-
env:
82-
RUSTFLAGS: -Ctarget-cpu=haswell -Ctarget-feature=+avx2 -Dwarnings
83-
strategy:
84-
matrix:
85-
include:
86-
# 32-bit Linux
87-
- target: i686-unknown-linux-gnu
88-
rust: 1.41.0 # MSRV
89-
deps: sudo apt install gcc-multilib
90-
- target: i686-unknown-linux-gnu
91-
rust: stable
92-
deps: sudo apt install gcc-multilib
93-
94-
# 64-bit Linux
95-
- target: x86_64-unknown-linux-gnu
96-
rust: 1.41.0 # MSRV
97-
- target: x86_64-unknown-linux-gnu
98-
rust: stable
99-
steps:
100-
- uses: actions/checkout@v1
101-
- uses: actions-rs/toolchain@v1
102-
with:
103-
toolchain: ${{ matrix.rust }}
104-
target: ${{ matrix.target }}
105-
profile: minimal
106-
override: true
107-
- run: ${{ matrix.deps }}
108-
- run: cargo check --target ${{ matrix.target }} --all-features
109-
- run: cargo test --target ${{ matrix.target }} --release
110-
- run: cargo test --target ${{ matrix.target }} --release --features force-soft
111-
- run: cargo test --target ${{ matrix.target }} --release --features std
112-
- run: cargo test --target ${{ matrix.target }} --release --all-features
113-
114-
# Cross-compiled tests
115-
cross:
116-
strategy:
117-
matrix:
118-
include:
119-
# ARM64
120-
- target: aarch64-unknown-linux-gnu
121-
rust: 1.41.0 # MSRV
122-
- target: aarch64-unknown-linux-gnu
123-
rust: stable
124-
125-
# PPC32
126-
- target: powerpc-unknown-linux-gnu
127-
rust: 1.41.0 # MSRV
128-
- target: powerpc-unknown-linux-gnu
129-
rust: stable
130-
131-
runs-on: ubuntu-latest
132-
steps:
133-
- uses: actions/checkout@v1
134-
- run: ${{ matrix.deps }}
135-
- uses: actions-rs/toolchain@v1
136-
with:
137-
toolchain: ${{ matrix.rust }}
138-
target: ${{ matrix.target }}
139-
profile: minimal
140-
override: true
141-
- run: cargo install cross
142-
- run: cross test --target ${{ matrix.target }} --release
143-
- run: cross test --target ${{ matrix.target }} --release --features force-soft
144-
- run: cross test --target ${{ matrix.target }} --release --features std
145-
- run: cross test --target ${{ matrix.target }} --release --all-features
81+
# avx2:
82+
# runs-on: ubuntu-latest
83+
# env:
84+
# RUSTFLAGS: -Ctarget-cpu=haswell -Ctarget-feature=+avx2 -Dwarnings
85+
# strategy:
86+
# matrix:
87+
# include:
88+
# # 32-bit Linux
89+
# - target: i686-unknown-linux-gnu
90+
# rust: 1.41.0 # MSRV
91+
# deps: sudo apt install gcc-multilib
92+
# - target: i686-unknown-linux-gnu
93+
# rust: stable
94+
# deps: sudo apt install gcc-multilib
95+
#
96+
# # 64-bit Linux
97+
# - target: x86_64-unknown-linux-gnu
98+
# rust: 1.41.0 # MSRV
99+
# - target: x86_64-unknown-linux-gnu
100+
# rust: stable
101+
# steps:
102+
# - uses: actions/checkout@v1
103+
# - uses: actions-rs/toolchain@v1
104+
# with:
105+
# toolchain: ${{ matrix.rust }}
106+
# target: ${{ matrix.target }}
107+
# profile: minimal
108+
# override: true
109+
# - run: ${{ matrix.deps }}
110+
# - run: cargo check --target ${{ matrix.target }} --all-features
111+
# - run: cargo test --target ${{ matrix.target }} --release
112+
# - run: cargo test --target ${{ matrix.target }} --release --features force-soft
113+
# - run: cargo test --target ${{ matrix.target }} --release --features std
114+
# - run: cargo test --target ${{ matrix.target }} --release --all-features
115+
#
116+
# # Cross-compiled tests
117+
# cross:
118+
# strategy:
119+
# matrix:
120+
# include:
121+
# # ARM64
122+
# - target: aarch64-unknown-linux-gnu
123+
# rust: 1.41.0 # MSRV
124+
# - target: aarch64-unknown-linux-gnu
125+
# rust: stable
126+
#
127+
# # PPC32
128+
# - target: powerpc-unknown-linux-gnu
129+
# rust: 1.41.0 # MSRV
130+
# - target: powerpc-unknown-linux-gnu
131+
# rust: stable
132+
#
133+
# runs-on: ubuntu-latest
134+
# steps:
135+
# - uses: actions/checkout@v1
136+
# - run: ${{ matrix.deps }}
137+
# - uses: actions-rs/toolchain@v1
138+
# with:
139+
# toolchain: ${{ matrix.rust }}
140+
# target: ${{ matrix.target }}
141+
# profile: minimal
142+
# override: true
143+
# - run: cargo install cross
144+
# - run: cross test --target ${{ matrix.target }} --release
145+
# - run: cross test --target ${{ matrix.target }} --release --features force-soft
146+
# - run: cross test --target ${{ matrix.target }} --release --features std
147+
# - run: cross test --target ${{ matrix.target }} --release --all-features

0 commit comments

Comments
 (0)