Repository navigation
Expand file tree
/
Copy pathcheck-rust-version-matrix.sh
More file actions
executable file
·55 lines (52 loc) · 3.13 KB
/
Copy pathcheck-rust-version-matrix.sh
File metadata and controls
executable file
·55 lines (52 loc) · 3.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/usr/bin/env bash
set -euo pipefail
if test "${1:-}" = "--hkdf-public-api"; then
shift
exec python3 scripts/hkdf/check-hkdf-public-api.py --matrix "$@"
fi
if test "${1:-}" != "--full-catalog"; then
exec python3 scripts/release/run-verification.py matrix "$@"
fi
shift
test "$#" -eq 0
toolchains=(1.90.0 1.91.0 1.92.0 1.93.0 1.94.0 1.95.0 1.96.0 1.96.1 1.97.0 1.97.1 1.98.0 1.98.1 1.99.0 1.99.1)
for toolchain in "${toolchains[@]}"; do
if ! rustup toolchain list | grep -Eq "^${toolchain}(-|$)"; then
rustup toolchain install "$toolchain" --profile minimal
fi
# BEGIN MATRIX CATALOG
cargo "+$toolchain" check --workspace --all-features
cargo "+$toolchain" test --locked --offline -p brynja-mac-hmac --all-features
cargo "+$toolchain" test --locked --offline -p brynja-legacy-hmac --all-features
cargo "+$toolchain" test --locked --offline -p brynja-legacy-hmac-std --all-features
cargo "+$toolchain" test --locked --offline -p brynja-crypto-cpu-std --features hmac-execution --test hmac
cargo "+$toolchain" test --locked --offline -p brynja-crypto-cpu-std --features strict-hmac-acceleration --lib strict_hmac
cargo "+$toolchain" test --locked --offline -p brynja-crypto-cpu-std --features macos-resident-hmac-acceleration --lib macos_resident::hmac
cargo "+$toolchain" test --locked --offline --manifest-path assurance/hosted-cpu-execution/Cargo.toml
cargo "+$toolchain" run --locked --offline --manifest-path assurance/general-sha512-t/Cargo.toml \
< crates/brynja-hash-sha2/tests/vectors/general-sha512-t-digest.txt
cargo "+$toolchain" check --manifest-path assurance/cpu-admission-fixture/Cargo.toml
cargo "+$toolchain" test --locked --manifest-path assurance/sha1-public-api/Cargo.toml --lib
cargo "+$toolchain" test --locked -p brynja-legacy-md5-std
cargo "+$toolchain" test --locked -p brynja-legacy-md5 --all-features
cargo "+$toolchain" test --locked --manifest-path assurance/md5-public-api/Cargo.toml --lib
cargo "+$toolchain" test --locked --manifest-path assurance/legacy-hash-public-api/current/Cargo.toml --lib
cargo "+$toolchain" run --locked --manifest-path assurance/legacy-hash-final/Cargo.toml
cargo "+$toolchain" test --locked -p brynja-legacy-sha1
cargo "+$toolchain" test --locked -p brynja-legacy-sha1 --features cpu --test cpu
cargo "+$toolchain" test --locked -p brynja-legacy-sha1-std
cargo "+$toolchain" run --quiet --locked \
--manifest-path assurance/sha256-public-api/Cargo.toml
cargo "+$toolchain" run --quiet --locked \
--manifest-path assurance/sha2-public-api/Cargo.toml
cargo "+$toolchain" run --quiet --locked \
--manifest-path assurance/sha3-public-api/Cargo.toml
cargo "+$toolchain" test --quiet --locked \
--manifest-path assurance/cshake-public-api/Cargo.toml
cargo "+$toolchain" run --quiet --locked \
--manifest-path assurance/hash-final-acceptance/Cargo.toml
cargo "+$toolchain" run --quiet --locked \
--manifest-path assurance/sp800185-public-api/Cargo.toml
cargo "+$toolchain" run --quiet --locked \
--manifest-path assurance/sp800185-final/Cargo.toml
done